/* =====================================================================
   Pole Freak Championship — shared stylesheet
   Clean HTML5/CSS3 rewrite (no Bootstrap/jQuery dependency).
   Dark theme · hotpink + gold accents · fully responsive.
   ===================================================================== */

:root {
    --bg:        #000000;          /* black base                       */
    --bg-alt:    #0b0b0b;          /* alternating section (subtle)     */
    --bg-deep:   #000000;          /* footer / overlays                */
    --pink:      #ff69b4;          /* hotpink accent                   */
    --gold:      #f7c552;          /* gold accent                      */
    --text:      #ffffff;
    --muted:     #b9b9b9;
    --line:      rgba(255, 255, 255, 0.18);
    --maxw:      1140px;
    --radius:    14px;
    --header-h:  72px;
    --shadow:    0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Bilingual toggle: show only the active language's content */
html.lang-en [lang="hr"],
html.lang-hr [lang="en"] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0 0 0.5em;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 26px;
    margin: 8px 6px 0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light  { background: #fff;        color: #121212; }
.btn-light:hover  { background: var(--gold); color: #121212; }
.btn-pink   { background: var(--pink); color: #fff; }
.btn-pink:hover   { background: #fff;  color: var(--pink); }
.btn-ghost  { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover  { background: #fff;  color: #121212; }

/* ------------------------------------------------------------------ */
/*  Header / navigation                                                */
/* ------------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background: rgba(20, 20, 20, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand em { font-style: normal; color: var(--gold); }
.brand img { height: 48px; width: auto; display: block; }

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Language switch (EN | HR) */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.lang-switch button,
.lang-switch a {
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.active,
.lang-switch a.active { background: var(--pink); color: #fff; }
.lang-switch button:not(.active):hover,
.lang-switch a:not(.active):hover { color: var(--pink); }

.nav-toggle {
    display: none;
    background: var(--gold);
    border: none;
    border-radius: 6px;
    width: 44px; height: 38px;
    cursor: pointer;
    padding: 9px 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #121212;
    border-radius: 2px;
    margin: 4px 0;
}

.main-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    position: relative;
}
.main-nav a:hover { color: var(--pink); }
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--pink);
    transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--pink); }
.main-nav a.active::after { width: 100%; }

/* ------------------------------------------------------------------ */
/*  Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 40px) 20px 60px;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, var(--bg) 60%);
}
.hero-inner { max-width: 760px; }
.hero-logo {
    max-height: 380px;
    max-width: min(500px, 85vw);
    width: auto;
    height: auto;
    margin: 10px auto 28px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
@media (max-width: 768px) { .hero-logo { max-height: 260px; } }
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero h1 .accent { color: var(--pink); }
.hero .tagline {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.hero .tagline strong { color: var(--gold); letter-spacing: 2px; }
.hero .hero-desc {
    max-width: 640px;
    margin: 0 auto 1.2rem;
    color: var(--muted);
    line-height: 1.65;
}
.hero .hero-quote {
    font-style: italic;
    color: var(--pink);
    margin-bottom: 1.5rem;
}
.hero .meta { color: #fff; margin: 4px 0; }
.hero .meta strong { color: var(--gold); }

.countdown {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--pink);
    letter-spacing: 1px;
    margin: 10px 0 4px;
}
.venue-logo {
    display: inline-block;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    margin: 18px 0;
}
.venue-logo img { max-height: 70px; width: auto; }
.hero-actions { margin-top: 18px; }

/* ------------------------------------------------------------------ */
/*  Generic section                                                    */
/* ------------------------------------------------------------------ */
.section {
    padding: 90px 0;
    scroll-margin-top: var(--header-h);
}
.section:nth-of-type(even) { background: var(--bg-alt); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pink);
}
.section-title .line {
    width: 70px; height: 3px;
    background: var(--gold);
    margin: 16px auto 0;
    border-radius: 2px;
}
.section-title p {
    color: var(--muted);
    max-width: 620px;
    margin: 14px auto 0;
}

/* Card used by rules / judges / prizes / gallery */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
}
.card h3, .card h4 {
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
}
.card .sub-line {
    width: 100%; height: 1px;
    background: var(--line);
    margin: 12px 0 18px;
}
.card p { color: #e9e9e9; margin: 0 0 12px; }
.card .gold { color: var(--gold); }
.card ul { color: #e0e0e0; margin: 0 0 12px; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.card em { font-style: normal; color: var(--gold); }

/* Grid helpers */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Gallery lightbox */
#gallery .media-img img { cursor: zoom-in; }
body.lightbox-open { overflow: hidden; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.93);
    padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
}
.lightbox button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
    padding: 14px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 1;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 14px; font-size: 2.6rem; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    text-align: center;
    color: #e9e9e9;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Gallery year sub-heading */
.gallery-year {
    text-align: center;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin: 44px 0 20px;
}
.gallery-year:first-of-type { margin-top: 0; }

/* Profile / gallery image */
.media-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 4 / 3;
}
.media-img img { width: 100%; height: 100%; object-fit: cover; }
.card .socials { margin-top: 6px; font-size: 1.3rem; }
.card .socials a { margin-right: 12px; }
.socials svg.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* ------------------------------------------------------------------ */
/*  Sponsors                                                           */
/* ------------------------------------------------------------------ */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 36px;
    align-items: center;
    justify-items: center;
}
.sponsor-grid.featured { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 40px; }
.sponsor-grid a { display: flex; align-items: center; justify-content: center; }
.sponsor-grid img {
    max-height: 90px;
    width: auto;
    filter: grayscale(1) brightness(1.6);
    opacity: 0.85;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.sponsor-grid img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* ------------------------------------------------------------------ */
/*  Location map                                                       */
/* ------------------------------------------------------------------ */
.map-frame {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ */
/*  Contact form                                                       */
/* ------------------------------------------------------------------ */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 15px;
    font-family: inherit;
}
.contact-form textarea { min-height: 150px; resize: vertical; }

/* Honeypot anti-spam field: moved off-screen (not display:none, which
   many bots detect and skip) and excluded from tab order / readers.   */
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--pink);
    border-color: var(--pink);
}
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.form-status.ok  { color: #7CFC7C; }
.form-status.err { color: #ff6b6b; }

/* ------------------------------------------------------------------ */
/*  Footer                                                             */
/* ------------------------------------------------------------------ */
.site-footer {
    background: var(--bg-deep);
    padding: 56px 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.site-footer h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 18px;
}
.site-footer .foot-brand {
    font-size: 20px;
    font-weight: 800; /* heaviest Open Sans weight the site loads */
    text-transform: uppercase;
    color: #fff;
}
.site-footer .foot-brand em { font-style: normal; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.site-footer .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--bg-deep);
    margin-right: 8px;
    font-size: 16px;
    transition: background 0.25s ease, color 0.25s ease;
}
.site-footer .socials a:hover { background: var(--gold); color: #121212; }
.org-credit { text-align: center; margin-top: 40px; }
.org-credit span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.org-credit img {
    height: 80px;
    width: auto;
    display: inline-block;
    transition: transform 0.25s ease;
}
.org-credit a { text-decoration: none; }
.org-credit .org-name {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--pink);
    letter-spacing: 2px;
}
.org-credit a:hover img { transform: scale(1.05); }
.org-credit a:hover .org-name { color: #fff; }

.copyright {
    text-align: center;
    color: #777;
    font-size: 13px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------ */
/*  Landing page (chooser)                                             */
/* ------------------------------------------------------------------ */
.landing {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, var(--bg) 55%, var(--bg-deep) 100%);
}
.landing-lang {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}
.landing-head {
    text-align: center;
    padding: 60px 20px 20px;
}
.landing-head h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.landing-head h1 em { font-style: normal; color: var(--pink); }
.landing-head .landing-logo {
    max-width: min(620px, 88vw);
    width: 100%;
    height: auto;
    margin: 0 auto 6px;
}
.landing-head p { color: var(--muted); max-width: 640px; margin: 10px auto 0; }

.chooser {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 70px;
    align-items: stretch;
}
.champ-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 60px 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.champ-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(255, 105, 180, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.champ-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #fff;
}
.champ-card:hover::before { opacity: 1; }

.champ-logo {
    position: relative;
    width: min(320px, 70vw); height: min(320px, 70vw);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
}
/* Image logo (shown only if the file loads) sits above the text fallback */
.champ-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Text wordmark fallback — visible until a real logo image is added */
.champ-logo .wordmark {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    border: 2px solid var(--line);
    border-radius: 50%;
    padding: 16px;
}
.champ-logo .wordmark .big   { font-size: 1.5rem; color: var(--pink); letter-spacing: 1px; }
.champ-logo .wordmark .small { font-size: 0.9rem; color: var(--gold); letter-spacing: 2px; }
/* When the logo image successfully loads, JS adds .has-logo to hide wordmark */
.champ-logo.has-logo .wordmark { display: none; }

.champ-card h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 2.4em;          /* reserve two lines so taglines align */
    display: flex;
    align-items: center;
    justify-content: center;
}
.champ-card p { color: var(--muted); margin: 8px 0 10px; }
.champ-card .champ-open {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2px 0 0;
}
.champ-card .champ-date {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    margin: 0 0 22px;
}
.champ-card .enter {
    margin-top: auto;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: var(--pink);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
}
.champ-card:hover .enter { background: #fff; color: var(--pink); }

.landing-foot { text-align: center; color: #777; font-size: 13px; padding: 0 20px 30px; }
.landing-foot a { color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: rgba(20, 20, 20, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.open { max-height: 80vh; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }
    .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .main-nav a { display: block; padding: 14px 24px; }
    .main-nav a::after { display: none; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .chooser { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .site-footer .socials { margin-top: 6px; }
    .section { padding: 64px 0; }
}

@media (max-width: 420px) {
    .brand { font-size: 15px; }
}
