/* =========================================== */
/* GOOGLE FONTS IMPORT                        */
/* =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* =========================================== */
/* CSS RESET & BASE STYLES                    */
/* =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #212529;
    line-height: 1.6;
    font-size: 16px;
}

/* =========================================== */
/* CRITICAL: RESPONSIVE VISIBILITY CLASSES    */
/* =========================================== */
@media (min-width: 768px) {
    .hide-on-desktop {
        display: none !important;
        opacity: 0 !important;
    }
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* =========================================== */
/* HEADER STYLES                              */
/* =========================================== */
.site-header {
    background-color: #ffc107;
    border-bottom: 3px solid #004a99;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.warning-banner {
    padding: 12px 0;
}

.warning-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}

.age-icon {
    background-color: #212529;
    color: #ffc107;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.warning-content span {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

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

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004a99;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-text {
    font-size: 1.125rem;
    color: #212529;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================== */
/* BUTTON STYLES                              */
/* =========================================== */
.btn-primary {
    display: inline-block;
    background-color: #004a99;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #3385ff;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.3);
}

.btn-primary:focus {
    outline: 2px solid #3385ff;
    outline-offset: 2px;
}

/* =========================================== */
/* MOBILE-ONLY STYLES (Card Layout)          */
/* =========================================== */
.mobile-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.betting-card {
    background-color: #1c2331;
    color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.betting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(28, 35, 49, 0.4);
}

.betting-card.featured {
    border-color: #ffc107;
    background: linear-gradient(135deg, #1c2331 0%, #2a3441 100%);
}

.card-rank {
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: #004a99;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 74, 153, 0.3);
}

.betting-card.featured .card-rank {
    background-color: #ffc107;
    color: #212529;
}

.card-logo {
	margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 12px;
    padding: 0;
    min-height: 140px;
}

.card-logo img {
    max-width: 260px;
    max-height: 100px;
    object-fit: contain;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: #ffc107;
    font-size: 1.125rem;
}

.rating-text {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.125rem;
}

.card-bonus {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.bonus-label {
    font-size: 0.875rem;
    color: #b0b7c3;
    margin-bottom: 8px;
}

.bonus-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffc107;
}

.bonus-description {
    font-size: 0.875rem;
    color: #b0b7c3;
    margin-top: 4px;
}

.card-features {
    margin-bottom: 24px;
    text-align: left;
}

.feature {
    color: #28a745;
    font-size: 0.875rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.betting-card .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
}

/* =========================================== */
/* DESKTOP-ONLY STYLES (Table Layout)        */
/* =========================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 32px;
    line-height: 1.6;
}

.table-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table thead th {
    background-color: #004a99;
    color: #ffffff;
    font-weight: 700;
    padding: 20px 16px;
    text-align: left;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody td {
    padding: 20px 16px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tbody tr:hover {
    background-color: #e3f2fd;
}

.featured-row {
    border-left: 4px solid #ffc107 !important;
    position: relative;
}

.featured-row::before {
    content: "TOP CHOIX";
    position: absolute;
    top: 8px;
    left: -2px;
    background-color: #ffc107;
    color: #212529;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 0 4px 4px 0;
}

.rank-cell {
    font-weight: 700;
    font-size: 1.125rem;
    color: #004a99;
    text-align: center;
    width: 60px;
}

.operator-cell {
    width: 180px;
}

.operator-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.operator-info img {
    max-width: 80px;
    max-height: 26px;
    object-fit: contain;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px;
}

.operator-details {
    display: flex;
    flex-direction: column;
}

.operator-details strong {
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
}

.license {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

.bonus-cell {
    width: 200px;
}

.bonus-info {
    display: flex;
    flex-direction: column;
}

.bonus-info strong {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 4px;
}

.bonus-terms {
    font-size: 0.75rem;
    color: #6c757d;
}

.bonus-conditions {
    font-size: 0.7rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 2px;
}

.rating-cell {
    width: 100px;
    text-align: center;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rating-info .stars {
    font-size: 1rem;
}

.rating-info strong {
    font-weight: 700;
    color: #212529;
}

.features-cell {
    width: 250px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    font-size: 0.875rem;
    color: #212529;
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}

.mobile-cell {
    width: 120px;
    text-align: center;
}

.mobile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-rating {
    color: #ffc107;
    font-size: 0.875rem;
}

.mobile-info span:last-child {
    font-size: 0.75rem;
    color: #6c757d;
}

.action-cell {
    width: 160px;
    text-align: center;
}

.action-cell .btn-primary {
    font-size: 12px;
    padding: 10px 16px;
}

/* Desktop Additional Info */
.desktop-additional-info {
    margin-top: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid #004a99;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #004a99;
    margin-bottom: 12px;
}

.info-card p {
    color: #212529;
    line-height: 1.6;
}

/* =========================================== */
/* RESPONSIBLE GAMING SECTION                 */
/* =========================================== */
.responsible-gaming {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.responsible-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.responsible-gaming h2 {
    color: #856404;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.responsible-content {
    max-width: 800px;
    margin: 0 auto;
}

.responsible-warning {
    font-size: 1.125rem;
    color: #856404;
    margin-bottom: 20px;
    line-height: 1.6;
}

.help-resources {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.help-link {
    color: #004a99;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #3385ff;
}

/* =========================================== */
/* FOOTER STYLES                              */
/* =========================================== */
.site-footer {
    background-color: #212529;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    color: #ffc107;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.regulatory-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.regulatory-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.regulatory-link:hover {
    background-color: #343a40;
}

.regulatory-link span {
    font-size: 0.875rem;
}

.legal-info {
    line-height: 1.6;
}

.legal-info p {
    margin-bottom: 12px;
    color: #dee2e6;
    font-size: 0.875rem;
}

.copyright {
    font-weight: 600;
    color: #ffc107;
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 20px;
    border-top: 1px solid #495057;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.875rem;
    color: #dee2e6;
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: #ffc107;
}

/* =========================================== */
/* RESPONSIBLE GAMING LOGOS SECTION           */
/* =========================================== */
.responsible-logos-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 3px solid #004a99;
}

.logos-title {
    text-align: center;
    color: #004a99;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    min-height: 80px;
    width: 100%;
    max-width: 200px;
}

.logo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo-link:focus {
    outline: 2px solid #3385ff;
    outline-offset: 2px;
}

.responsible-logo {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.logo-link:hover .responsible-logo {
    filter: brightness(1);
}

/* =========================================== */
/* MOBILE RESPONSIVE STYLES                   */
/* =========================================== */
@media (max-width: 767px) {
    .container {
        padding: 16px;
    }
    
    .main-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .intro-text {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .warning-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .warning-content span {
        font-size: 12px;
    }
    
    .age-icon {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .betting-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
	
	.card-logo {
        min-height: 120px;
    }
	
	.card-logo img {
        max-width: 220px;
        max-height: 80px;
    }
    
    .bonus-amount {
        font-size: 1.125rem;
    }
    
    .responsible-gaming {
        padding: 24px;
        margin: 32px 0;
    }
    
    .responsible-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .responsible-gaming h2 {
        font-size: 1.5rem;
    }
    
    .responsible-warning {
        font-size: 1rem;
    }
    
    .help-resources {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .regulatory-links {
        gap: 12px;
    }
    
    .regulatory-link {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    /* Responsible Gaming Logos - Mobile Styles */
    .responsible-logos-section {
        padding: 32px 0;
    }
    
    .logos-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .logo-link {
        min-height: 70px;
        padding: 12px;
    }
    
    .responsible-logo {
        max-height: 40px;
    }
}

/* =========================================== */
/* TABLET STYLES                              */
/* =========================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .main-title {
        font-size: 2.25rem;
    }
    
    .comparison-table {
        font-size: 13px;
    }
    
    .comparison-table thead th {
        padding: 16px 12px;
        font-size: 0.75rem;
    }
    
    .comparison-table tbody td {
        padding: 16px 12px;
    }
    
    .features-cell {
        width: 200px;
    }
    
    .bonus-cell {
        width: 160px;
    }
    
    .action-cell .btn-primary {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    /* Responsible Gaming Logos - Tablet Styles */
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

/* =========================================== */
/* DESKTOP LARGE STYLES                       */
/* =========================================== */
@media (min-width: 1200px) {
    .main-title {
        font-size: 2.75rem;
    }
    
    .intro-text {
        font-size: 1.25rem;
    }
    
    .comparison-table {
        font-size: 15px;
    }
    
    .comparison-table thead th {
        padding: 24px 20px;
    }
    
    .comparison-table tbody td {
        padding: 24px 20px;
    }
}

/* =========================================== */
/* ACCESSIBILITY & FOCUS STATES               */
/* =========================================== */
a:focus,
button:focus,
.btn-primary:focus {
    outline: 2px solid #3385ff;
    outline-offset: 2px;
}

.comparison-table:focus {
    outline: 2px solid #3385ff;
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .betting-card {
        border: 2px solid #ffffff;
    }
    
    .featured-row {
        border-left: 6px solid #ffc107 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .betting-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* =========================================== */
/* PRINT STYLES                               */
/* =========================================== */
@media print {
    .hide-on-desktop,
    .hide-on-mobile {
        display: block !important;
        opacity: 1 !important;
    }
    
    .betting-card {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }
    
    .btn-primary {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }
}
