/* --- RESET & BASICS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* --- VARIABLES --- */
:root {
    --primary: #f1c40f; /* Gold */
    --secondary: #27ae60; /* Green */
    --bg-card: #1e1e1e;
    --border-color: #333;
    --text-muted: #b0b0b0;
}

/* --- HEADER --- */
header {
    background: #000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); letter-spacing: 1px; }

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
    background: linear-gradient(180deg, #0f0f0f 0%, #121212 100%);
    max-width: 900px;
    margin: 0 auto;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #fff; line-height: 1.2; }
h2 { font-size: 2rem; margin-top: 3rem; margin-bottom: 1rem; color: #fff; border-left: 4px solid var(--primary); padding-left: 15px; }
h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: #fff; }
p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }
ul { margin-bottom: 2rem; padding-left: 20px; color: var(--text-muted); }
ul li { margin-bottom: 10px; padding-left: 10px; }
ul li::marker { color: var(--primary); font-size: 1.2em; }

/* --- CASINO TABLE CONTAINER --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.casino-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-bottom: 2rem;
}

/* --- COLUMN WIDTHS --- */
.casino-table thead th {
    text-align: left;
    padding: 0 15px 10px;
    color: #888;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.casino-table thead th:nth-child(1) { width: 25%; }
.casino-table thead th:nth-child(2) { width: 40%; }
.casino-table thead th:nth-child(3) { width: 15%; text-align: center; }
.casino-table thead th:nth-child(4) { width: 20%; text-align: right; }

/* ROW STYLING */
.casino-row {
    background-color: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.casino-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 196, 15, 0.15);
}

.casino-cell {
    padding: 20px;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.casino-cell:first-child { border-left: 1px solid var(--border-color); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.casino-cell:last-child { border-right: 1px solid var(--border-color); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* Alignment Fixes */
.casino-cell:nth-child(3) { text-align: center; }
.casino-cell:nth-child(4) { text-align: right; }

/* --- IDENTITY COLUMN (LOGO + NAME) --- */
.col-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.casino-logo-box {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.casino-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.casino-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.2;
}

/* --- BONUSES & RATINGS --- */
.bonus-highlight { font-size: 1.2rem; font-weight: bold; color: var(--primary); display: block; }
.bonus-sub { font-size: 0.85rem; color: #fff; }

.rating-stars { color: var(--primary); letter-spacing: 2px; }
.rating-score { color: #fff; font-weight: bold; display: block; margin-top: 5px; }

/* --- CTA BUTTON --- */
.cta-btn {
    background-color: var(--secondary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    transition: background 0.3s;
    white-space: nowrap;
}
.cta-btn:hover { background-color: #2ecc71; box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); }
.terms { font-size: 0.65rem; color: #555; display: block; margin-top: 8px; text-align: center; margin-right: 10px; }

/* --- CONTENT SECTION --- */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px 4rem 20px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero { padding: 3rem 1rem 1rem; text-align: left; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .casino-table thead { display: none; }
    .casino-table, tbody, tr, td { display: block; width: 100%; }

    .casino-row { margin-bottom: 25px; border: 1px solid var(--border-color); border-radius: 10px; padding-bottom: 10px; }
    .casino-cell { text-align: center !important; border: none; padding: 15px; }

    /* Mobile Identity Fix */
    .col-identity { flex-direction: column; border-bottom: 1px solid #333; padding-bottom: 15px; gap: 10px; }
    .casino-logo-box { width: 80px; height: 80px; }
    .cta-btn { display: block; width: 100%; }
    .terms { margin-right: 0; }
}

/* --- POKIES INFO TABLE --- */
.pokies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1rem;
    text-align: left;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pokies-table thead tr {
    background-color: #0f0f0f;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.pokies-table th,
.pokies-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: var(--text-muted);
}

.pokies-table tbody tr:last-child td {
    border-bottom: none;
}

.pokies-table tbody tr {
    transition: background-color 0.2s ease;
}

.pokies-table tbody tr:hover {
    background-color: #2a2a2a;
}

.pokies-table td strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

/* --- MOBILE RESPONSIVE POKIES TABLE --- */
@media (max-width: 768px) {
    .pokies-table thead {
        display: none; /* Hide standard headers on mobile */
    }

    .pokies-table,
    .pokies-table tbody,
    .pokies-table tr,
    .pokies-table td {
        display: block;
        width: 100%;
    }

    .pokies-table tr {
        margin-bottom: 15px;
        border-bottom: 2px solid var(--primary); /* Adds a gold accent between mobile cards */
    }

    .pokies-table td {
        text-align: right;
        padding-left: 45%;
        position: relative;
        font-size: 0.95rem;
    }

    /* Pulls the data-label attribute to act as the header on the left side */
    .pokies-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 40%;
        text-align: left;
        font-weight: bold;
        color: #888;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .pokies-table td:last-child {
        text-align: left;
        padding-left: 15px; /* Description row takes full width on mobile */
    }

    .pokies-table td:last-child::before {
        display: none; /* Hide the label for the description so it reads like a paragraph */
    }

    .pokies-table td strong {
        display: inline;
    }
}