/* ============================================================
   Chupa Chups nagradna igra — zajednički stilovi
   (index / pravila / dobitnici). CSS izdvojen, lokalni fontovi,
   bez CDN-a i bez cookieja.
   Brand: crvena #E2001A, žuta #FFED00, bijele "oblak" plohe.
   ============================================================ */

:root {
    --red:        #E2001A;
    --red-dark:   #C00017;
    --red-deep:   #A80014;
    --yellow:     #FFED00;
    --yellow-dk:  #F4C600;
    --white:      #ffffff;
    --ink:        #262626;
    --muted:      #6b6b6b;
    --cream:      #FFF7DE;
    --line:       rgba(0,0,0,.08);

    --maxw: 1140px;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 12px 34px rgba(0,0,0,.14);
    --shadow-sm: 0 6px 18px rgba(0,0,0,.10);

    --display: 'Champion HTF Heavyweight', 'Poppins', system-ui, sans-serif;
    --body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--red); }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- HEADER ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; padding-bottom: 10px; gap: 12px;
}
.site-header .brand img { height: 48px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-nav a {
    font-weight: 700; font-size: 14px; text-decoration: none;
    color: var(--red); padding: 8px 14px; border-radius: 999px;
    border: 2px solid transparent; transition: .18s;
}
.header-nav a:hover { background: #fff2f3; }
.header-nav a.btn-pill { background: var(--red); color: #fff; }
.header-nav a.btn-pill:hover { background: var(--red-dark); }

/* ---------------- BUTTONS ---------------- */
.btn {
    display: inline-block; cursor: pointer; text-decoration: none;
    font-family: var(--body); font-weight: 800; font-size: 18px;
    letter-spacing: .3px; text-transform: uppercase;
    padding: 16px 38px; border: none; border-radius: 999px;
    transition: transform .08s ease, background .18s ease, box-shadow .18s;
}
.btn-primary {
    background: var(--yellow); color: var(--red);
    box-shadow: 0 8px 0 var(--yellow-dk), var(--shadow-sm);
}
.btn-primary:hover { background: #fff23a; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--yellow-dk); }
.btn-red {
    background: var(--red); color: #fff;
    box-shadow: 0 8px 0 var(--red-deep), var(--shadow-sm);
}
.btn-red:hover { background: var(--red-dark); }
.btn-red:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--red-deep); }

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    background: var(--red) url('../img/bg-sunburst.jpg') center top / cover no-repeat;
    color: #fff; text-align: center; overflow: hidden;
    padding: 46px 0 56px;
}
.hero::after { /* blagi vignette za čitljivost */
    content:""; position:absolute; inset:0;
    background: radial-gradient(ellipse at 50% 38%, rgba(0,0,0,0) 40%, rgba(120,0,12,.28) 100%);
    pointer-events:none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo { width: 118px; margin: 0 auto 18px; }

.hero h1 {
    font-family: var(--display); font-weight: 400; font-style: italic; /* kao na KV-u (blagi nagib) */
    font-size: clamp(32px, 6.4vw, 64px); line-height: 1.02;
    letter-spacing: .5px; color: #fff; text-transform: none;
    text-shadow: 0 3px 0 rgba(0,0,0,.2);
    margin-bottom: 18px;
}
.hero h1 .cc { color: var(--yellow); }  /* "Chupa Chups" žuto, ostalo bijelo */
.hero .dates {
    display: inline-block; font-family: var(--body); font-weight: 700;
    font-size: clamp(16px,2.6vw,22px);
    color: var(--yellow); background: none; padding: 0; margin-bottom: 28px;
    text-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.hero-prizes { width: 100%; max-width: 820px; margin: 6px auto 30px; filter: drop-shadow(0 18px 30px rgba(90,0,10,.35)); }
.hero .btn { margin-top: 4px; }

/* ---------------- SECTIONS ---------------- */
section { padding: 60px 0; }
.section-title {
    text-align: center; color: var(--red);
    font-family: var(--display); font-weight: 400;
    font-size: clamp(30px, 5vw, 48px); line-height: 1.05; letter-spacing: .5px;
    margin-bottom: 10px;
}
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-size: 17px; }
.bg-cream { background: var(--cream); }

/* ---------------- KAKO SUDJELOVATI (koraci) ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
    padding: 12px 18px; text-align: center;
}
.step-num {
    width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--yellow); color: var(--red);
    font-family: var(--body); font-weight: 900; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 0 var(--yellow-dk);
}
.step h3 { font-weight: 800; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------------- NAGRADE (detalji) ---------------- */
.prizes-detail { max-width: 640px; margin: 0 auto; }
.prize-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.prize-list li {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.prize-list li:last-child { border-bottom: 0; }
.prize-list .qty {
    flex: 0 0 auto; min-width: 58px; text-align: center;
    font-family: var(--body); font-weight: 900; font-size: 22px;
    color: #fff; background: var(--red); border-radius: 10px; padding: 8px 10px;
}
.prize-list .qty.main { background: var(--yellow); color: var(--red); }
.prize-list .pt { font-weight: 700; font-size: 16px; line-height: 1.3; }
.prize-list .pt small { display:block; font-weight:500; color: var(--muted); font-size: 13px; }
.prizes-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------------- PRIJAVA (forma) ---------------- */
#prijava { background: var(--cream); }
.form-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    max-width: 920px; margin: 0 auto; padding: 14px; border: 3px solid var(--yellow);
}
/* min-height je samo početni "pod" dok se forma ne učita; nakon učitavanja
   forma javi svoju stvarnu visinu (postMessage) i iframe se prilagodi. */
#forma-iframe { width: 100%; border: 0; display: block; min-height: 120px; border-radius: 12px; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--red-deep); color: #ffd9dd; padding: 46px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-bottom: 24px; }
.site-footer h4 { color: var(--yellow); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-links a { display: block; margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; text-align: center; color: #ffbcc3; font-size: 12.5px; line-height: 1.7; }

/* ---------------- STATIČNE STRANICE (pravila / dobitnici) ---------------- */
.page-hero { background: var(--red) url('../img/bg-sunburst.jpg') center / cover; color:#fff; text-align:center; padding: 40px 0; }
.page-hero h1 { font-family: var(--display); font-weight: 400; letter-spacing:.5px; font-size: clamp(30px,5.5vw,52px); text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.page-hero p { margin-top: 8px; font-weight: 600; opacity: .95; }

.content { max-width: 820px; margin: 0 auto; padding: 50px 16px 70px; }
.content h2 { color: var(--red); font-weight: 800; font-size: 22px; margin: 30px 0 10px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-weight: 800; font-size: 18px; margin: 22px 0 8px; }
.content p { margin-bottom: 14px; }
.content ul, .content ol { margin: 0 0 16px 22px; }
.content li { margin-bottom: 7px; }
.content .intro-law { color: var(--muted); font-size: 14px; }
.content .rules-title { text-align:center; color: var(--red); font-weight: 900; font-size: clamp(22px,4vw,30px); line-height:1.2; margin: 6px 0 26px; }

/* Dobitnici — ravno, bez boxova */
.draw { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.draw:last-of-type { border-bottom: 0; }
.draw h2 { color: var(--red); font-family: var(--body); font-weight: 800; font-size: 23px; margin-bottom: 4px; }
.wk-date { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.winners-cat { font-weight: 700; color: var(--ink); margin: 14px 0 2px; }
.winners-empty { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.winners-list { list-style: none; margin: 2px 0 0; }
.winners-list li { padding: 3px 0; font-size: 15px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
    .prizes-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .winners-list { grid-template-columns: 1fr; }
    section { padding: 46px 0; }
}
@media (max-width: 480px) {
    .site-header .brand img { height: 40px; }
    .header-nav a { padding: 7px 11px; font-size: 13px; }
    .btn { font-size: 16px; padding: 14px 28px; }
}
