/* ==========================================================
   Lumura Vote – baut auf site.css (gleiche Marke wie die Startseite) auf.
   Idee: Ein Siegerpodest unter dem Nachthimmel. Jede Liste ist eine Karte,
   die zeigt, ob du dort schon gevotet hast; die Topliste ist der Monatswettbewerb.
   ========================================================== */

/* ---------------------------------------------------------- Start */
.vote-hero { padding-bottom: 20px; }
.podest {
    position: relative; z-index: 1;
    width: min(100%, 470px); height: auto;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(255, 200, 90, 0.15));
    animation: float 8s ease-in-out infinite;
}

.name-card {
    max-width: 560px; margin-top: 32px;
    padding: 22px 22px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 215, 126, 0.28);
    background:
        radial-gradient(90% 140% at 0% 0%, rgba(255, 215, 126, 0.1), transparent 55%),
        rgba(9, 13, 31, 0.78);
    box-shadow: 0 30px 70px -40px rgba(255, 154, 95, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --h1: #ffd77e; --h2: #ff9a5f;
}
.name-label { display: block; font-weight: 600; font-size: 15px; }
.name-row { display: flex; gap: 10px; margin-top: 10px; }
.name-row input {
    flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 14px;
    border-radius: 13px; border: 1px solid var(--stroke-hi);
    background: rgba(255, 255, 255, 0.05); color: var(--ink);
    font: 500 17px/1.2 var(--font-display); letter-spacing: -0.01em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.name-row input::placeholder { color: var(--faint); font-family: var(--font); font-weight: 400; }
.name-row input:focus { outline: none; border-color: rgba(255, 215, 126, 0.7); box-shadow: 0 0 0 4px rgba(255, 215, 126, 0.15); }
.name-row input[aria-invalid="true"] { border-color: rgba(255, 95, 126, 0.8); }
.name-row .btn { min-height: 48px; }
.name-hint { margin-top: 10px; color: var(--mute); font-size: 13.5px; }
.name-hint b, .faq b { color: var(--ink); font-weight: 600; }
.name-error { margin-top: 8px; color: #ff9aae; font-size: 14px; font-weight: 500; }

.me { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.me div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.me dt { color: var(--faint); font-size: 12.5px; }
.me dd { margin-top: 4px; font: 600 24px/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 30%, #ffe3a3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------- Abschnitts-Kopf */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.progress {
    padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
    color: #c9ffe0; border: 1px solid rgba(63, 227, 154, 0.35); background: rgba(63, 227, 154, 0.1);
}

/* ---------------------------------------------------------- Vote-Seiten */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: site; }
.site {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-content: start;
    padding: 22px; border-radius: 22px;
    border: 1px solid var(--stroke);
    background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--h2) 12%, transparent), transparent 60%), var(--surface);
    counter-increment: site;
    transition: border-color 0.3s ease, box-shadow 0.4s var(--ease);
    --h1: #8dfbb9; --h2: #18c27a; --glow: rgba(24, 194, 122, 0.45);
}
.site::marker { content: none; }
.site-num {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
    font: 600 17px/1 var(--font-display); color: var(--dark-ink);
    background: linear-gradient(145deg, var(--h1), var(--h2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 26px -12px var(--glow);
}
.site h3 { font: 600 18px/1.25 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.site-meta { margin-top: 4px; color: var(--faint); font-size: 13.5px; }
.site-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; color: var(--mute); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.site-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--h1); box-shadow: 0 0 10px var(--glow); }
.site .btn { grid-column: 1 / -1; width: 100%; }
.site[data-state="wait"] { --h1: #ffd77e; --h2: #ff9a5f; --glow: rgba(255, 154, 95, 0.45); }
.site[data-state="done"] { --h1: #b9c3ea; --h2: #6a74a0; --glow: rgba(120, 130, 190, 0.4); }
.site[data-state="soon"] { --h1: #6f789e; --h2: #3a4160; --glow: transparent; opacity: 0.75; }
.site[data-state="ready"] { border-color: rgba(141, 251, 185, 0.28); }
.site .btn[aria-disabled="true"] { pointer-events: none; opacity: 0.55; }
.site .btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--ink); border: 1px solid var(--stroke-hi); box-shadow: none; }
.site-skeleton { min-height: 186px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 70%), var(--surface); background-size: 200% 100%; animation: skeleton 1.4s linear infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }
.sites-empty { grid-column: 1 / -1; padding: 26px; border-radius: 22px; border: 1px dashed var(--stroke-hi); color: var(--mute); }

/* ---------------------------------------------------------- Belohnungen */
.rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 40px; }
.reward-card {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 22px;
    padding: 24px 26px; border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--h1) 26%, transparent);
    background: radial-gradient(110% 120% at 0% 0%, color-mix(in srgb, var(--h2) 16%, transparent), transparent 60%), var(--surface);
}
.reward-card img { width: 120px; height: auto; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px var(--glow)); animation: float 7s ease-in-out infinite; }
.reward-card h2 { font: 600 clamp(20px, 2.2vw, 24px)/1.2 var(--font-display); letter-spacing: -0.03em; }
.reward-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.reward-list li { position: relative; padding-left: 26px; color: var(--mute); }
.reward-list li::before {
    content: ""; position: absolute; left: 0; top: 0.28em; width: 16px; height: 16px; border-radius: 5px;
    background: linear-gradient(135deg, var(--h1), var(--h2)); box-shadow: 0 0 12px var(--glow);
}
.prize { margin-top: 12px; color: var(--mute); }
.countdown { margin-top: 12px; color: color-mix(in srgb, var(--h1) 85%, #fff); font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- Topliste */
.toplist { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; max-width: 820px; }
.toplist li {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 12px 18px 12px 12px; border-radius: 16px;
    border: 1px solid var(--stroke); background: var(--surface);
}
.toplist li::after {   /* Balken: Anteil an den Votes des Ersten */
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--share, 0%);
    background: linear-gradient(90deg, #62f2e5, #9b7bff); box-shadow: 0 0 10px rgba(98, 242, 229, 0.6);
    transition: width 0.8s var(--ease);
}
.rank {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    font: 600 16px/1 var(--font-display); color: var(--ink); background: rgba(255, 255, 255, 0.06);
}
.toplist li:nth-child(1) .rank { color: var(--dark-ink); background: linear-gradient(135deg, #fff1b8, #ffc94d); box-shadow: 0 0 18px rgba(255, 201, 77, 0.55); }
.toplist li:nth-child(2) .rank { color: var(--dark-ink); background: linear-gradient(135deg, #ffffff, #b9c3d8); }
.toplist li:nth-child(3) .rank { color: var(--dark-ink); background: linear-gradient(135deg, #ffd6b0, #d08a52); }
.toplist li:nth-child(1) { border-color: rgba(255, 201, 77, 0.35); background: linear-gradient(90deg, rgba(255, 201, 77, 0.08), transparent 60%), var(--surface); }
.top-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-votes { font: 600 16px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.top-votes small { margin-left: 4px; color: var(--faint); font: 400 13px/1 var(--font); }
.toplist li.is-me { border-color: rgba(255, 215, 126, 0.6); box-shadow: 0 0 0 3px rgba(255, 215, 126, 0.12); }
.toplist li.is-me .top-name::after { content: "You"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; font-size: 12px; color: var(--dark-ink); background: #ffd77e; }
.top-empty { padding: 22px; border-radius: 16px; border: 1px dashed var(--stroke-hi); color: var(--mute); }

/* ---------------------------------------------------------- Fragen */
.faq-list { display: grid; gap: 10px; margin-top: 26px; max-width: 820px; }
.faq details { border-radius: 18px; border: 1px solid var(--stroke); background: var(--surface); transition: border-color 0.2s ease; }
.faq details[open] { border-color: rgba(98, 242, 229, 0.3); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
    border-right: 2px solid var(--h1); border-bottom: 2px solid var(--h1);
    transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 20px 18px; color: var(--mute); max-width: 72ch; }

.cta-single { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.cta-single .cta-card { min-height: 0; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 960px) {
    .rewards { grid-template-columns: minmax(0, 1fr); }
    .name-card { max-width: none; }
}
@media (max-width: 560px) {
    .name-row { flex-direction: column; }
    .name-row .btn { width: 100%; }
    .me dd { font-size: 20px; }
    .reward-card { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 20px; }
    .reward-card img { width: 76px; }
    .toplist li { padding: 10px 14px 10px 10px; gap: 10px; }
}
