/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: #000;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Smooth transform for show/hide on mobile */
.header { transition: transform 0.25s ease; }

/* Mobile auth bar hidden by default; shown only via media query on small screens */
.mobile-auth-bar { display: none; }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

/* Button styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-login {
    background-color: #28a745; /* green */
    border: 2px solid #218838;
    color: #fff;
}

.btn-register {
    background-color: #00bfff; /* light blue */
    border: 2px solid #00a5d6;
    color: #000;
    margin-left: 10px;
}

.btn-primary {
    background-color: #ffd700;
    color: #000;
    font-size: 18px;
    padding: 15px 30px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-chip {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-chip {
    position: absolute;
    width: 160px;
    height: 160px;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite;
}

.floating-crown {
    position: absolute;
    width: 200px;
    height: 120px;
    left: 15%;
    top: 40%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite reverse;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #ffd700 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    animation: twinkle 4s infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-40%);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }

    .floating-chip {
        width: 120px;
        height: 120px;
        right: 5%;
    }

    .floating-crown {
        width: 150px;
        height: 90px;
        left: 5%;
    }
}

/* Games section */
.games {
    padding: 80px 0;
    background-color: #222;
}

.games h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.game-icon {
    width: 120px;
    height: 120px;
    display: block;
}

/* SVG presentation: moved from inline attributes into CSS */
.game-icon .bg { fill: #2b2b2b; stroke: #ffd700; stroke-width: 1.5; }
.game-icon .panel { fill: #111; }
.game-icon .accent { fill: #ffd700; }
.game-icon .accent-stroke { stroke: #ffd700; stroke-width: 1.2; }
.game-icon .accent-stroke[stroke-width] { stroke-width: 1.2; }
.game-icon .accent-text, .game-icon text { fill: #ffd700; font-family: Arial, sans-serif; font-weight:700; }

/* back-to-top svg arrow color */
#back-to-top svg .arrow { stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Bonuses section */
.bonuses {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.bonuses h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 40px;
}

.bonus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.bonus-card {
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}

.bonus-card i {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 20px;
}

/* About section */
.about {
    padding: 80px 0;
    background-color: #222;
    color: #fff;
}

.about h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 20px;
}

/* SEO text section */
.seo-text {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #fff;
}

.seo-text h2 {
    color: #ffd700;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.seo-text h3 {
    color: #ffd700;
    font-size: 24px;
    margin: 30px 0 15px;
}

.seo-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

.seo-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #e0e0e0;
}

/* Reviews styles */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.review-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.review-content {
    margin-bottom: 1.5rem;
}

.review-content p {
    font-style: italic;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #ffd700;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #ffd700;
    font-weight: bold;
}

.author-age {
    color: #999;
    font-size: 0.9em;
}

.review-rating .stars {
    color: #ffd700;
    font-size: 1.2em;
    letter-spacing: 2px;
}

/* Tables styles */
.seo-content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.seo-content table th {
    background-color: #333;
    color: #ffd700;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ffd700;
}

.seo-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #444;
    color: #e0e0e0;
}

.seo-content table tr:last-child td {
    border-bottom: none;
}

.seo-content table tr:hover {
    background-color: #333;
}

/* Quotes styles */
.seo-content blockquote {
    margin: 25px 0;
    padding: 20px 30px;
    background-color: #2a2a2a;
    border-left: 4px solid #ffd700;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.seo-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: #ffd700;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.seo-content blockquote p {
    margin: 0;
    font-style: italic;
    color: #e0e0e0;
    position: relative;
    z-index: 1;
}

/* FAQ styles */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    margin-bottom: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #333;
    color: #ffd700;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #404040;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #ffd700;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #2a2a2a;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: #e0e0e0;
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-social h4 {
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* hide header auth buttons to avoid duplicate actions */
    .header .auth-buttons { display: none; }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .games-grid,
    .bonus-cards,
    .features,
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Mobile auth bar fixed to bottom with buttons at left and right edges */
    .mobile-auth-bar {
        display: flex;
        gap: 12px;
        justify-content: space-between; /* push buttons to edges */
        align-items: center;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 12px;
        padding: 0 12px; /* small side padding so buttons aren't flush to screen */
        z-index: 1100;
        pointer-events: auto;
        background: transparent;
    }

    /* Make sure buttons are touch-friendly and occupy roughly half the width each */
    .mobile-auth-bar .btn {
        padding: 12px 6px;
        border-radius: 8px;
        font-size: 16px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.5);
        width: calc(50% - 12px);
        text-align: center;
    }

    /* Remove extra left margin for the right button on mobile */
    .mobile-auth-bar .btn-register { margin-left: 0; }

}

/* Back-to-top button */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffd700;
    color: #000;
    border: 2px solid rgba(0,0,0,0.12);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Ensure the top button sits above the mobile auth bar on small screens */
@media (max-width: 768px) {
    #back-to-top { bottom: 76px; right: 12px; }
}

/* Hide mobile bar by default on desktop */
/* mobile auth bar default hidden is handled by media queries; removed global override */