/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial,
        sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    color: white;
    text-decoration: none;
}

.btn-tertiary {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-tertiary:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-casino {
    width: 100%;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-casino:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

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

.age-gate-content {
    background: white;
    background: #4b5563;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-gate-content h2 {
    color: #dc2626;
    margin-bottom: 20px;
    font-size: 24px;
}

.age-gate-content p {
    margin-bottom: 15px;
    color: #d1d5db;
}

.age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.age-gate-buttons button {
    flex: 1;
    max-width: 200px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content h3 {
    margin-bottom: 10px;
    color: #f9fafb;
}

.cookie-controls {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.cookie-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d1d5db;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Header */
.header {
    background: #1f2937;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #3b82f6;
}

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

.nav-menu a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3b82f6;
    text-decoration: none;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #374151;
    min-width: 200px;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #d1d5db;
}

.dropdown-menu a:hover {
    background: #4b5563;
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Help Strip */
.help-strip {
    background: #fef3c7;
    border-bottom: 1px solid #f59e0b;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.help-content a {
    color: #92400e;
    font-weight: 600;
    margin: 0 5px;
}

.help-content a:hover {
    color: #78350f;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-badges img {
    height: 40px;
    width: auto;
}

/* Featured Casinos */
.featured-casinos {
    padding: 80px 0;
    background: #f8fafc;
}

.featured-casinos h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.casino-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.casino-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.casino-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.casino-logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.casino-rating {
    text-align: right;
}

.stars {
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 5px;
}

.rating-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.casino-bonus {
    margin-bottom: 20px;
}

.casino-bonus h3 {
    font-size: 16px;
    color: #374151;
    margin-bottom: 8px;
}

.bonus-amount {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 8px;
}

.bonus-terms {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.casino-features {
    margin-bottom: 20px;
}

.casino-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.casino-features li {
    font-size: 14px;
    color: #374151;
}

.casino-payments {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.casino-payments img {
    height: 30px;
    width: auto;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    color: white;
}

.affiliate-disclosure {
    margin-top: 10px;
    text-align: center;
}

.affiliate-disclosure small {
    color: #6b7280;
    font-size: 11px;
}

.section-cta {
    text-align: center;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: white;
}

.trust-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.trust-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: #f8fafc;
    color: #1f2937;
}

.trust-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 600;
}

.trust-item p {
    color: #4b5563;
    line-height: 1.6;
}

/* Guides Section */
.guides-section {
    padding: 80px 0;
    background: #f8fafc;
}

.guides-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.guide-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
}

.guide-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 600;
}

.guide-card p {
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.6;
}

.guide-link {
    color: #1e40af;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.guide-link:hover {
    color: #1d4ed8;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.rg-section {
    background: #dc2626;
    margin: -60px -20px 40px;
    padding: 30px 20px;
    border-radius: 12px;
}

.rg-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.rg-message p {
    margin-bottom: 20px;
    color: #fecaca;
}

.rg-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.rg-logos img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.rg-logos img:hover {
    transform: scale(1.05);
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #e5e7eb;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
    text-decoration: none;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 12px !important;
    color: #9ca3af !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #374151;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .casino-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .age-gate-buttons {
        flex-direction: column;
    }

    .rg-logos {
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
