/* ================================
   Fuzera Crest KinoKadr — style.css
   Vibrant & energetic, mobile‑first, flexbox‑only
   ================================ */

/* ---------- CSS Reset & Base Normalize ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0 0 0 1.25rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- Theme Variables ---------- */
:root {
  --c-bg: #111827;            /* brand primary (dark) */
  --c-primary: #D7263D;       /* brand secondary (electric red) */
  --c-accent: #F5F3E8;        /* brand accent (light) */
  --c-surface: #151E2B;       /* dark surface */
  --c-surface-2: #0D1421;     /* deeper surface */
  --c-text: #F5F3E8;          /* light text */
  --c-text-muted: #C9CDD7;    /* muted light */
  --c-ink: #0E1320;           /* dark ink for light cards */
  --c-success: #16A34A;
  --c-warning: #F59E0B;
  --c-info: #2563EB;          /* energetic blue for micro accents */

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-1: 0 6px 18px rgba(0,0,0,0.25);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.35);

  --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-20: 20px; --sp-24: 24px; --sp-32: 32px; --sp-40: 40px; --sp-60: 60px;
}

/* ---------- Base Typography ---------- */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: Verdana, "Segoe UI", Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0.2px;
}

h1 { font-size: 34px; line-height: 1.15; }
h2 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.25; }
.subheadline { color: var(--c-text-muted); font-size: 16px; }

p { color: var(--c-text); }
strong { color: #fff; }

/* Larger type on wider screens */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .subheadline { font-size: 18px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
}

/* ---------- Links & Focus ---------- */
a { color: var(--c-primary); transition: color .2s ease, opacity .2s ease; }
a:hover { color: #ff3854; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--c-info); outline-offset: 2px; }

/* ---------- Layout Containers (Flex-only) ---------- */
.container { display: flex; width: 100%; justify-content: center; padding: 0 var(--sp-16); }
.content-wrapper { display: flex; flex-direction: column; width: 100%; max-width: 1200px; gap: var(--sp-24); }

/* Sections baseline spacing (element and required utility) */
section { padding: var(--sp-40) 0; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Mandatory spacing and alignment patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Utility flex helpers */
.flex { display: flex; }
.row { display: flex; flex-direction: row; }
.col { display: flex; flex-direction: column; }
.center { align-items: center; justify-content: center; }

/* ---------- Header & Navigation ---------- */
header { position: sticky; top: 0; z-index: 1000; background: rgba(13, 20, 33, 0.9); backdrop-filter: saturate(130%) blur(8px); box-shadow: var(--shadow-1); }
header .content-wrapper { padding: var(--sp-16) 0; }

/* Header bar layout */
header .content-wrapper { display: flex; gap: var(--sp-16); }
.logo { display: flex; align-items: center; }
.logo img { width: 150px; height: auto; }

.main-nav { display: none; gap: var(--sp-16); align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--c-text); padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease, transform .2s ease; font-weight: 700; }
.main-nav a[aria-current="page"], .main-nav a:hover { background: var(--c-surface); color: #fff; transform: translateY(-1px); }
.main-nav .nav-cta { color: #fff; background: var(--c-primary); padding: 8px 14px; border-radius: 999px; }
.main-nav .nav-cta:hover { background: #ff3854; }

.header-cta { display: none; gap: var(--sp-12); align-items: center; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-primary); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .15s ease, background .2s ease; }
.mobile-menu-toggle:hover { background: #ff3854; transform: translateY(-1px); }
.mobile-menu-toggle:active { transform: translateY(0); }

/* Desktop layout */
@media (min-width: 992px) {
  header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--c-bg); transform: translateX(100%); transition: transform .35s ease; z-index: 9999; padding: var(--sp-20); gap: var(--sp-20); box-shadow: var(--shadow-2); }
.mobile-menu.open { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.mobile-menu-close { align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-surface); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-1); }
.mobile-nav { display: flex; flex-direction: column; gap: var(--sp-16); }
.mobile-nav a { display: flex; padding: 14px; border-radius: 12px; background: var(--c-surface); color: #fff; font-weight: 700; box-shadow: var(--shadow-1); transition: background .2s ease, transform .2s ease; }
.mobile-nav a:hover { background: var(--c-primary); transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(0deg, var(--c-surface-2), var(--c-surface-2)); /* solid-like */ border-bottom: 4px solid var(--c-primary); }
.hero .content-wrapper { padding: var(--sp-32) 0 var(--sp-24); }
.tagline-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; box-shadow: var(--shadow-1); }

/* Breadcrumbs */
nav[aria-label="Okruszki"] ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding-left: 0; }
nav[aria-label="Okruszki"] ol li { color: var(--c-text-muted); }
nav[aria-label="Okruszki"] ol li a { color: var(--c-text); }
nav[aria-label="Okruszki"] ol li + li::before { content: "/"; margin: 0 8px; color: var(--c-text-muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; font-weight: 800; letter-spacing: .2px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #ff3854; box-shadow: var(--shadow-2); }

.btn-secondary { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn-secondary:hover { background: var(--c-accent); color: var(--c-ink); }

.cta-group { display: flex; flex-wrap: wrap; gap: var(--sp-16); }

/* ---------- Feature grid / text sections ---------- */
.feature-grid { display: flex; flex-wrap: wrap; gap: var(--sp-20); }
.feature-grid .text-section { flex: 1 1 260px; padding: var(--sp-20); border-radius: var(--radius-md); background: var(--c-surface); box-shadow: var(--shadow-1); border: 1px solid rgba(255,255,255,0.05); }

.text-section { display: flex; flex-direction: column; gap: var(--sp-12); }
.text-section p, .text-section li { color: var(--c-text); }

/* ---------- Badges / Chips / Labels ---------- */
.label { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--c-surface); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .3px; }
.rating-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 900; box-shadow: var(--shadow-1); }
.release-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--c-info); color: #fff; font-weight: 800; }

/* ---------- USP badges ---------- */
.usp-badges { display: flex; flex-wrap: wrap; gap: var(--sp-12); list-style: none; padding-left: 0; }
.usp-badges li { background: var(--c-surface); color: #fff; border: 1px solid rgba(255,255,255,0.06); padding: 8px 12px; border-radius: 999px; font-weight: 700; }

/* ---------- Article lists (Reviews) ---------- */
.article-list { display: flex; flex-wrap: wrap; gap: var(--sp-24); }
.article-list article { flex: 1 1 280px; display: flex; flex-direction: column; gap: var(--sp-12); background: var(--c-accent); color: var(--c-ink); border-radius: var(--radius-lg); padding: var(--sp-20); box-shadow: var(--shadow-1); border: 2px solid #E8E4D6; transition: transform .2s ease, box-shadow .2s ease; }
.article-list article h3 { color: var(--c-ink); font-weight: 900; }
.article-list article p { color: var(--c-ink); }
.article-list article .meta, .article-list article .tags { color: #2B3345; }
.article-list article a { color: var(--c-primary); font-weight: 800; }
.article-list article:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-16); align-items: center; }
.pagination a { display: inline-flex; padding: 10px 14px; border-radius: 10px; background: var(--c-surface); color: #fff; font-weight: 800; }
.pagination a:hover { background: var(--c-primary); }

/* ---------- Testimonial cards (Light on dark requirement) ---------- */
.testimonial-list { display: flex; flex-wrap: wrap; gap: var(--sp-20); }
.testimonial-card { flex: 1 1 300px; background: var(--c-accent); color: var(--c-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); border: 2px solid #E8E4D6; }
.testimonial-card blockquote { margin: 0; font-style: italic; color: var(--c-ink); }
.testimonial-card .author { color: #2B3345; font-weight: 800; }

/* ---------- Lists & Content blocks ---------- */
.editor-picks, .benefits-list, .media-mentions, .schedule-list, .curated-list, .ranking-list, .mini-rankings ol, .mini-rankings ul { display: flex; flex-direction: column; gap: var(--sp-8); padding-left: 1.25rem; }
.editor-picks li, .benefits-list li, .media-mentions li, .schedule-list li, .curated-list li { color: var(--c-text); }

/* Ranking enhanced visuals */
.ranking-list { gap: var(--sp-12); padding-left: 0; list-style: none; }
.ranking-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--c-surface); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-1); border: 1px solid rgba(255,255,255,0.06); }
.ranking-list .position { font-weight: 900; color: var(--c-primary); margin-right: 6px; }
.ranking-list .note { color: var(--c-text-muted); }

/* ---------- Footer ---------- */
footer { background: #0C1321; border-top: 4px solid var(--c-primary); }
footer section { padding: var(--sp-32) 0; }
footer .content-wrapper { gap: var(--sp-24); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--sp-16); }
.footer-nav a { color: var(--c-text-muted); padding: 6px 10px; border-radius: 8px; background: var(--c-surface); }
.footer-nav a:hover { color: #fff; background: var(--c-primary); }

.brand-signature { display: flex; flex-direction: column; gap: var(--sp-12); background: var(--c-surface); padding: var(--sp-20); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.nav-group { display: flex; flex-direction: column; gap: 10px; }
.nav-group h3 { color: #fff; }
.contact-info { display: flex; flex-direction: column; gap: 8px; color: var(--c-text-muted); }
.newsletter-mini { display: flex; flex-direction: column; gap: var(--sp-12); background: var(--c-surface); padding: var(--sp-20); border-radius: var(--radius-md); }

/* ---------- Misc content styling ---------- */
.editor-note { color: var(--c-text-muted); font-style: italic; }
.tags { font-size: 12px; color: var(--c-text-muted); }
.mini-rankings { display: flex; flex-direction: column; gap: var(--sp-12); background: var(--c-surface); border-radius: var(--radius-md); padding: var(--sp-16); border: 1px solid rgba(255,255,255,0.06); }

/* ---------- Cards (generic) ---------- */
.card { background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-md); padding: var(--sp-20); box-shadow: var(--shadow-1); border: 1px solid rgba(255,255,255,0.06); }

/* ---------- Tables (if any appear via CMS) ---------- */
table { width: 100%; border-collapse: collapse; display: flex; flex-direction: column; }
thead, tbody, tr { display: flex; width: 100%; }
tr { display: flex; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
th, td { flex: 1; padding: 10px; }

/* ---------- Images and icons in text ---------- */
.text-section img, .contact-info img { width: 18px; height: 18px; margin-right: 8px; display: inline-flex; vertical-align: middle; }
.contact-info p { display: flex; align-items: center; gap: 8px; }

/* ---------- Accessibility & Contrast Enhancements ---------- */
::selection { background: var(--c-primary); color: #fff; }
hr { border: 0; height: 1px; background: rgba(255,255,255,0.08); }

/* ---------- Responsive Rules ---------- */
/* Text-image sections switch to column on mobile (default) and row on desktop */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* Content layout alignment per requirement */
.text-image-section { align-items: center; }
.card-content { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Page-specific enhancements ---------- */
/* Newsletter highlight bullets */
.benefits-list li::marker { color: var(--c-primary); font-weight: 900; }
.editor-picks li::marker { color: var(--c-primary); }

/* Breadcrumbs spacing inside hero */
.hero nav[aria-label="Okruszki"] { margin-top: 8px; }

/* ---------- Mobile-first spacing adjustments ---------- */
.content-wrapper > h2 { border-left: 6px solid var(--c-primary); padding-left: 12px; }

/* ---------- Mobile Menu & Header stacking on small screens ---------- */
@media (max-width: 991px) {
  header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Cookie Consent (Banner + Modal) ---------- */
/* Banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; display: flex; justify-content: center; padding: var(--sp-12); pointer-events: none; }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: var(--sp-12); width: min(100%, 1100px); background: var(--c-accent); color: var(--c-ink); border: 2px solid #E8E4D6; border-radius: var(--radius-lg); padding: var(--sp-16); box-shadow: var(--shadow-2); pointer-events: all; transform: translateY(16px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.cookie-banner.show .cookie-inner { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.cookie-banner .btn { font-weight: 800; }
.cookie-accept { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.cookie-accept:hover { background: #ff3854; }
.cookie-reject { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.cookie-reject:hover { background: var(--c-ink); color: #fff; }
.cookie-settings { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.cookie-settings:hover { background: var(--c-primary); color: #fff; }

/* Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); padding: var(--sp-16); }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { display: flex; flex-direction: column; gap: var(--sp-16); width: min(100%, 720px); background: var(--c-accent); color: var(--c-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); border: 2px solid #E8E4D6; padding: var(--sp-20); }
.cookie-modal .cookie-rows { display: flex; flex-direction: column; gap: var(--sp-12); }
.cookie-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-12); background: #fff; color: var(--c-ink); border-radius: 12px; padding: 10px 12px; border: 1px solid #E7E7E0; }
.cookie-row .always { font-weight: 800; color: var(--c-success); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); justify-content: flex-end; }

/* Toggle switch */
.toggle { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #C7CBD6; position: relative; cursor: pointer; outline: none; transition: background .2s ease; display: inline-flex; align-items: center; }
.toggle::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; margin-left: 3px; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle:checked { background: var(--c-primary); }
.toggle:checked::after { transform: translateX(18px); }

/* ---------- Accessibility helpers for high-contrast areas ---------- */
.hero .subheadline, .hero p { color: #E6E9F0; }

/* ---------- Page footer copyright line ---------- */
footer .container:last-of-type { padding-bottom: var(--sp-24); }
footer .container:last-of-type p { color: var(--c-text-muted); text-align: center; }

/* ---------- Extra: light card variant utility ---------- */
.card--light { background: var(--c-accent); color: var(--c-ink); border: 2px solid #E8E4D6; }

/* ---------- Ensure gaps between all stacked sections ---------- */
main .content-wrapper > * + * { margin-top: 0; }

/* ---------- Prevent overlaps: ensure adequate padding ---------- */
section .content-wrapper > * { scroll-margin-top: 90px; }

/* ---------- Print (simple) ---------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
