@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@600;800;900&display=swap');
:root {
    --bg: #0b0f1a;
    --layer: #0f1629;
    --layer2: #0c1325;
    --stroke: #1d2741;
    --text: #ebf0ff;
    --muted: #b6c4e6;
    --blurple: #5865f2;
    --cyan: #00e5ff;
    --teal: #20e0c5;
    --ink: #06101f;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    background: radial-gradient(75% 60% at 20% 8%, #0e1a31 0%, transparent 60%),
        radial-gradient(80% 70% at 110% 10%, #11213f 0%, transparent 60%),
        linear-gradient(180deg, #0b0f1a, #0a1020);
    color: var(--text);
    font-family: Inter, system-ui, Arial, sans-serif;
    line-height: 1.6;
}
a {
    color: #9fc4ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 80;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(
        180deg,
        rgba(10, 16, 30, 0.85),
        rgba(10, 16, 30, 0.65)
    );
    backdrop-filter: blur(8px) saturate(1.2);
}
.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    height: 88px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.brand .word {
    font-family: Poppins, Inter, sans-serif;
    font-weight: 900;
    letter-spacing: 0.16em;
    font-size: 14px;
}
.menu {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
}
.menu a {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
}
.menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}
.cta {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    border: 1px solid transparent;
    text-decoration: none;
}
.btn.primary {
    background: linear-gradient(180deg, #90a5ff, var(--blurple));
    color: var(--ink);
    border-color: #2b3fd7;
}
.menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
}
.menu-btn .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
}
@media (max-width: 980px) {
    .menu {
        display: none;
    }
    .menu-btn {
        display: block;
    }
}
.panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #0f162a, #0d1424);
    border-left: 1px solid var(--stroke);
    padding: 16px;
    transition: right 0.25s ease;
    z-index: 100;
}
.panel.open {
    right: 0;
}
.panel a {
    display: block;
    padding: 12px;
    border-radius: 10px;
    margin: 8px 0;
    background: linear-gradient(180deg, #0f1a2f, #0d182a);
    border: 1px solid var(--stroke);
    color: var(--text);
    font-weight: 800;
}
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 120px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}
.hero h1 {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(28px, 6.4vw, 68px);
    line-height: 1.04;
    letter-spacing: 0.01em;
    margin: 10px 0 14px;
    font-weight: 900;
}
.hero .lead {
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 16px;
}
.hero .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-art {
    min-height: 340px;
    /* border-radius: 26px; */
    /* border: 1px solid var(--stroke); */
    overflow: hidden;
    display: block;
    /* box-shadow: 0 18px 60px rgba(0, 0, 0, 0.44); */
}

.hero-art img {
    border-radius: 26px;
    border: 2px solid var(--stroke);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.44);
}

.wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px;
}
.section {
    padding: 72px 0;
}
.h2 {
    font-family: Poppins, Inter, sans-serif;
    font-size: 30px;
    margin: 0 0 14px;
}
.par {
    color: var(--muted);
    max-width: 720px;
}
.feature {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}
.feature:nth-child(even) {
    grid-template-columns: 0.9fr 1.1fr;
}
.feature .art {
    height: 260px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    overflow: hidden;
}
@media (max-width: 980px) {
    .feature,
    .hero-grid {
        grid-template-columns: 1fr;
    }
}
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.card {
    background: linear-gradient(
        180deg,
        rgba(17, 23, 38, 0.95),
        rgba(14, 20, 35, 0.95)
    );
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.partner h3 {
    margin: 8px 0 6px;
}
.partner .lead {
    color: var(--muted);
    margin: 0 0 10px;
}
@media (max-width: 1100px) {
    .grid3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .grid3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .grid3 {
        grid-template-columns: 1fr;
    }
}
.countdown-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}
.countdown {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--teal);
    color: #06221f;
    font-weight: 900;
}
.cd-progress {
    position: relative;
    height: 12px;
    flex: 1;
    min-width: 220px;
    border-radius: 999px;
    background: #0e2036;
    border: 1px solid var(--stroke);
}
.cd-progress .bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}
details {
    background: linear-gradient(
        180deg,
        rgba(17, 23, 38, 0.95),
        rgba(14, 20, 35, 0.95)
    );
    border: 1px solid var(--stroke);
    border-radius: 12px;
    margin: 10px 0;
    padding: 12px;
}
summary {
    cursor: pointer;
    font-weight: 800;
}
.footer {
    border-top: 1px solid var(--stroke);
    padding: 32px 0 28px;
    background: linear-gradient(
        180deg,
        rgba(14, 20, 35, 0.85),
        rgba(10, 16, 30, 0.85)
    );
}
.columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.col h4 {
    margin: 0 0 8px;
}
.col a {
    display: block;
    margin: 6px 0;
}
.fine {
    color: var(--muted);
    margin: 6px 0;
}
@media (max-width: 980px) {
    .columns {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .columns {
        grid-template-columns: 1fr;
    }
}

/* header badge */
.cta .badge {
    height: 36px;
    width: auto;
    display: none;
}
@media (min-width: 720px) {
    .cta .badge {
        display: block;
    }
}

/* brand badge on the left */
.brand .badge-left {
    height: 34px;
    width: auto;
    display: block;
}
@media (max-width: 480px) {
    .brand .badge-left {
        height: 30px;
    }
}

/* === Harmonizált logó- és gombmagasság minden oldalon === */
.header .cta .btn {
    height: 44px; /* fix gombmagasság */
    padding: 0 16px; /* vízszintes padding, vertikális közép igazítás inline-flex-szel */
}
.brand .badge-left {
    height: 44px; /* logó pontosan akkora, mint a gomb */
    width: auto;
}
@media (max-width: 480px) {
    .header .cta .btn {
        height: 40px;
        padding: 0 14px;
    }
    .brand .badge-left {
        height: 40px;
    }
}

/* === MOBILE-ONLY HEADER PATCH (≤480px): center + enlarge logo, hide Discord button === */
@media (max-width: 480px) {
    header.header .cta .btn {
        display: none !important;
    } /* hide only the Discord CTA on phones */
    header.header .nav {
        grid-template-columns: 1fr auto 1fr;
    } /* center column for brand */
    header.header .brand {
        grid-column: 2;
        justify-self: center;
        min-width: 0;
    }
    header.header .brand .badge-left {
        height: 44px !important;
        width: auto;
        max-width: 72vw;
    }
    .container {
        padding: 0 12px;
    } /* slight breathing room */
}
@media (max-width: 360px) {
    header.header .brand .badge-left {
        height: 40px !important;
        max-width: 76vw;
    }
    .container {
        padding: 0 10px;
    }
}
@media (max-width: 330px) {
    header.header .brand .badge-left {
        height: 38px !important;
        max-width: 78vw;
    }
}

/* === MOBILE-ONLY NAV HIDE (≤480px)
   Hide: Discord CTA + "Funkciók" + "Miért minket" (top menu + side panel).
   PC/tablet unchanged. */
@media (max-width: 480px) {
    /* Discord button in header */
    header.header .cta .btn {
        display: none !important;
    }

    /* Header menu links */
    header.header .menu a[href*='#funkciok'],
    header.header .menu a[href*='#blokkok1'] {
        display: none !important;
    }

    /* Side panel links (if present) */
    .panel a[href*='#funkciok'],
    .panel a[href*='#blokkok1'] {
        display: none !important;
    }
}

/* === MOBILE-ONLY NAV HIDE — EXTRA (≤480px)
   Hide also: Partnerek + Versenyek + GYIK (top menu + side panel)
   PC/tablet unchanged.
*/
@media (max-width: 480px) {
    /* Header menu */
    header.header .menu a[href*='partner'],
    header.header .menu a[href*='partn'],
    header.header .menu a[href*='verseny'],
    header.header .menu a[href*='gyik'],
    header.header .menu a[href*='faq'] {
        display: none !important;
    }

    /* Side panel */
    .panel a[href*='partner'],
    .panel a[href*='partn'],
    .panel a[href*='verseny'],
    .panel a[href*='gyik'],
    .panel a[href*='faq'] {
        display: none !important;
    }
}

/* === MOBILE-ONLY: hide the hamburger/elrejtő fül icon next to the SPINNIXA logo === */
@media (max-width: 480px) {
    header.header .menu-btn {
        display: none !important;
    }
}

/* === Contest hero + countdown (Versenyek page) === */
.contest-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}
.contest-hero img {
    display: block;
    width: 100%;
    height: auto;
}
.contest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    display: flex;
    align-items: center;
}
.contest-copy {
    color: #fff;
    padding: 24px;
    max-width: 720px;
}
.contest-copy h1 {
    font-size: clamp(28px, 4.6vw, 44px);
    line-height: 1.12;
    margin: 0 0 6px 0;
}
.contest-copy p.lead {
    font-size: clamp(14px, 2.8vw, 18px);
    opacity: 0.95;
    margin: 0 0 14px 0;
}
.countdown {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.cd-box {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 84px;
    text-align: center;
}
.cd-box .num {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
}
.cd-box .lab {
    font-size: 12px;
    opacity: 0.8;
}
/* Cards on the details list */
.contest-details .card {
    padding: 16px;
    border-radius: 12px;
}

/* === Mobile override: show Versenyek in top menu & panel (even if previously hidden) === */
@media (max-width: 480px) {
    header.header .menu a[href*='verseny'] {
        display: inline-flex !important;
    }
    .panel a[href*='verseny'] {
        display: flex !important;
    }
}

/* === Countdown styles (lightweight) === */
.cd-box {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 84px;
    text-align: center;
}
.cd-box .num {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
}
.cd-box .lab {
    font-size: 12px;
    opacity: 0.8;
}
