/* =================================================================
   SITE DESIGN V2 - Dark Theme, Modern & Professional
   ================================================================= */

/* --- 1. Global Styles & Variables --- */
:root {
    --color-background: #0D1117; /* Very Dark Navy Blue */
    --color-surface: #161B22;   /* Slightly Lighter for Cards/Sections */
    --color-text-primary: #E6EDF3;
    --color-text-secondary: #8B949E;
    --color-border: #30363D;
    --color-accent-gold: #FFD700;
    --color-cta-text: #0D1117;

    --gradient-text: linear-gradient(45deg, #FFD700, #F5A623);
    --gradient-border: linear-gradient(90deg, #FFD700, #F5A623, transparent);

    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    background-color: var(--color-background);
    color: var(--color-text-secondary);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* --- NEW: Admin Toolbar --- */
.admin-toolbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    border-bottom: 2px solid var(--color-accent-gold);
    z-index: 9999;
    color: #fff;
    font-size: 14px;
}

.toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.toolbar-info {
    color: var(--color-text-secondary);
}
.toolbar-info code {
    background: #333;
    color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
}

.toolbar-actions {
    display: flex;
    gap: 20px;
}

.toolbar-actions a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.toolbar-actions a:hover {
    background-color: #333;
    color: #fff;
}

.toolbar-actions a.logout-link {
    background-color: #555;
}
.toolbar-actions a.logout-link:hover {
    background-color: #777;
}

/* Push the main site content down when in admin mode */
body.admin-mode .main-header {
    /* The main nav will now stick below the admin bar */
    position: sticky;
    top: 50px; /* Adjust this to match the height of your admin bar */
}


/* --- 2. Hero Section & Aurora Background --- */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    background-image: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: 0;
}

.hero-section > * {
    position: relative; /* Ensure content is above the pseudo-element */
    z-index: 1;
}

/* --- 3. Typography --- */
h1, h2 {
    font-family: var(--font-headings);
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding-bottom: 0.5em;
}

h2 {
    font-size: 2.25rem;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.4em;
}

h3 {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    color: var(--color-text-primary);
}

h4 {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    font-style: italic;
    font-weight: 400;
}

p { margin-bottom: 1.5em; }
a { color: var(--color-accent-gold); text-decoration: none; }
ul { padding-left: 20px; margin-bottom: 1.5em; }
li { margin-bottom: 0.75em; }


.bonus-text {
    color: var(--color-text-primary);
    border: 1px dashed var(--color-border);
    border-radius:4px;
    font-weight:bold;
    text-align:center;
}

.bonus-text-auto {
    font-weight:bold;
    text-align:center;
}

/* --- 4. Special Content Elements --- */
.toplist-note {
    text-align: center;
    font-style: italic;
    color: var(--color-text-secondary);
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-accent-gold);
    padding: 10px 15px;
    margin: 2em 0;
    border-radius: 0 4px 4px 0;
}

.tip {
    background-color: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--color-accent-gold);
    padding: 20px 25px;
    margin: 2.5em 0;
    font-size: 1em;
    border-radius: 0 8px 8px 0;
}


.toplist-note h4, .tip h4 {
    color:var(--color-text-primary);
    font-weight:bold;
}


/* --- 5. New Casino Card Design --- */
.casino-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 2.5em 0;
}

.casino-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    position: relative;
    overflow: hidden;
    margin-bottom:20px;
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: #444;
}

.casino-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    border: none;
    color: var(--color-text-primary);
}

.casino-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95em;
}

.casino-details li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
}

.casino-details strong {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1.1em;
}

/* Icons for casino details */
.detail-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-color: var(--color-text-secondary);
}
.icon-bonus { -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 15c-2.06 0-3.86-1.21-4.65-3H12V8H8.16c.48-1.92 2.13-3.34 4.16-3.34.35 0 .68.04 1 .12V10h3.5c-.22 2.41-2.33 4.2-4.82 4.2L12 17z"/></svg>') no-repeat center / contain; mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 15c-2.06 0-3.86-1.21-4.65-3H12V8H8.16c.48-1.92 2.13-3.34 4.16-3.34.35 0 .68.04 1 .12V10h3.5c-.22 2.41-2.33 4.2-4.82 4.2L12 17z"/></svg>') no-repeat center / contain;}
.icon-spins { -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 14.08c-2.03.5-4.2.14-5.78-1.18l1.42-1.42c1.02.83 2.5.96 3.7.4l-1.01-1.01c-.75.25-1.58.11-2.2-.35l1.42-1.42c.3.21.65.31 1 .31.28 0 .55-.07.8-.2l-1.01-1.01c-.49.1-1.01.03-1.43-.24l1.42-1.42c.5.34 1.14.47 1.78.31l-2.04-2.04c-.03.17-.04.33-.04.5 0 .35.07.68.2.99l1.42-1.42c-.2-.14-.38-.3-.52-.48L13 3.92V10h1.58L13 11.58V12h3v3l-1.42-1.42c-.36.24-.76.41-1.18.52L13 16.08z"/></svg>') no-repeat center / contain; mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 14.08c-2.03.5-4.2.14-5.78-1.18l1.42-1.42c1.02.83 2.5.96 3.7.4l-1.01-1.01c-.75.25-1.58.11-2.2-.35l1.42-1.42c.3.21.65.31 1 .31.28 0 .55-.07.8-.2l-1.01-1.01c-.49.1-1.01.03-1.43-.24l1.42-1.42c.5.34 1.14.47 1.78.31l-2.04-2.04c-.03.17-.04.33-.04.5 0 .35.07.68.2.99l1.42-1.42c-.2-.14-.38-.3-.52-.48L13 3.92V10h1.58L13 11.58V12h3v3l-1.42-1.42c-.36.24-.76.41-1.18.52L13 16.08z"/></svg>') no-repeat center / contain;}
.icon-wager { -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 6h18v3H3zm0 5h18v3H3zm0 5h18v3H3z"/></svg>') no-repeat center / contain; mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 6h18v3H3zm0 5h18v3H3zm0 5h18v3H3z"/></svg>') no-repeat center / contain;}

.casino-cta { text-align: center; }

.cta-button {
    display: inline-block;
    background-color: var(--color-accent-gold);
    color: var(--color-cta-text);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.1em;
    padding: 14px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease-out, background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.cta-button:hover {
    color: #000;
    transform: scale(1.05);
}

table .cta-button {
    display: inline-block;
    background-color: var(--color-accent-gold);
    color: var(--color-cta-text);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.1em;
    padding: 4px 10px;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.2s ease-out, background-color 0.2s;
    width: auto;
    box-sizing: border-box;
}

.terms-link {
    font-size: 0.8em;
    color: var(--color-text-secondary);
    margin-top: 10px;
    display: block;
}

/* --- 7. FAQ Accordion --- */

.faq-container {
    margin: 3em 0;
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.faq-question {
    /* Reset button styles to look like a heading */
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 0;
    
    /* Font and layout */
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;

    /* Flexbox for layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-accent-gold);
    transition: transform 0.3s ease-out;
    margin-left: 20px;
}

.faq-answer {
    /* Smooth slide-down effect */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
    padding: 0 10px;
    color: var(--color-text-secondary);
}

/* --- Active State (toggled by JavaScript) --- */

.faq-question.active + .faq-answer {
    max-height: 500px; /* A large value to allow content to expand */
    padding: 20px 10px;
    transition: max-height 0.5s ease-in, padding 0.4s ease-in;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

/* --- 8. Utility Classes --- */
.hidden {
    display: none;
}
.text-center {
    text-align:center;
}

/* --- 7. Custom List Styles --- */

/* Base styles for all custom ULs */
.list-style-1,
.list-style-2,
.list-style-3 {
    list-style: none;
    padding-left: 0; /* Remove default browser indentation */
}

.list-style-1 li,
.list-style-2 li,
.list-style-3 li {
    position: relative;
    padding-left: 30px; /* Create space for our custom SVG bullet */
    margin-bottom: 1em;
}

.list-style-1 li::before,
.list-style-2 li::before,
.list-style-3 li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px; /* Adjust for vertical alignment with text */
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Style 1: Rounded Square (Neutral) */
.list-style-1 li::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="80" height="80" rx="20" ry="20" fill="%238B949E"/></svg>');
}

/* Style 2: Checkmark in Circle (Positive) */
.list-style-2 li::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23FFD700" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

/* Style 3: Cross in Circle (Negative) */
.list-style-3 li::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23E57373" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>');
}

/* --- Custom Ordered List Style --- */
ol {
    /* You can adjust padding here if you want OLs to align with ULs */
}
ol li {
    margin-bottom: 1em;
}
ol li::marker {
    font-weight: 700; /* Make the numbers bold */
    color: var(--color-accent-gold);
}

/* --- 8. Table Styles --- */

.table-wrapper {
    margin: 2.5em 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden; /* Clips the corners of the table inside */
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-text-secondary);
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

thead th {
    background-color: var(--color-surface);
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: background-color 0.2s ease-in-out;
}

tbody tr:nth-child(even) {
    background-color: var(--color-surface);
}

tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.08); /* Subtle gold hover */
}

/* --- 9. Summary Box --- */

.summary-box {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 3em 0;
    position: relative; /* Needed for the gradient border effect */
    overflow: hidden; /* Keeps the gradient border neat */
}

/* Subtle gradient top border for a premium feel */
.summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px; /* Thickness of the gradient line */
    background: var(--gradient-text);
}

/* Style the heading inside the summary box */
.summary-box h4 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--color-text-primary); /* Use primary text color for more emphasis */
    font-style: normal; /* Override the default italic h4 style */
    font-weight: 600;
}

/* Adjust list styling when inside a summary box */
.summary-box ul {
    margin-bottom: 0; /* Remove extra space at the bottom of the list */
}

.summary-box li {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* --- 6. Responsive Design --- */
@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.8rem; }
    .casino-card { grid-template-columns: 1fr; }
    .casino-info { text-align: center; }
    .casino-details ul { justify-content: center; }

    .table-wrapper {
        overflow-x: auto; /* Enable horizontal scrolling on small screens */
    }

}

/* --- NEW: 2a. Header & Navigation --- */

.main-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.main-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    background-color: var(--color-accent-gold);
    color: var(--color-cta-text);
    font-weight: 700;
    border-radius: 8px;
    padding: 10px;
    margin-right: 12px;
}

.logo-initials {
    font-size: 1.25rem;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.main-nav {
    display: none; /* Hidden by default, shown on desktop */
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease-in-out;
}

.main-nav a:hover {
    color: var(--color-accent-gold);
}

.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--color-text-primary);
}

.mobile-nav-toggle svg {
    width: 28px;
    height: 28px;
}

.icon-close {
    display: none;
}

.footer-copy {
    text-align:center;
    font-style:italic;
    font-size:0.8em;
    padding:0;
}

/* --- Mobile Navigation Styles --- */
@media (min-width: 768px) {
    /* On desktop, show main nav and hide hamburger */
    .main-nav {
        display: flex;
    }
    .mobile-nav-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .main-nav {
        /* When mobile menu is open */
        display: none; /* Initially hidden */
        position: absolute;
        top: 85px; /* Adjust based on your header height */
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }
    .main-nav.is-open {
        display: flex; /* Show the menu */
    }
    
    /* Toggle hamburger/close icons when menu is open */
    .mobile-nav-toggle.is-open .icon-hamburger {
        display: none;
    }
    .mobile-nav-toggle.is-open .icon-close {
        display: block;
    }
}
