/* ===========================================
   Unidy - Brand Styles
   Customizable Brand Colors
   =========================================== */

/* ===========================================
   FONTS
   Primary: Fago (commercial font)
   Fallback: Trebuchet MS (system font per styleguide)
   =========================================== */

/* ===========================================
   CSS Custom Properties / Variables
   =========================================== */
:root {
    /* Brand Colors - Unidy */
    /* Primary: Blue */
    --color-primary: #004b9c;           /* Unidy Blue */
    --color-primary-dark: #002752;
    --color-primary-light: #0071eb;
    --color-primary-overlay: color-mix(in srgb, var(--color-primary) 75%, transparent);
    --color-primary-overlay-dark: color-mix(in srgb, var(--color-primary) 90%, transparent);
    --color-focus-ring: var(--color-focus-ring);

    /* Accent: Blue (for CTAs and important actions) */
    --color-accent: #004b9c;            /* Same as primary */
    --color-accent-hover: #003975;

    /* S04 greys & ink, to match the club's own page chrome */
    --color-club-grey: #dde3e9;          /* watermark headlines, hairlines */
    --color-club-grey-dark: #b8c3cf;     /* image placeholder, disabled */
    --color-club-slate: #667a8e;
    --color-club-slate-light: #8b9bab;
    --color-club-ink: #04101c;
    /* The club sets every heading in this navy, a shade deeper than the
       primary blue it uses for links and labels. Read off schalke04.de. */
    --color-club-heading: #00346e;
    --color-club-mist: #f4f6f8;

    /* Hover and the active menu underline on the dark bars */
    --color-club-sky: #8ec5ff;
    /* The deep blue under the partner rows and the footnote */
    --color-club-navy-deep: #001a3a;

    /* Page ground, card surface and secondary text on dark ground. Atlas sets
       these to paper and ivory; Schalke stays on the club's own white. */
    --color-paper: #f5f6f8;
    --color-ivory: #ffffff;
    --color-cream-soft: rgba(255, 255, 255, 0.78);
    /* The gradient used on the header rule and on teaser hover */
    --club-gradient: linear-gradient(270deg, #004b9c, #004b9c 60%, #002752);

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-muted: rgba(255,255,255,0.85);
    --color-black: #000000;
    --color-dark: #121417;
    --color-dark-lighter: #25292d;
    --color-text: #3b4045;
    --color-text-light: #4b5158;
    --color-text-muted: #7d848c;
    --color-border: #e3e5e8;
    --color-border-dark: #c7ccd1;
    --color-background: #ffffff;
    --color-background-light: #f7f7f8;
    --color-background-muted: #eef0f1;

    /* Content / paywall tokens */
    --color-gold: #c79b3c;
    --color-gold-hover: #b18828;
    --color-primary-tint: #eaf0f5;

    /* Shared / semantic */
    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --color-danger-bg: rgba(220,53,69,0.1);
    --color-danger-border: rgba(220,53,69,0.3);
    --color-danger-border-light: #fca5a5;

    --color-success-bg-soft: rgba(22,163,74,0.1);
    --color-success-bg: #dcfce7;
    --color-success-border-soft: rgba(22,163,74,0.3);
    --color-success-border: #86efac;
    --color-success-text: #166534;
    --color-success-text-bright: #16a34a;

    --color-error-bg-soft: #fef2f2;
    --color-error-border: #fecaca;
    --color-error-text: #991b1b;

    /* Accent surface (green-tinted UI surfaces) */
    --color-accent-surface-soft: rgba(0,150,64,0.05);
    --color-accent-surface: rgba(0,150,64,0.08);
    --color-accent-surface-hover: rgba(0,150,64,0.15);
    --color-accent-border: rgba(0,150,64,0.3);

    /* Neutral utility */
    --color-neutral-hover: #e5e7eb;
    --color-neutral-800: #1f2937;

    /* Newsletter & Preference Center */
    --color-newsletter-dio-banner-btn: #92400e;
    --color-newsletter-dio-banner-btn-border: #d97706;
    --color-newsletter-dio-banner-btn-hover: #d97706;
    --color-newsletter-icon-background: #1a365d;
    --color-newsletter-icon: #63b3ed;

    --color-checkbox-bg: #d1d5db;

    --color-resend-dio-div-bg: #fef3c7;
    --color-resend-dio-div-border: #fcd34d;
    --color-resend-dio-text: #92400e;

    /* Tickets */
    --color-ticket-card-background: #22c55e;

    /* Typography - Heebo */
    --font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    --font-family-heading: 'Heebo', system-ui, -apple-system, sans-serif;
    --font-family-label: 'Heebo', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1.25rem;
    --header-height: 64px;
    /* Width of the fixed left rail the club runs down the edge of every page.
       Desktop only — below 1024px the rail is hidden and its links live in the
       drawer, so nothing is inset. */
    --rail-width: 72px;
    --header-height-mobile: 64px;

    /* Hero */
    --hero-py: 2rem;
    --hero-py-md: 4rem;
    --hero-eyebrow-bg: var(--color-primary-dark);
    --hero-overlay-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/G%3E%3C/g%3E%3C/svg%3E");

    /* Optional Hero Background Image (uncomment & set to enable) */
    /* --hero-background-image: url("/assets/images/hero_background.jpeg"); */

    /* ───── Sales-Demo Homepage ───── */
    --hero-demo-bg: #060f18;
    --hero-demo-min-h: 640px;
    --hero-demo-py: 64px;
    --hero-demo-py-md: 80px;
    --hero-demo-floodlight-1: rgba(0, 113, 235, 0.4);
    --hero-demo-floodlight-2: color-mix(in srgb, var(--color-primary) 35%, transparent);
    --hero-demo-glass-bg: rgba(255, 255, 255, 0.06);
    --hero-demo-glass-border: rgba(255, 255, 255, 0.12);
    --hero-demo-glass-radius: 14px;
    --hero-demo-pulse: var(--color-primary-light);

    --stats-bar-bg: var(--color-dark);
    --stats-bar-py: 32px;
    --stats-bar-num-size: 32px;
    --stats-bar-label-color: rgba(255, 255, 255, 0.6);

    --feature-card-border: 2px solid var(--color-dark);
    --feature-card-num-color: var(--color-primary);
    --feature-card-pt: 28px;

    --newsletter-cta-bg: var(--color-dark);
    --newsletter-cta-py: 96px;
    --newsletter-cta-glow: color-mix(in srgb, var(--color-primary) 40%, transparent);
    --newsletter-cta-panel-bg: rgba(255, 255, 255, 0.04);
    --newsletter-cta-panel-border: rgba(255, 255, 255, 0.12);

    /* ───── schalke04.de replica: stage, news grid, reduced footer ─────
       Values chosen to line up with the club's own page: full-bleed stage,
       rectangular chrome (the S04 site skews nothing) and royal blue. */
    --club-stage-min-h: 31rem;
    /* The generation's split stage (photo 2fr, panel 1fr): its headline has to fit
       the panel column, so these are the generation's sizes, not the full-bleed
       display the old S04 stage used. */
    --club-stage-h: 80vh;
    --club-stage-max-h: 49rem;
    /* Darkens the left third of the stage photo so the white headline reads. */
    --club-stage-scrim: linear-gradient(
        90deg,
        rgba(4, 16, 28, 0.84) 0%,
        rgba(4, 16, 28, 0.48) 45%,
        rgba(4, 16, 28, 0.02) 78%
    );
    --club-stage-scrim-bottom: linear-gradient(0deg, rgba(4, 16, 28, 0.55), transparent 38%);
    --club-stage-scrim-mobile: linear-gradient(
        0deg,
        rgba(4, 16, 28, 0.82) 0%,
        rgba(4, 16, 28, 0.55) 40%,
        rgba(4, 16, 28, 0.15) 70%,
        rgba(4, 16, 28, 0.45) 100%
    );
    --club-stage-headline: 2.25rem;
    --club-stage-headline-sm: 1.75rem;

    /* Hertha skews its buttons and category labels; S04 does not. The variables
       stay so the shared chrome keeps one shape language — set an angle here to
       bring the parallelograms back. */
    --club-skew: 0deg;
    --club-skew-back: 0deg;

    --club-watermark-size: 9.25rem;
    --club-watermark-size-sm: 3.625rem;
    --club-teaser-title: 1.125rem;
    --club-teaser-hover: linear-gradient(270deg, #004b9c, #004b9c 60%, #002752);
    --club-lock-scrim: rgba(4, 16, 28, 0.55);
    --club-teaser-shadow: 0 0 4px 0 rgba(4, 16, 28, 0.4);
    --club-lock-blur: 7px;

    /* ───── Login Modal ───── */
    --login-modal-max-width: 26.25rem;
    --login-modal-radius: var(--radius-lg);
    --login-input-height: 3rem;
    --login-input-radius: var(--radius-md);
    --login-input-border: 1.5px;
    --login-input-border-color: var(--color-border-dark);
    --login-input-focus-ring: rgba(12, 16, 25, 0.08);
    --login-divider-gap: 1.25rem 0 1rem;
    /* The passkey button is ours to style; the social buttons render with the
       SDK's own look and ignore our class-name. These values are read off that
       SDK button so all rows in the login modal match. */
    --login-provider-height: 2.5rem;
    --login-provider-radius: 6px;
    --login-provider-border-width: 1px;
    --login-provider-border-color: #d1d5db;
    --login-provider-font-size: 1rem;
    --login-provider-font-weight: 500;
    --login-provider-color: #1f1f1f;
    --login-provider-hover: #f3f4f6;
    --login-provider-icon-size: 1.25rem;
    --login-provider-gap: 1rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
        --header-height: 80px;
    }
}
