/* =================================================================
   SITE DESIGN V2 - Australian Green & Gold Theme (Dark)
   ================================================================= */

/* --- 1. Global Styles & Variables --- */
:root {
    /* --- New Australian Green & Gold Palette --- */
    --color-background: #122B1E;      /* Deep Eucalyptus Green */
    --color-surface: #1A3D2D;        /* Lighter Forest Green for Cards */
    --color-text-primary: #F0F5F2;   /* Soft Off-White */
    --color-text-secondary: #A0B5A9;  /* Desaturated Green-Gray */
    --color-border: #2A4D3D;         /* Muted Green */
    --color-accent-gold: #FFC400;      /* Wattle Gold */
    --color-cta-text: #013220;        /* Deep Bottle Green */

    --gradient-text: linear-gradient(45deg, #FFC400, #E3B400);
    --gradient-border: linear-gradient(90deg, #FFC400, #E3B400, 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: #1A2B20; /* Darker Green */
    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: #2A4D3D;
    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: var(--color-surface);
    color: #fff;
}

.toolbar-actions a.logout-link {
    background-color: #2A4D3D;
}
.toolbar-actions a.logout-link:hover {
    background-color: #3B6F57;
}

/* 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, 196, 0, 0.1), transparent 70%); /* Updated Gold Color */
    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, 196, 0, 0.05); /* Updated Gold Color */
    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: #3B6F57; /* Lighter Green on hover */
}

.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: var(--color-cta-text);
    background-color: #E3B400; /* Darker Gold */
    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 {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 0;
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    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 {
    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 --- */

.list-style-1,
.list-style-2,
.list-style-3 {
    list-style: none;
    padding-left: 0;
}

.list-style-1 li,
.list-style-2 li,
.list-style-3 li {
    position: relative;
    padding-left: 30px;
    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;
    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="%23A0B5A9"/></svg>'); /* Updated Color */
}

/* 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="%23FFC400" 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>'); /* Updated Gold */
}

/* Style 3: Cross in Circle (Negative) - Kept Red for universal meaning */
.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 {}
ol li { margin-bottom: 1em; }
ol li::marker {
    font-weight: 700;
    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;
}

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, 196, 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;
    overflow: hidden;
}

.summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-text);
}

.summary-box h4 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--color-text-primary);
    font-style: normal;
    font-weight: 600;
}

.summary-box ul { margin-bottom: 0; }
.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; }
}

/* --- 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;
    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) {
    .main-nav { display: flex; }
    .mobile-nav-toggle { display: none; }
}

@media (max-width: 767px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 85px;
        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; }
    .mobile-nav-toggle.is-open .icon-hamburger { display: none; }
    .mobile-nav-toggle.is-open .icon-close { display: block; }
}