/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.7;
    font-size: 16px;
}
a { color: #2563eb; text-decoration: none; transition: color .2s; }
a:hover { color: #1d4ed8; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #22c55e; color: #fff; }
.btn-primary:hover { background: #16a34a; color: #fff; }

/* === Header === */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}
.logo {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}
.logo:hover { color: #2563eb; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: .3s;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 4px;
}
.nav-item > a {
    display: block;
    padding: 20px 14px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}
.nav-item > a:hover,
.nav-item.active > a { color: #2563eb; }

/* Dropdowns */
.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    padding: 8px 0;
    z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 8px 20px;
    color: #374151;
    font-size: 13px;
    transition: background .15s;
}
.dropdown li a:hover { background: #f3f4f6; color: #2563eb; }

/* === Content === */
.content { padding: 40px 0 60px; }
.content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
}
.content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 40px;
    margin-bottom: 16px;
}
.content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 28px;
    margin-bottom: 12px;
}
.content p { margin-bottom: 16px; color: #374151; }
.content ul, .content ol { margin-bottom: 16px; padding-left: 24px; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 6px; color: #374151; }
.content strong { color: #1a1a2e; }

/* === Casino Table === */
.casino-table-wrap {
    margin: 32px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.casino-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.casino-table thead { background: #f8fafc; }
.casino-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.casino-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.casino-table tbody tr:hover { background: #f8fafc; }
.casino-table tbody tr:nth-child(even) { background: #fafbfc; }
.casino-table tbody tr:nth-child(even):hover { background: #f0f4f8; }

.col-rank {
    font-weight: 700;
    color: #6b7280;
    text-align: center;
    width: 40px;
}
.col-casino { font-weight: 600; white-space: nowrap; }
.col-info { color: #6b7280; font-size: 13px; }
.col-license { color: #6b7280; font-size: 13px; white-space: nowrap; }
.col-cta { text-align: center; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

/* === Top 5 Table === */
.top5-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 15px;
}
.top5-table th {
    background: #f0fdf4;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #bbf7d0;
}
.top5-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.top5-table tr:hover { background: #f0fdf4; }

/* === Author Block === */
.author-block {
    margin-top: 48px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    flex-shrink: 0;
}
.author-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.author-info p { font-size: 13px; color: #6b7280; margin-bottom: 2px; }

/* === FAQ === */
.faq-item { margin-bottom: 12px; }
.faq-question {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.faq-answer { color: #374151; padding-left: 0; }

/* === Footer === */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 24px;
    margin-top: 40px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-logo {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}
.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.footer-links a { color: #6b7280; font-size: 13px; }
.footer-links a:hover { color: #2563eb; }
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}
.footer-bottom p { font-size: 13px; color: #9ca3af; text-align: center; }

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 16px 0;
    z-index: 9999;
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-inner p { font-size: 13px; color: #d1d5db; margin: 0; }
.cookie-inner a { color: #93c5fd; }

/* === Responsive === */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 30px rgba(0,0,0,.08);
    }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; padding: 8px 0; }
    .nav-item > a { padding: 12px 20px; }
    .dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f9fafb;
        display: none;
        min-width: 100%;
    }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown li a { padding-left: 36px; }

    .content h1 { font-size: 26px; }
    .content h2 { font-size: 20px; }

    .casino-table { font-size: 13px; }
    .casino-table th, .casino-table td { padding: 10px 10px; }

    .author-block { flex-direction: column; }
    .cookie-inner { flex-direction: column; text-align: center; }
    .footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
    .content h1 { font-size: 22px; }
    .container { padding: 0 16px; }
    .header-inner { min-height: 56px; }
    .logo { font-size: 15px; }
}
