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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1A1A1A;
    background-color: #F4F6F9;
}

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

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

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    color: #0D204C;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.4rem;
    color: #1A1A1A;
    line-height: 1.4;
}

h4 {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Links */
a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #0D204C 0%, #1a3a6b 100%);
    color: #FFFFFF;
    padding: 48px 0;
    text-align: center;
}

.header__title {
    margin-bottom: 16px;
}

.header__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsible Gambling Bar */
.responsible-gambling-bar {
    background-color: #0A193B;
    color: #FFFFFF;
    padding: 16px 0;
    border-bottom: 3px solid #D4AF37;
}

.responsible-gambling-bar__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.responsible-gambling-bar__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.responsible-gambling-bar__text {
    font-size: 0.9rem;
    font-weight: 500;
}

.responsible-gambling-bar__link {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
}

.responsible-gambling-bar__link:hover {
    color: #EACD6F;
    text-decoration: underline;
}

/* Main Content */
.main {
    padding: 48px 0;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #D4AF37;
    border-radius: 2px;
}

/* Casino Comparison Section */
.casino-comparison {
    margin-bottom: 64px;
}

.casino-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 24px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.casino-card__logo-container {
    text-align: center;
}

.casino-card__logo {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.casino-card__logo-container:hover .casino-card__logo {
    transform: scale(1.05);
}

.casino-card__info {
    flex: 1;
}

.casino-card__name {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #0D204C;
}

.casino-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 20px;
    color: #E0E0E0;
}

.star--filled {
    color: #D4AF37;
}

.star--half-filled {
    background: linear-gradient(90deg, #D4AF37 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.star--empty {
    color: #E0E0E0;
}

.rating-text {
    font-size: 0.9rem;
    color: #555555;
    font-weight: 500;
}

.casino-card__bonus {
    font-size: 1rem;
    line-height: 1.5;
    color: #1A1A1A;
}

.casino-card__bonus strong {
    color: #0D204C;
}

.casino-card__cta {
    text-align: center;
    min-width: 160px;
}

.cta-button {
    display: inline-block;
    background-color: #D4AF37;
    color: #0D204C;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #EACD6F;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    text-decoration: none;
    color: #0D204C;
}

.cta-button:active {
    transform: scale(0.98);
}

.casino-card__terms {
    font-size: 0.8rem;
    color: #555555;
    margin-top: 8px;
    line-height: 1.4;
}

/* Information Sections */
.info-section {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

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

.info-content h3 {
    color: #0D204C;
    margin-top: 24px;
    margin-bottom: 16px;
}

.info-content ul {
    list-style-position: outside;
    margin-left: 24px;
    margin-bottom: 16px;
}

.info-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-content li strong {
    color: #0D204C;
    font-weight: 600;
}

/* Responsible Gambling Section */
.responsible-gambling-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #D4AF37;
}

.age-restriction {
    background: #FFF8DC;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.age-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.age-restriction p {
    margin: 0;
    color: #0D204C;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0D204C 0%, #1a3a6b 100%);
    color: #FFFFFF;
    padding: 48px 0 24px;
}

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

.footer__section h4 {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 8px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #D4AF37;
    text-decoration: none;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
}

.footer__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.footer__age-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.footer__disclaimer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .casino-card {
        grid-template-columns: 150px 1fr auto;
        gap: 20px;
    }
    
    .casino-card__logo {
        max-width: 130px;
        max-height: 70px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .header {
        padding: 32px 0;
    }
    
    .header__subtitle {
        font-size: 0.95rem;
    }
    
    .responsible-gambling-bar__content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .casino-card {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .casino-card__logo-container {
        order: 1;
    }
    
    .casino-card__info {
        order: 2;
    }
    
    .casino-card__cta {
        order: 3;
    }
    
    .casino-card__name {
        font-size: 1.2rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
        width: 100%;
        max-width: 200px;
    }
    
    .info-section {
        padding: 24px;
    }
    
    .age-restriction {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__disclaimer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .header__subtitle {
        font-size: 0.9rem;
    }
    
    .responsible-gambling-bar__text {
        font-size: 0.85rem;
    }
    
    .casino-card {
        padding: 20px;
    }
    
    .casino-card__logo {
        max-width: 120px;
        max-height: 60px;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .info-content ul {
        margin-left: 20px;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Focus styles for accessibility */
a:focus,
.cta-button:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .responsible-gambling-bar,
    .footer {
        display: none;
    }
    
    .casino-card {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #E0E0E0;
    }
    
    .cta-button {
        background-color: #FFFFFF !important;
        color: #0D204C !important;
        border: 2px solid #D4AF37 !important;
    }
}

/* Animation for improved user experience */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.casino-card,
.info-section {
    animation: fadeInUp 0.6s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .casino-card {
        border: 2px solid #000;
    }
    
    .cta-button {
        border: 2px solid #000;
    }
    
    .star--filled {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
