/* ===================================
   UK Casino Affiliate - Swiss Design
   Based on design-specification.md
   =================================== */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Design Tokens - Color System */
:root {
    /* Primary Accent */
    --color-primary: #DC143C;
    --color-primary-dark: #A01028;
    
    /* Achromatic Scale */
    --color-text-primary: #000000;
    --color-text-secondary: #333333;
    --color-text-tertiary: #666666;
    --color-text-disabled: #999999;
    --color-text-inverse: #FFFFFF;
    
    /* Borders */
    --color-border-standard: #CCCCCC;
    --color-border-strong: #000000;
    
    /* Surfaces */
    --color-surface-base: #FFFFFF;
    --color-surface-subtle: #F5F5F5;
    --color-surface-elevated: #E5E5E5;
    
    /* Typography */
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --font-size-display: 56px;
    --font-size-headline: 40px;
    --font-size-subhead: 28px;
    --font-size-body-large: 20px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-size-caption: 12px;
    
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.1;
    --line-height-snug: 1.2;
    --line-height-normal: 1.3;
    --line-height-relaxed: 1.5;
    --line-height-loose: 1.6;
    
    /* Spacing (8px Grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    
    /* Container */
    --container-max-width: 1200px;
    --container-margin-mobile: 16px;
    --container-margin-tablet: 32px;
    --container-margin-desktop: 64px;
    
    /* Border Radius */
    --radius-none: 0px;
    --radius-subtle: 2px;
    
    /* Animation */
    --duration-instant: 150ms;
    --duration-fast: 200ms;
    --easing-linear: linear;
    --easing-out: ease-out;
}

/* Base Typography */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    background-color: var(--color-surface-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Styles */
.display {
    font-size: var(--font-size-display);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.headline {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.subhead {
    font-size: var(--font-size-subhead);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
}

.body-large {
    font-size: var(--font-size-body-large);
    line-height: var(--line-height-loose);
}

.body {
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
}

.small {
    font-size: var(--font-size-small);
    line-height: var(--line-height-relaxed);
}

.caption {
    font-size: var(--font-size-caption);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-margin-mobile);
}

.container-narrow {
    max-width: 900px;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: var(--space-sm);
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    z-index: 200;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   Navigation Bar
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--color-surface-base);
    border-bottom: 1px solid var(--color-border-standard);
    z-index: 100;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--duration-instant) var(--easing-linear);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--duration-instant) var(--easing-linear);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--duration-fast) var(--easing-out);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    margin-top: 64px;
    min-height: 500px;
    background: var(--color-surface-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.age-badge {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-none);
    margin-bottom: var(--space-md);
}

.hero-content .display {
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: var(--font-size-body-large);
    line-height: var(--line-height-loose);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.hero-disclaimer {
    font-size: var(--font-size-caption);
    color: var(--color-text-tertiary);
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--space-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title-left {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.section-intro {
    font-size: var(--font-size-body-large);
    line-height: var(--line-height-loose);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    color: var(--color-text-secondary);
}

.section-disclaimer {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-align: center;
    margin-top: var(--space-xl);
}

.section-offers {
    background: var(--color-surface-base);
}

.section-safe {
    background: var(--color-surface-subtle);
}

.section-faq {
    background: var(--color-surface-base);
}

/* ===================================
   Casino Cards Grid
   =================================== */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.casino-card {
    background: var(--color-surface-base);
    border: 1px solid var(--color-border-standard);
    border-radius: var(--radius-none);
    padding: var(--space-lg);
    transition: border-color var(--duration-instant) var(--easing-linear);
}

.casino-card:hover {
    border-color: var(--color-text-primary);
}

.casino-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-sm);
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
}

.star-filled {
    fill: var(--color-text-primary);
}

.star-empty {
    fill: none;
    stroke: var(--color-border-standard);
    stroke-width: 1;
}

.rating-text {
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
}

.casino-bonus-label {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.casino-bonus-value {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.casino-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.requirement-item {
    display: flex;
    flex-direction: column;
}

.requirement-label {
    font-size: var(--font-size-caption);
    color: var(--color-text-tertiary);
    margin-bottom: 4px;
}

.requirement-value {
    font-size: var(--font-size-small);
    color: var(--color-text-primary);
}

.casino-cta {
    width: 100%;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-subtle);
    cursor: pointer;
    transition: background-color var(--duration-instant) var(--easing-linear);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-cta:hover {
    background: var(--color-primary-dark);
}

.casino-cta:focus {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 2px;
}

.casino-disclaimer {
    font-size: var(--font-size-caption);
    color: var(--color-text-tertiary);
    border-top: 1px solid var(--color-border-standard);
    padding-top: var(--space-sm);
    margin-top: var(--space-md);
}

/* ===================================
   Responsible Gambling Support Cards
   =================================== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.support-card {
    background: var(--color-surface-base);
    border: 2px solid var(--color-border-strong);
    border-radius: var(--radius-none);
    padding: var(--space-md);
    text-decoration: none;
    display: block;
    position: relative;
    transition: border-color var(--duration-instant) var(--easing-linear);
}

.support-card:hover {
    border-color: var(--color-primary);
}

.support-logo-container {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.support-logo {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%);
}

.support-name {
    font-size: var(--font-size-subhead);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.support-description {
    font-size: var(--font-size-small);
    color: var(--color-text-tertiary);
    line-height: var(--line-height-relaxed);
}

.support-arrow {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    color: var(--color-text-tertiary);
}

/* ===================================
   FAQ Section
   =================================== */
.faq-list {
    border-top: 1px solid var(--color-border-standard);
}

.faq-item {
    border-bottom: 1px solid var(--color-border-standard);
    padding: var(--space-md) 0;
}

.faq-question {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.faq-answer {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
    padding: var(--space-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-heading {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.footer-text {
    font-size: var(--font-size-small);
    line-height: var(--line-height-loose);
    color: var(--color-text-inverse);
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--color-text-inverse);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: text-decoration var(--duration-instant) var(--easing-linear);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-md);
}

.footer-copyright {
    font-size: var(--font-size-caption);
    text-align: center;
    opacity: 0.8;
}

/* ===================================
   Responsive Design
   =================================== */

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--container-margin-desktop);
    }
    
    .casino-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 var(--container-margin-tablet);
    }
    
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --font-size-display: 40px;
        --font-size-headline: 32px;
        --font-size-subhead: 24px;
    }
    
    .nav {
        height: 56px;
    }
    
    .nav-content {
        height: 56px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--color-surface-base);
        flex-direction: column;
        gap: 0;
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border-standard);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: var(--space-sm) 0;
    }
    
    .hero {
        margin-top: 56px;
        min-height: 400px;
        padding: var(--space-xl) 0;
    }
    
    .age-badge {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .casino-grid {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   Focus States (Keyboard Navigation)
   =================================== */
a:focus,
button:focus {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 2px;
}

/* ===================================
   Smooth Scroll
   =================================== */
html {
    scroll-behavior: smooth;
}
