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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #5b21b6;
}

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

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* 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;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

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

.age-gate-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.age-gate-content h2 {
    color: #7c3aed;
    margin-bottom: 1rem;
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

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

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

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

.cookie-banner__buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    color: white;
    transform: translateY(-1px);
}

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

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

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

.btn-outline:hover {
    background: #7c3aed;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-casino {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    min-width: 120px;
}

.btn-casino:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 158, 11, 0.3);
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.navbar__brand {
    flex-shrink: 0;
}

.navbar__logo img {
    display: block;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.navbar__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar__nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.navbar__link {
    color: #d1d5db;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.navbar__link:hover,
.navbar__link--active {
    color: #f59e0b;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #581c87 0%, #7c3aed 50%, #a855f7 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f59e0b;
}

.hero__stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Quick Filters */
.quick-filters {
    padding: 3rem 0;
    background: #f9fafb;
}

.quick-filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.filter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
    color: #333;
}

.filter-card h3 {
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.filter-card p {
    color: #6b7280;
    margin: 0;
}

/* Top Casinos Section */
.top-casinos {
    padding: 4rem 0;
}

.section__title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.casino-list {
    max-width: 800px;
    margin: 0 auto;
}

.casino-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

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

.casino-card__rank {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.casino-card__content {
    flex: 1;
}

.casino-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.casino-card__logo {
    flex-shrink: 0;
}

.casino-card__logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9fafb;
    padding: 8px;
}

.casino-card__name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.casino-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.casino-card__cta {
    margin-left: 1rem;
    flex-shrink: 0;
}

/* How We Rate Section */
.how-we-rate {
    padding: 4rem 0;
    background: #f9fafb;
}

.rating-criteria {
    margin-top: 2rem;
}

.criteria-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.criteria-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.criteria-item h4 {
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.rating-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.rating-widget h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rating-scale {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-score {
    font-weight: 600;
    color: #7c3aed;
}

.rating-label {
    color: #6b7280;
}

/* Responsible Gambling Section */
.responsible-gambling {
    padding: 4rem 0;
    background: #f3f4f6;
    text-align: center;
}

.section__subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.rg-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.rg-logo {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.rg-logo:hover {
    opacity: 1;
}

.rg-logo img {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.rg-logo:hover img {
    filter: grayscale(0%);
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__brand img {
    margin-bottom: 1rem;
}

.footer__tagline {
    color: #9ca3af;
    margin: 0;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__column h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer__column ul {
    list-style: none;
}

.footer__column li {
    margin-bottom: 0.5rem;
}

.footer__column a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

.footer__column a:hover {
    color: #f59e0b;
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer__disclaimer {
    flex: 1;
}

.footer__disclaimer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer__disclaimer strong {
    color: #f59e0b;
}

.footer__disclaimer a {
    color: #f59e0b;
}

.footer__copyright {
    flex-shrink: 0;
}

.footer__copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f2937;
        border-top: 1px solid #374151;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar__nav {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .navbar__link {
        padding: 1rem 20px;
        border-bottom: 1px solid #374151;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .quick-filters__grid {
        grid-template-columns: 1fr;
    }

    .casino-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .casino-card__rank {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .casino-card__header {
        flex-direction: column;
        text-align: center;
    }

    .casino-card__cta {
        margin-left: 0;
        width: 100%;
    }

    .col-lg-4,
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-banner__buttons {
        justify-content: center;
    }

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

    .rg-logos {
        gap: 1rem;
    }

    .rg-logo img {
        height: 40px;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #7c3aed;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

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

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .age-gate-modal,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}