/* ==========================================================================
   Social Casino UK - Main Stylesheet
   ========================================================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Colors */
    --primary-500: #00E5FF;
    --primary-700: #00B8D4;
    --secondary-500: #D500F9;
    --bg-page: #0A0A0B;
    --bg-surface: rgba(28, 28, 32, 0.5);
    --text-primary: #E4E4E7;
    --text-secondary: #A1A1AA;
    --error-500: #FF3B30;
    --success-500: #34C759;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 96px;
    --space-xxxl: 128px;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 350ms ease-out;
    
    /* Container */
    --container-max-width: 1400px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-page);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

/* Age Warning Banner */
.age-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--error-500);
    color: white;
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    filter: blur(2px);
    transition: transform 100ms ease;
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-500);
    background: transparent;
    opacity: 0.8;
}

.custom-cursor.text-hover {
    width: 3px;
    height: 24px;
    background: var(--primary-500);
    opacity: 0.8;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 36px; /* Account for age warning */
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    top: 0;
    background: rgba(10, 10, 11, 0.95);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo a {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    transition: width var(--transition-fast);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px; /* Account for navbar and age warning */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.gradient-mesh {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 229, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(213, 0, 249, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(90deg); }
    50% { transform: translate(-5px, 10px) rotate(180deg); }
    75% { transform: translate(-10px, -5px) rotate(270deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-lg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-500) 50%, var(--secondary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleReveal 1.5s ease-out;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-500);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.cta-button {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.cta-button.primary-btn {
    background: var(--primary-500);
    color: var(--bg-page);
}

.cta-button.primary-btn:hover {
    background: var(--primary-700);
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
}

.cta-button.primary-btn:active {
    transform: scale(0.98);
}

.cta-button.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-500);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-lg);
    text-align: center;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(0, 229, 255, 0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-page);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Article Preview Section */
.article-card {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.article-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 14px;
}

.article-category {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: var(--bg-page);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-date {
    color: var(--text-secondary);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.article-link:hover {
    transform: translateX(4px);
}

.link-arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.article-link:hover .link-arrow {
    transform: translateX(4px);
}

/* Showcase Section */
.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.showcase-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.showcase-features li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.showcase-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-500);
    font-weight: bold;
}

.showcase-visual {
    position: relative;
}

.game-preview {
    position: relative;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    overflow: hidden;
}

.preview-screen {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(213, 0, 249, 0.1));
    border-radius: 12px;
    padding: var(--space-lg);
    aspect-ratio: 16/9;
}

.game-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.game-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.game-stats {
    display: flex;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.game-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-container {
    display: flex;
    gap: var(--space-sm);
}

.reel {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: 8px;
    animation: reelSpin 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes reelSpin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* CTA Section */
.cta-section .cta-content {
    text-align: center;
    padding: var(--space-xxl);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(10, 10, 11, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xxl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-500);
    color: var(--bg-page);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

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

.footer-list li {
    margin-bottom: var(--space-sm);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.org-logo {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.footer-disclaimer {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.footer-copyright {
    text-align: right;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .showcase-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xxl: 64px;
        --space-xxxl: 96px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        min-width: 200px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        text-align: center;
    }
}

/* Animations for scroll-triggered elements */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for interactive elements */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform var(--transition-smooth);
}

[data-tilt]:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* Loading animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-500);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .custom-cursor,
    .age-warning {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
}