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

:root {
    --primary-navy: #1e3a5f;
    --secondary-navy: #2c5282;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --success-green: #059669;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-red);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

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

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.modal-buttons {
    margin: 2rem 0;
}

.responsible-gaming-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Buttons */
.btn-primary, .btn-cta {
    background: var(--accent-red);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover, .btn-cta:hover {
    background: var(--accent-red-hover);
    transform: translateY(-1px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    color: var(--white);
    padding: 1rem;
    z-index: 999;
    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;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-link {
    color: var(--white);
    text-decoration: underline;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: var(--primary-navy);
    color: var(--white);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

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

.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-navy);
    color: var(--white);
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-nav {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s ease;
}

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

.mobile-nav-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Sidebar (Desktop) */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--primary-navy);
    color: var(--white);
    z-index: 50;
    overflow-y: auto;
}

.sidebar-content {
    padding: 2rem 0;
}

.sidebar .logo {
    padding: 0 2rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-red);
}

.sidebar-footer {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-warning {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-warning p {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-warning a {
    color: #fbbf24;
    text-decoration: underline;
}

/* Casino Cards Section */
.casinos-section {
    padding: 4rem 2rem;
}

.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.casino-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.casino-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--background-light) 0%, #f3f4f6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 280px;
}
.casino-logo {
    width: 280px;
    height: 280px;
    background: none;
    background-color: transparent;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.casino-rating {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    text-align: center;
}

.rating-score {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.casino-tagline {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.bonus-info {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.bonus-info h4 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.bonus-info p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-navy);
    margin-bottom: 3rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--white);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background: var(--background-light);
}

.about-section h2 {
    text-align: center;
    color: var(--primary-navy);
    margin-bottom: 3rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-item {
    margin-bottom: 3rem;
}

.about-item h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.about-item ul {
    margin-left: 1.5rem;
}

.about-item li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0 1rem;
    width: calc(100% - 280px);
    margin-left: 280px;
    clear: both;
    box-sizing: border-box;
}

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

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.responsible-gaming-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.responsible-gaming-links a {
    background: var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
}

.responsible-gaming-links a:hover {
    background: var(--accent-red-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-red);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

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

.back-to-top:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .footer {
        margin-left: 0;
        width: 100%;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .casinos-section,
    .faq-section,
    .about-section {
        padding: 2rem 1rem;
    }
    
    .casinos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        min-height: 200px;
    }
    
    .casino-logo {
        width: 200px;
        height: 200px;
    }
    
    .casino-rating {
        position: static;
        margin-top: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.current-year {
    font-weight: normal;
}

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

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Legal Pages Styles */
.legal-page {
    background: var(--white);
}

.legal-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    color: var(--primary-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--secondary-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.support-organizations {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-org {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
}

.support-org h3 {
    color: var(--primary-navy);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.support-org p {
    margin-bottom: 0.5rem;
}

.back-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.back-link a {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
}

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

/* Print Styles */
@media print {
    .sidebar,
    .mobile-header,
    .cookie-banner,
    .back-to-top,
    .modal-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .legal-content {
        padding: 1rem;
    }
}