/* ══════════════════════════════════════════════════════════════════════════
   index.css — ShufflGames Landing-Page Template
   Nur für index.html. base.css MUSS zuerst geladen sein.

   TODO-Checkliste:
     [ ] Hero-Dekoration (.hero-scale-*) durch eigene ersetzen oder entfernen
     [ ] Farben in .game-wordmark gradient anpassen (aktuell gold → orange → pink)
     [ ] Ggf. .slides-wrapper height anpassen wenn Slide-Texte länger werden
══════════════════════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────────────────────── */
.index-layout {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    gap: 1.25rem;
    max-width: 1280px; margin: 0 auto;
    padding: 0 4% 4rem;
    min-height: min(calc(100vh - 73px), 1007px);
    justify-content: center;
}
/* Kinder 15 % kleiner skalieren — Container bleibt für Zentrierung unverändert */
.index-hero,
.index-cards,
.index-tutorial { zoom: 0.85; }


/* ── ① Hero ──────────────────────────────────────────────────────────────── */
.index-hero {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; width: 100%; max-width: 700px;
}

/* Spielname-Wordmark */
.game-wordmark {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 800; letter-spacing: -.05em; line-height: 1.1;
    /* TODO: Farbverlauf anpassen */
    background: linear-gradient(135deg, #fff 0%, var(--orange) 35%, #ff4444 65%, var(--pink) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px var(--gold-glow));
    padding: 0 .05em; margin-bottom: .3rem;
}
.game-sub {
    color: var(--text-muted); font-size: .85rem; font-weight: 300;
    margin-top: .9rem; margin-bottom: 0;
}

/* ── Hero-Dekoration (Skala-Animation) ───────────────────────────────────────
   TODO: Diesen Block durch eigene Dekoration ersetzen oder entfernen.
   Für eine einfache Alternative einfach <.hero-scale-wrap> im HTML löschen.
────────────────────────────────────────────────────────────────────────── */
.hero-scale-wrap   { width: min(860px, 100%); margin-top: .6rem; }
.hero-scale-labels {
    display: flex; justify-content: space-between;
    font-size: .62rem; color: var(--text-dim);
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem;
}
.hero-scale-track {
    position: relative; height: 7px; border-radius: var(--radius-pill);
    background: var(--scale-gradient);
    box-shadow: 0 0 14px rgba(155,89,245,.5), 0 0 36px rgba(245,200,66,.15);
    overflow: visible;
}
.hero-scale-fill {
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: scaleSweep 2.8s ease-in-out infinite;
}
@keyframes scaleSweep {
    0%   { background-position: -100% 0; }
    100% { background-position:  200% 0; }
}
.hero-scale-dot {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; border-radius: 50%; margin-left: -7px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 0 14px rgba(255,255,255,.9), 0 0 28px var(--gold-glow);
    animation: dotBounce 3.6s cubic-bezier(.45,0,.55,1) infinite alternate;
}
@keyframes dotBounce {
    0%   { left:  4%; }
    100% { left: 96%; }
}


/* ── ② Zwei Karten nebeneinander ─────────────────────────────────────────── */
.index-cards {
    width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; align-items: stretch;
}
.index-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 1.75rem 2rem;
    backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    display: flex; flex-direction: column; gap: 1.25rem;
}
.index-card-room    { justify-content: center; }
.index-card-label   {
    font-family: var(--font-display); font-size: .65rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
    text-align: center;
}
.room-actions { display: flex; flex-direction: column; gap: .85rem; width: 100%; }
.or-row {
    display: flex; align-items: center; gap: 1rem;
    color: var(--text-dim); font-size: .75rem;
}
.or-row::before, .or-row::after { content:''; flex:1; height:1px; background:var(--border); }
.join-box {
    display: flex; flex-direction: column; gap: .6rem;
    background: rgba(255,255,255,.025); border: 1px solid var(--border);
    border-radius: var(--radius-inner); padding: .9rem;
}


/* ── ③ Tutorial-Slider ───────────────────────────────────────────────────── */
.index-tutorial {
    width: 100%;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 1.75rem 2rem;
    backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
/* TODO: Height anpassen wenn Slide-Inhalt mehr Platz braucht */
.slides-wrapper {
    position: relative; height: 96px; overflow: hidden;
    margin-bottom: 1.1rem;
}
.slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: row; align-items: center;
    gap: 1.4rem; padding: 0 .25rem;
    opacity: 0; transform: translateX(18px);
    transition: opacity .38s ease, transform .38s ease;
    pointer-events: none;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.slide-icon {
    font-size: 2.4rem; flex-shrink: 0; width: 52px; text-align: center;
    filter: drop-shadow(0 0 8px rgba(245,200,66,.3));
}
.slide-text h3 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
    margin-bottom: .3rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.slide-text p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }

.slider-controls {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.nav-arrow {
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.nav-arrow:hover {
    background: rgba(245,200,66,.1); border-color: rgba(245,200,66,.3);
    color: var(--gold); transform: scale(1.08);
}
.nav-arrow svg { width: 18px; height: 18px; }
.dots-row { display: flex; gap: .5rem; align-items: center; }
.dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-dim); border: none; cursor: pointer;
    transition: all .3s;
}
.dot.active {
    background: var(--gold); width: 20px; border-radius: var(--radius-pill);
    box-shadow: 0 0 8px rgba(245,200,66,.5);
}


/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .index-cards    { grid-template-columns: 1fr; }
    .slides-wrapper { height: 120px; }
}
@media (max-width: 480px) {
    .game-wordmark  { font-size: 3.2rem; }
    .index-card     { padding: 1.25rem; }
    .slides-wrapper { height: 140px; }
}
