/* ==========================================================================
   AMERICAN CREW STYLE CUP 2026
   Tokeni preuzeti iz eHaul brand sistema:
   --eh-green #2F3D37 / --eh-gold #B89D6B / --eh-cream #F6F2EC / --eh-beige #E8DED2
   + American Crew crna (--ac-black) kao signature akcenat za hero/brand sekciju.
   Font: Nunito Sans — zvanični font sajta, koristi se i za naslove i za tekst
   (hijerarhija ide kroz weight/veličinu, ne kroz drugi typeface).
   Pretpostavka je da je već globalno učitan kroz $head (require.php). Ako se
   na stranici NE prikazuje, otkomentariši @import ispod.
   Sve je skopirano pod .acsc-page da se ne kosi sa Bootstrap/sajt CSS-om koji
   dolazi sa pravim $header/$footer-om. */

/* @import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&display=swap'); */

:root {
  --eh-green: #2F3D37;
  --eh-gold: #B89D6B;
  --eh-cream: #F6F2EC;
  --eh-beige: #E8DED2;
  --ac-black: #111111;
  --white: #ffffff;
  --radius: 10px;
  --max-w: 1180px;
}

.acsc-page * { box-sizing: border-box; }

.acsc-page {
  font-family: 'Nunito Sans', Arial, sans-serif;
  color: var(--eh-green);
  background: var(--eh-cream);
  line-height: 1.6;
}

.acsc-page h1, .acsc-page h2, .acsc-page h3 {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0;
  line-height: 1.15;
}

.acsc-page .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HERO ---------- */
.ac-hero {
  background: linear-gradient(160deg, var(--ac-black) 0%, #1d1d1d 55%, var(--eh-green) 130%);
  color: var(--white);
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ac-hero::before {
  /* "razor stripe" signature element - dijagonalna zlatna traka, podseća i na teren i na barbersku traku */
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 220%;
  background: linear-gradient(100deg, transparent 46%, rgba(184,157,107,.18) 49%, rgba(184,157,107,.18) 52%, transparent 55%);
  pointer-events: none;
}
.ac-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--eh-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.ac-hero .eyebrow::before, .ac-hero .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--eh-gold);
}
.ac-hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 22px;
}
.ac-hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--eh-beige);
  max-width: 560px;
  margin: 0 auto 28px;
}
.ac-hero .perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 38px;
}
.ac-hero .perks span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--white);
}
.ac-cta {
  display: inline-block;
  background: var(--eh-gold);
  color: var(--ac-black);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 17px 42px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.ac-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184,157,107,.35); }
.ac-cta:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- BANNER STATUSA (pre/posle aktivacije) ---------- */
.ac-status-banner {
  background: var(--eh-beige);
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--eh-green);
}

/* ---------- GENERIC SECTION ---------- */
.ac-section { padding: 80px 0; }
.ac-section.alt { background: var(--eh-beige); }
.ac-section .heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.ac-section .heading h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
}
.ac-section .heading p { font-size: 16px; color: #54625b; }

/* ---------- O AKTIVACIJI ---------- */
.ac-about p { max-width: 680px; margin: 0 auto 14px; text-align: center; }
.ac-about p:last-child { margin-bottom: 0; }

/* ---------- GALERIJA IGRAČA ---------- */
.ac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .ac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ac-grid { grid-template-columns: 1fr; } }

.ac-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(47,61,55,.08);
  transition: transform .25s, box-shadow .25s;
  opacity: 0;
  transform: translateY(16px);
  animation: ac-fade-up .5s ease forwards;
}
@keyframes ac-fade-up { to { opacity: 1; transform: translateY(0); } }
.ac-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(47,61,55,.14); }

.ac-card .photo {
  aspect-ratio: 1402 / 1122;
  background: var(--eh-beige) center/cover no-repeat;
  position: relative;
}
.ac-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-card .body { padding: 18px 18px 20px; text-align: center; }
.ac-card .country {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--eh-gold);
  margin-bottom: 6px;
}
.ac-card .name {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}
.ac-card button.vote-btn {
  width: 100%;
  background: var(--ac-black);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.ac-card button.vote-btn:hover { background: var(--eh-gold); color: var(--ac-black); }
.ac-card button.vote-btn:focus-visible { outline: 3px solid var(--eh-gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ac-card { animation: none; opacity: 1; transform: none; }
  .ac-card, .ac-cta, .ac-card button { transition: none; }
}

/* ---------- MODAL ---------- */
.ac-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17,17,17,.6);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.ac-modal-overlay.open { display: flex; }
.ac-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  animation: ac-pop .25s ease;
}
@keyframes ac-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ac-modal { animation: none; } }

.ac-modal .close-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: #999; line-height: 1;
}
.ac-modal h3 { font-size: 22px; margin-bottom: 6px; }
.ac-modal .voting-for {
  display: inline-block;
  background: var(--eh-beige);
  color: var(--eh-green);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 30px;
  margin: 10px 0 20px;
}
.ac-modal label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ac-modal input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d2c6;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: inherit;
}
.ac-modal input[type="email"]:focus-visible { outline: 2px solid var(--eh-gold); }
.ac-modal .consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: #54625b; margin-bottom: 22px;
}
.ac-modal .consent input { margin-top: 3px; }
.ac-modal button.submit-vote {
  width: 100%;
  background: var(--eh-gold);
  color: var(--ac-black);
  border: none;
  padding: 14px 0;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
}
.ac-modal button.submit-vote:disabled { opacity: .6; cursor: not-allowed; }
.ac-modal .form-error {
  background: #fbe9e7; color: #a83232;
  font-size: 13px; padding: 10px 12px; border-radius: 6px;
  margin-bottom: 14px; display: none;
}
.ac-modal .form-error.show { display: block; }
.ac-modal .hp-field { position: absolute; left: -9999px; top: -9999px; }

/* success state inside modal */
.ac-modal .success-state { display: none; text-align: center; }
.ac-modal .success-state.show { display: block; }
.ac-modal .success-state .checkmark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--eh-green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 18px;
}
.ac-modal .success-state h3 { margin-bottom: 10px; }
.ac-modal .success-state p { font-size: 14px; color: #54625b; margin-bottom: 6px; }
.ac-modal .vote-form.hide, .ac-modal .voting-for.hide { display: none; }

/* ---------- NAGRADA ---------- */
.ac-prize { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.ac-prize .text { flex: 1 1 360px; }
.ac-prize .text h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.ac-prize .visual {
  flex: 1 1 320px;
  aspect-ratio: 4/3;
  background: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 14px;
  border: 1px dashed #cfc6b5;
}

/* ---------- ZASTO AMERICAN CREW ---------- */
.ac-brand-section {
  background: var(--ac-black);
  color: var(--white);
  text-align: center;
}
.ac-brand-section h2 { color: var(--white); }
.ac-brand-section p { color: var(--eh-beige); max-width: 680px; margin: 16px auto 0; }

/* ---------- PROIZVODI (swiper koristi postojeći sajt-wide stil; ovo je samo CTA ispod) ---------- */
.ac-section-cta { text-align: center; margin-top: 20px; }
.ac-secondary-btn {
  display: inline-block;
  border: 2px solid var(--eh-green);
  color: var(--eh-green);
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.ac-secondary-btn:hover { background: var(--eh-green); color: var(--white); }

/* ---------- PRAVILA / ACCORDION ---------- */
.ac-rules { max-width: 720px; margin: 0 auto; }
.ac-accordion-item { border-bottom: 1px solid #d8d2c6; }
.ac-accordion-item button.acc-trigger {
  width: 100%;
  text-align: left;
  background: none; border: none;
  padding: 18px 4px;
  font-size: 16px; font-weight: 800;
  font-family: 'Nunito Sans', Arial, sans-serif;
  color: var(--eh-green);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.ac-accordion-item .acc-trigger .icon { transition: transform .2s; font-size: 18px; color: var(--eh-gold); }
.ac-accordion-item.open .acc-trigger .icon { transform: rotate(45deg); }
.ac-accordion-item .acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.ac-accordion-item.open .acc-panel { max-height: 400px; }
.ac-accordion-item .acc-panel ul { margin: 0 0 18px; padding-left: 20px; font-size: 14px; color: #54625b; }
.ac-accordion-item .acc-panel li { margin-bottom: 8px; }

/* ---------- DODATNA KONVERZIJA ---------- */
.ac-coupon-teaser {
  text-align: center;
  background: var(--eh-beige);
  border-radius: var(--radius);
  padding: 30px 24px;
  max-width: 680px;
  margin: 50px auto 0;
}
.ac-coupon-teaser h3 { font-size: 18px; margin-bottom: 8px; }
.ac-coupon-teaser p { font-size: 14px; color: #54625b; margin: 0; }

/* ---------- FOOTER ---------- */
.ac-footer {
  background: var(--ac-black);
  color: var(--eh-beige);
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
}
.ac-footer a { color: var(--eh-gold); text-decoration: none; }
