/*
  ileavemaybe – Global Stylesheet
  Theme: Dark + Violet brand (matches Support page)
  Usage: <link rel="stylesheet" href="/assets/styles.css">
*/

/* =====================
   CSS Variables (Theme)
   ===================== */
:root {
  --bg: #0b0f19;             /* dark background (≈ Tailwind bg-gray-950) */
  --panel: #111827;          /* panel surface (≈ gray-900) */
  --panel-2: #0f172a;        /* alt surface (≈ slate-900) */
  --text: #e5e7eb;           /* text (≈ gray-200) */
  --muted: #9ca3af;          /* muted text */
  --border: rgba(255,255,255,.10);
  --shadow: 0 4px 20px rgba(0,0,0,.40);

  --brand: #8b5cf6;          /* violet 500 */
  --brand-600: #7c3aed;      /* violet 600 */
  --brand-400: #a78bfa;      /* violet 400 */
  --brand-200: #ddd6fe;      /* violet 200 */
  --brand-soft: rgba(139,92,246,.15);

  --info: #38bdf8;           /* sky 400 */
  --success: #34d399;        /* green 400 */
  --warning: #f59e0b;        /* amber 500 */
  --danger: #ef4444;         /* red 500 */
}

/* ============
   Base Resets
   ============ */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-200); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4, h5, h6 { text-align: center; color: var(--text); margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.6vw, 2rem); }
h3 { font-size: 1.125rem; font-weight: 700; }
p { line-height: 1.7; color: #d1d5db; margin: 0 0 1rem; }
small, .muted { color: var(--muted); }

/* ==========
   Utilities
   ========== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.section { margin-top: 2.5rem; }
.center { text-align: center; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }
.border { border: 1px solid var(--border); }
.shadow { box-shadow: var(--shadow); }

/* Fancy backgrounds (match Support page) */
.glass { backdrop-filter: saturate(140%) blur(10px); background: rgba(17,24,39,.60); }
.shine { background:
  linear-gradient(110deg, rgba(255,255,255,.08) 15%, rgba(255,255,255,0) 18%),
  linear-gradient(to bottom right, rgba(139,92,246,.25), rgba(14,165,233,.25)); }
.page-gradient-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.page-gradient-bg::before {
  content: ""; position: absolute; inset-inline: 0; top: -160px; height: 500px;
  filter: blur(40px);
  background: linear-gradient(to bottom, rgba(139,92,246,.20), rgba(236,72,153,.10), transparent);
}

/* =========
   Components
   ========= */
/* Cards / panels */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card.alt { background: var(--panel-2); }
.card-title { font-size: 1.125rem; font-weight: 800; color: var(--brand-200); margin-bottom: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; border-radius: 16px; padding: .75rem 1.1rem; border: 1px solid transparent; cursor: pointer; transition: .2s ease; text-decoration: none; }
.btn:focus { outline: none; box-shadow: 0 0 0 2px var(--brand-400); }
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,.16); }
.btn-success { background: var(--success); color: #073b2a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* Badges */
.badge { font-size: .75rem; padding: .25rem .5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-200); border: 1px solid var(--border); }

/* Status text */
.status-success { color: var(--success); font-weight: 700; }
.status-warning { color: var(--warning); font-weight: 700; }
.status-info { color: var(--info); font-weight: 700; }

/* Hero */
.hero { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.hero-inner { padding: 2rem 1.5rem; }
.hero-strip { display: grid; grid-template-columns: repeat(1, 1fr); border-top: 1px solid var(--border); font-size: .95rem; color: #cbd5e1; }
.hero-strip > div { padding: 1rem; border-right: 1px solid var(--border); }
.hero-strip > div:last-child { border-right: 0; }
@media (min-width: 640px) { .hero-strip { grid-template-columns: repeat(3, 1fr); } }

/* =====================
   Legacy class mappings
   (keep your PHP pages working without refactors)
   ===================== */
/* Generic page headline */
h1.page-title { text-align: center; color: var(--brand-200); text-shadow: 0 1px 4px rgba(0,0,0,.4); margin: 40px 0 20px; }

/* The old .content box */
.content { max-width: 800px; margin: 30px auto; padding: 30px; border-radius: 12px; box-shadow: var(--shadow); background: var(--panel); border: 1px solid var(--border); }
.content h2 { font-size: 1.375rem; color: var(--brand-200); margin-bottom: 1rem; }
.content h4 { margin-top: 1.25rem; font-size: 1.1rem; color: var(--warning); }
.content h5 { margin-top: .75rem; font-size: 1rem; color: var(--text); }
.content p { font-size: .95rem; }

/* Telegram / action links */
.telegram-link { display: inline-block; margin-top: .6rem; background: #0ea5e9; color: #fff; padding: .7rem 1.1rem; text-decoration: none; border-radius: 10px; font-weight: 800; transition: .2s ease; border: 1px solid transparent; }
.telegram-link:hover { background: #0284c7; }

/* Status + Anmeldung button area */
.status { text-align: center; font-size: 1.125rem; margin-top: 2rem; color: var(--success); font-weight: 800; }
.anmelde-button { display: block; text-align: center; margin: 1.8rem auto 3rem; }
.anmelde-button a { @apply; }
.anmelde-button a { background: var(--brand); color: #fff; padding: .9rem 1.4rem; text-decoration: none; font-weight: 800; border-radius: 12px; font-size: 1rem; transition: .2s ease; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid transparent; }
.anmelde-button a:hover { background: var(--brand-600); }

/* Feature grid */
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--panel); padding: 20px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .2s ease; }
.feature:hover { transform: translateY(-4px); }
.feature h3 { margin-top: 0; font-size: 1.1rem; color: var(--brand-200); }
.feature p { font-size: .95rem; }

/* Social links */
.social-links { margin-top: 30px; text-align: center; }
.social-links a { display: inline-block; margin: 0 10px; color: #fff; background: rgba(255,255,255,.08); padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: .2s ease; font-weight: 800; border: 1px solid var(--border); }
.social-links a:hover { background: rgba(255,255,255,.18); }
/* Platform hovers */
.social-links a[href*="twitch.tv"]:hover { background-color: #9146FF; color: #fff; }
.social-links a[href*="youtube.com"]:hover { background-color: #FF0000; color: #fff; }
.social-links a[href*="x.com"]:hover { background-color: #1DA1F2; color: #fff; }
.social-links a[href*="instagram.com"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 50%, #d6249f 75%, #285AEB 100%); color: #fff; }
.social-links a[href*="tiktok.com"]:hover { background-color: #010101; color: #25F4EE; }
.social-links a[href*="spotify.com"]:hover { background-color: #1DB954; color: #fff; }
.social-links a[href*="soundcloud.com"]:hover { background-color: #ff5500; color: #fff; }

/* Twitch / video area */
.twitch-player { display: flex; justify-content: center; margin-bottom: 40px; }
@media (max-width: 768px) { .twitch-player iframe { width: 100% !important; height: auto !important; } }

/* Bio block */
.bio { background: var(--panel); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); font-size: 1rem; line-height: 1.7; max-width: 1000px; margin: 0 auto; border: 1px solid var(--border); }
.bio strong { color: var(--brand-200); }

/* Emote grid */
.emote-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 15px auto 20px; max-width: 1000px; }
.emote-img { width: 72px; height: auto; border-radius: 8px; background: #0b1220; padding: 6px; box-shadow: 0 0 6px rgba(0,0,0,.5); transition: transform .15s ease; }
.emote-img:hover { transform: scale(1.06); }

/* Impressum */
.impressum-container { max-width: 900px; margin: 50px auto; padding: 30px; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border); }
.impressum-container h1 { font-size: 1.75rem; color: var(--brand-200); margin-bottom: 20px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.impressum-image { display: flex; justify-content: center; align-items: center; margin: 30px 0; }
.impressum-image img { border-radius: 10px; box-shadow: 0 0 12px rgba(0,0,0,.5); transform: rotate(0deg); }
.kontakt-button { display: inline-block; margin-top: 10px; background: #9b59b6; color: #fff; padding: 10px 20px; border-radius: 10px; font-weight: 800; transition: .2s ease; }
.kontakt-button:hover { background: #8e44ad; }
.social-block { margin-top: 40px; font-size: 1rem; line-height: 1.8; }
.social-block a { color: var(--brand-200); font-weight: 800; }
.social-block a:hover { color: var(--brand); }
.social-block a[href*="tiktok.com"]:hover { color: #ff0050; }

/* Kontaktformular */
.kontaktformular { background: var(--panel); border-radius: 16px; padding: 30px; max-width: 900px; margin: 40px auto; box-shadow: var(--shadow); border: 1px solid var(--border); }
.kontaktformular h3 { text-align: center; font-size: 1.75rem; margin-bottom: 20px; color: var(--brand-200); }
input.field, select.field, textarea.field { background: #0f172a; border: 1px solid #334155; color: #e5e7eb; padding: 12px; border-radius: 10px; width: 100%; margin-bottom: 15px; font-size: 15px; transition: border-color .2s; }
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--brand); outline: none; }
label.control-label { margin-bottom: 6px; display: block; color: var(--muted); }
button.senden { background: var(--brand); color: #fff; padding: 12px 24px; border: none; font-size: 16px; border-radius: 12px; cursor: pointer; transition: background .2s; font-weight: 800; }
button.senden:hover { background: var(--brand-600); }
button.senden.finished { background: #8e44ad !important; }
#submitMessage { padding: 10px; border-radius: 8px; font-size: 16px; margin-bottom: 20px; text-align: center; }
.finished #submitMessage { background: #27ae60; color: #fff; }
.failed #submitMessage { background: #c0392b; color: #fff; }
span.errormsg, span.errormsg-upload, span.errormsg-spamprotection, span.errormsg-emailerror { display: block; background: #c0392b; color: #fff; padding: 10px; margin-top: 8px; border-radius: 8px; font-size: 14px; }

/* Schedule link */
.schedule-link { margin-top: 20px; text-align: left; }
.twitch-schedule { display: inline-flex; align-items: center; font-weight: 800; color: var(--brand-200); border-bottom: 2px solid var(--brand-200); padding: 4px 6px; border-radius: 8px; transition: all .2s ease; }
.twitch-schedule:hover { background: rgba(139,92,246,.10); border-bottom-color: var(--brand); color: var(--brand); }
.twitch-schedule span { margin-left: 8px; }

/* Footer */
.site-footer { text-align: center; padding: 20px; color: #94a3b8; font-size: .85rem; }

/* ================
   Helpers for PHP nav
   ================ */
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: .8rem; flex-wrap: wrap; }
.main-nav a { display: inline-block; padding: .5rem .8rem; border-radius: 10px; color: var(--text); background: transparent; border: 1px solid transparent; }
.main-nav a:hover { background: rgba(255,255,255,.06); }
.main-nav a.active, .nav-com.active { background: var(--brand-soft); border-color: var(--border); color: #fff; }
