/* General Reset & Base Styles */
:root {
    --primary-color: #e5005b; /* Red/pink from reference */
    --secondary-color: #007bff; /* A blue for variety, not explicitly in ref but good contrast */
    --dark-bg: #1a1e2b; /* Dark background from reference */
    --darker-bg: #12151e; /* Even darker for footer */
    --text-color: #ffffff;
    --light-text-color: #b0b0b0;
    --border-color: #333a4f;
    --hover-color: #ff3388; /* Lighter red for hover */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
}

.btn-login {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--text-color);
    margin-left: 10px;
}

.btn-register:hover {
    background-color: var(--hover-color);
}

.btn-play {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 8px 15px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 10px;
}

.btn-play:hover {
    background-color: var(--hover-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
}


/* Header */
.main-header {
    background-color: var(--darker-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* For responsiveness */
}

.main-header .logo img {
    height: 40px; /* Adjust as needed */
    max-width: 180px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--light-text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
    max-height: 500px; /* Limit height for large screens */
}

.slider-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none; /* Hide all by default, JS will show active */
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    text-align: center;
}

.slide.active {
    display: block; /* Show active slide */
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
    max-height: 500px; /* Ensure images don't stretch too much vertically */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--light-text-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Slot Categories */
.slot-categories {
    padding: 60px 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    background-color: var(--darker-bg);
    color: var(--light-text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tab-button:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    display: none; /* Hidden by default, JS will show active */
}

.slot-grid.active {
    display: grid;
}

.slot-card {
    background-color: var(--darker-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.slot-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.slot-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

.slot-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 10px 0 5px;
    padding: 0 10px;
}

/* Info Content */
.info-content {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.info-content h2, .info-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
}

.info-content h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.info-content p {
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.toc-menu {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.toc-menu ul {
    list-style: none;
}

.toc-menu li {
    margin-bottom: 10px;
}

.toc-menu a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.toc-menu a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.casino-features {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    color: var(--light-text-color);
}

.casino-features th, .casino-features td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.casino-features th {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-weight: bold;
}

.casino-features tr:nth-child(even) {
    background-color: var(--darker-bg);
}

.casino-features td:first-child {
    font-weight: bold;
    color: var(--text-color);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 15px;
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item details {
    padding: 15px 20px;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    padding-right: 30px; /* Space for custom arrow */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--light-text-color);
}

.faq-item details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.faq-item p {
    padding-top: 15px;
    color: var(--light-text-color);
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background-color: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: space-between;
}

.footer-top {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand .logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin-bottom: 20px;
}

.download-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.download-apps img {
    height: 35px; /* Adjust badge sizes */
    max-width: 120px;
}

.footer-nav-col h3,
.footer-social h3,
.footer-payments h3,
.footer-utility h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
}

.footer-nav-col li {
    margin-bottom: 10px;
}

.footer-nav-col a {
    color: var(--light-text-color);
}

.footer-nav-col a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-social,
.footer-payments,
.footer-utility {
    grid-column: 1 / -1; /* Take full width on small screens */
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 20px;
}

.footer-social .social-icons,
.footer-payments .payment-icons,
.footer-utility .utility-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer-social .social-icons img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    filter: invert(1) brightness(0.7); /* Make social icons light */
    transition: filter 0.3s ease;
}

.footer-social .social-icons img:hover {
    filter: invert(0) brightness(1) saturate(2) hue-rotate(280deg); /* Primary color on hover */
}


.footer-payments .payment-icons img {
    height: 25px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.8); /* Desaturate for dark theme */
    transition: filter 0.3s ease;
}

.footer-payments .payment-icons img:hover {
    filter: grayscale(0) brightness(1); /* Original color on hover */
}

.footer-utility .utility-icons {
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.footer-utility .utility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1 1 20%; /* Distribute items */
    min-width: 100px;
    padding: 10px;
}

.footer-utility .utility-item img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: invert(1) brightness(0.7); /* Make icons light */
}

.footer-utility .utility-item span {
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom .age-restriction {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-bottom .age-restriction img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.license-info {
    font-size: 0.8rem;
    color: var(--light-text-color);
    line-height: 1.4;
}

/* Responsiveness */
@media (max-width: 992px) {
    .main-nav ul {
        gap: 15px;
    }
    .slide-content h2 {
        font-size: 2.8rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    .main-header .logo {
        margin-bottom: 15px;
    }
    .main-nav {
        margin-bottom: 20px;
        order: 3; /* Move nav below logo and buttons */
        width: 100%;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .auth-buttons {
        order: 2; /* Keep buttons near logo */
        margin-bottom: 15px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 0.9rem;
    }
    .btn-primary {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .slot-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .tab-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .casino-features th, .casino-features td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .footer-top {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .footer-nav-col h3,
    .footer-social h3,
    .footer-payments h3,
    .footer-utility h3 {
        text-align: center;
    }

    .footer-social .social-icons,
    .footer-payments .payment-icons,
    .footer-utility .utility-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn-register {
        margin-left: 0;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }
    .slide-content p {
        font-size: 0.8rem;
    }
    .hero-slider {
        max-height: 300px; /* Further reduce height on small mobiles */
    }
    .slide img {
        max-height: 300px;
    }

    .slot-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    .slot-card img {
        height: 120px;
    }
    .slot-card h3 {
        font-size: 1rem;
    }

    .tab-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .faq-item summary {
        font-size: 1rem;
    }

    .footer-brand .download-apps {
        align-items: center;
    }
}

/* ── Info Content: h4 ── */
.info-content h4 {
    color: var(--text-color);
    font-size: 1.15rem;
    margin-top: 30px;
    margin-bottom: 12px;
}

/* ── Content List (bullet with dash marker) ── */
.content-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 22px 0;
}

.content-list li {
    color: var(--light-text-color);
    padding: 5px 0 5px 20px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ── Pros / Cons ── */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.pros-box,
.cons-box {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.pros-box h4 {
    color: #2ecc71;
    margin-top: 0;
}

.cons-box h4 {
    color: #e74c3c;
    margin-top: 0;
}

.pros-box ul,
.cons-box ul {
    list-style: none;
    padding: 0;
}

.pros-box li,
.cons-box li {
    color: var(--light-text-color);
    padding: 5px 0 5px 20px;
    position: relative;
    font-size: 0.92rem;
}

.pros-box li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: 700;
}

.cons-box li::before {
    content: '−';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
}

/* ── Responsible Gambling Callout ── */
.rg-callout {
    background: linear-gradient(135deg, #1e0012 0%, var(--darker-bg) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px 22px;
    margin: 24px 0;
    color: var(--light-text-color);
    font-size: 0.95rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}