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

:root {
    --primary-navy: #1a2332;
    --secondary-navy: #2d3748;
    --accent-silver: #c0c0c0;
    --light-silver: #e8e8e8;
    --dark-silver: #a0a0a0;
    --white: #ffffff;
    --gold: #ffd700;
    --red: #e53e3e;
    --green: #38a169;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --text-muted: #a0a0a0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-navy);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Verification Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.age-modal.hidden {
    display: none;
}

body.age-modal-active {
    overflow: hidden;
}

.age-modal-content {
    background: var(--secondary-navy);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--accent-silver);
}

.age-modal-header h2 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 24px;
}

.age-modal-body p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.age-modal-buttons {
    margin-top: 25px;
}

/* Header */
.header {
    background: var(--primary-navy);
    border-bottom: 1px solid var(--secondary-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: var(--gold);
    font-size: 24px;
    font-weight: 700;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-desktop a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--accent-silver);
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--secondary-navy);
    transition: right 0.3s ease;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--accent-silver);
}

.nav-mobile-header h3 {
    color: var(--gold);
}

.nav-mobile-close {
    background: none;
    border: none;
    color: var(--accent-silver);
    font-size: 24px;
    cursor: pointer;
}

.nav-mobile ul {
    list-style: none;
    padding: 20px 0;
}

.nav-mobile a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    transition: background 0.3s ease;
}

.nav-mobile a:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.82), rgba(45, 55, 72, 0.85)), url('images/navy-silver-casino-dynamic.webp') center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-info {
    background: rgba(45, 55, 72, 0.8);
    padding: 25px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-cta {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 5px;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-navy);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-silver);
    border: 2px solid var(--accent-silver);
}

.btn-secondary:hover {
    background: var(--accent-silver);
    color: var(--primary-navy);
}

.btn-cta {
    background: var(--green);
    color: var(--white);
    font-size: 16px;
    padding: 15px 35px;
}

.btn-cta:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 36px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 50px;
}

/* Casino Cards */
.casinos-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.casino-card {
    background: var(--secondary-navy);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    border: 1px solid rgba(192, 192, 192, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.casino-card-logo {
    flex-shrink: 0;
    text-align: center;
    position: relative;
}

.casino-card-logo img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: transparent;
    object-fit: contain;
    margin-bottom: 10px;
}

.casino-rating {
    background: var(--gold);
    color: var(--primary-navy);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 14px;
}

.casino-card-content {
    flex: 1;
}

.casino-card-content h3 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 10px;
}

.bonus-header {
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 5px;
}

.bonus-subtext {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bonus-terms {
    background: rgba(26, 35, 50, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.bonus-terms h4 {
    color: var(--gold);
    margin-bottom: 10px;
}

.bonus-terms p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.casino-rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.rating-stars {
    color: var(--gold);
    font-weight: 700;
}

.rating-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Why Us Section Background */
.why-us {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.88), rgba(45, 55, 72, 0.9)), url('images/navy-silver-slot-motion.webp') center/cover no-repeat;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--secondary-navy);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(192, 192, 192, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 20px;
}

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

/* Our Games Section Background */
.our-games {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.85), rgba(45, 55, 72, 0.88)), url('images/silver-accent-roulette-closeup.webp') center/cover no-repeat;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: var(--secondary-navy);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(192, 192, 192, 0.2);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.game-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 22px;
}

.game-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-navy);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.1);
}

.faq-question h3 {
    color: var(--gold);
    font-size: 18px;
}

.faq-toggle {
    font-size: 24px;
    color: var(--accent-silver);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsible Gaming Section Background */
.responsible-gaming {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.87), rgba(45, 55, 72, 0.9)), url('images/dark-navy-silver-roulette-focus.webp') center/cover no-repeat;
}

/* Responsible Gaming */
.responsible-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.responsible-card {
    background: var(--secondary-navy);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.responsible-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 18px;
}

.responsible-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--secondary-navy);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 2px solid var(--accent-silver);
}

.footer-about {
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-about p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.footer-nav ul, .footer-legal ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin-bottom: 30px;
}

.footer-nav a, .footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover, .footer-legal a:hover {
    color: var(--gold);
}

/* Trust Banners Section */
.trust-banners {
    background: var(--primary-navy);
    padding: 50px 0;
}

.trust-banners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.trust-banner-item {
    background: var(--secondary-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    aspect-ratio: 3 / 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

a.trust-banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.trust-banner-item img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

.trust-banner-item img.trust-banner-white {
    filter: brightness(0) invert(1);
}

.footer-responsible {
    background: rgba(26, 35, 50, 0.7);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-responsible p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-responsible a {
    color: var(--gold);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid var(--accent-silver);
    padding-top: 30px;
    color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-navy);
    border-top: 2px solid var(--accent-silver);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-link {
    color: var(--gold);
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--primary-navy);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ffed4e;
    transform: translateY(-3px);
}

/* Legal Pages */
.legal-page {
    background: var(--primary-navy);
    min-height: 100vh;
    padding: 40px 0;
}

.legal-page .container {
    max-width: 900px;
    background: var(--secondary-navy);
    border-radius: 12px;
    padding: 40px;
    margin: 0 auto;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.legal-page h1 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}

.legal-page .last-updated {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-style: italic;
}

.legal-page section {
    margin-bottom: 40px;
}

.legal-page h2 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-silver);
    padding-bottom: 10px;
}

.legal-page h3 {
    color: var(--accent-silver);
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-page ul, .legal-page ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-page a {
    color: var(--gold);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tip-card {
    background: var(--primary-navy);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.tip-card h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 10px;
}

.support-organizations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.support-org {
    background: var(--primary-navy);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.support-org h3 {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 15px;
}

.emergency-contacts {
    background: rgba(255, 215, 0, 0.1);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    margin: 25px 0;
}

.emergency-contacts p {
    margin-bottom: 10px;
    font-weight: 500;
}

.cookie-table {
    overflow-x: auto;
    margin: 25px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-navy);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.cookie-table th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    font-weight: 600;
}

.cookie-table td {
    color: var(--text-secondary);
}

.back-link {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(192, 192, 192, 0.3);
}

.back-link a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .casino-card {
        flex-direction: column;
        text-align: center;
    }
    
    .casino-card-logo img {
        margin: 0 auto 10px;
    }
    
    .features-grid, .games-grid, .responsible-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav ul, .footer-legal ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .trust-banners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .age-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-page .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .legal-page h1 {
        font-size: 28px;
    }
    
    .legal-page h2 {
        font-size: 20px;
    }
    
    .tips-grid,
    .support-organizations {
        grid-template-columns: 1fr;
    }
    
    .cookie-table {
        font-size: 14px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .casino-card {
        padding: 20px;
    }
    
    .feature-card, .game-card, .responsible-card {
        padding: 25px 20px;
    }
}

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

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}