/* Base Styles */
:root {
    --green: #008C45;
    --white: #FFFFFF;
    --red: #CD212A;
    --dark: #333333;
    --light-grey: #f4f4f4;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-grey);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    background: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--green);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
    margin: 0 15px;
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--green);
}

.header-btn {
    background: var(--red);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.header-btn:hover {
    background: #a51a22;
}

/* Hero Section */
.hero {
    background: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--green);
}

.hero p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: #666;
}

.author-block {
    display: inline-flex;
    align-items: center;
    text-align: left;
    margin-top: 20px;
    gap: 12px;
    padding: 10px 20px;
    background: var(--light-grey);
    border-radius: 50px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green);
}

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

.author-name {
    font-weight: bold;
    font-size: 1rem;
}

.badge-verified {
    color: var(--green);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.update-date {
    font-size: 0.75rem;
    color: #888;
}

/* Listing Grid */
.listing-section {
    padding: 40px 0;
}

.listing-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.listing-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.casino-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--green);
    transition: var(--transition);
}

.casino-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.rank-tag {
    position: absolute;
    top: -12px;
    left: -12px;
    background: var(--green);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.brand-block {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.brand-logo {
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.rating {
    color: #ffcc00;
    letter-spacing: 2px;
}

.bonus-block {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.bonus-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1.2;
}

.features {
    flex: 1;
    list-style: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    padding: 0 20px;
}

.features li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #555;
}

.features svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: var(--green);
}

.cta-btn {
    flex: 0 0 180px;
    background: var(--green);
    color: white;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
}

.cta-btn:hover {
    background: var(--dark);
    color: white;
}

/* Main Content */
.main-content {
    background: white;
    padding: 40px 0;
}

.main-content p {
    margin-bottom: 20px;
}

.main-content h2 {
    margin: 35px 0 20px;
    font-size: 1.8rem;
    color: var(--green);
}

.main-content h3 {
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.main-content ul {
    margin: 0 0 20px 20px;
}

.main-content li {
    margin-bottom: 10px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

table td, table th {
    padding: 15px;
    border: 1px solid #eee;
}

table th {
    background: var(--green);
    color: white;
}

table tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* FAQ */
.faq-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--light-grey);
}

.faq-item {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.faq-item h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.disclaimer {
    font-size: 0.8rem;
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.4;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 
   MOBILE RESPONSIVE 
   --------------------------------------- */
@media (max-width: 992px) {
    .casino-card {
        padding: 20px;
    }
    .features {
        display: none; /* Сховуємо другорядні фічі на планшетах для економії місця */
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .header-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .casino-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 30px 15px 20px;
    }

    .brand-block {
        flex: 0 0 auto;
        width: 100%;
    }

    .bonus-block {
        padding: 10px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .features {
        display: block; /* Повертаємо, але без бордерів */
        border: none;
        padding: 0;
        width: 100%;
        text-align: left;
    }
    
    .features li {
        justify-content: center;
    }

    .cta-btn {
        flex: 0 0 auto;
        width: 100%; /* Кнопка на всю ширину */
        font-size: 1.2rem;
        padding: 16px;
    }

    .author-block {
        flex-direction: column;
        border-radius: 20px;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }

    .bonus-text {
        font-size: 1.2rem;
    }
}