/* Updated Premium Styles */
:root {
    /* Deep dark blue/slate base instead of flat grey */
    --primary-bg: #0f172a; 
    --secondary-bg: #1e293b;
    /* Modern Gradient Green */
    --accent-green-start: #10b981;
    --accent-green-end: #059669;
    --text-secondary: #94a3b8;
    --glow-color: rgba(16, 185, 129, 0.4);
    --gold-accent: #fbbf24;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    /* Subtle texture overlay */
    background-image: radial-gradient(circle at top center, #1e293b 0%, #0f172a 60%);
    color: white;
    overflow-x: hidden;
}

/* Glassmorphism Header */
header {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-box {
    /* Cleaner, more modern logo box */
    border: 2px solid var(--gold-accent);
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 800;
    color: var(--gold-accent);
    display: inline-block;
    background: rgba(0,0,0,0.5);
    font-family: serif;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s;
}
.logo-box:hover {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.nav-link {
    color: #cbd5e1;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-link:hover {
    color: var(--accent-green-start);
}
/* Underline effect on hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-green-start);
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

/* Gradient Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--accent-green-start) 0%, var(--accent-green-end) 100%);
    color: white;
    font-weight: 700;
    border-radius: 8px; /* Slightly softer corners */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    filter: brightness(1.1);
}

.btn-outline-header {
    border: 1px solid var(--accent-green-start);
    color: var(--accent-green-start);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline-header:hover {
    background: var(--accent-green-start);
    color: white;
}

/* Improved Hero Section */
.hero-section {
    background: transparent; /* Using body gradient */
}

/* Modern Cards */
.game-card-wrapper {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 10px;
    transition: transform 0.3s, border-color 0.3s;
}
.game-card-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green-start);
    background: rgba(30, 41, 59, 0.9);
}

.game-card-image {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Button moved inside/below with cleaner style */
.play-btn-modern {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-green-start);
    border: 1px solid rgba(16, 185, 129, 0.3);
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.game-card-wrapper:hover .play-btn-modern {
    background: var(--accent-green-start);
    color: white;
    border-color: var(--accent-green-start);
}

/* FAQ Accordion Styles */
details > summary {
    list-style: none;
    cursor: pointer;
    transition: color 0.2s;
}
details[open] summary {
    color: var(--accent-green-start);
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

/* Footer Polishing */
.footer {
    background-color: #0b1120;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    width: 100%;
    margin: 20px 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

::selection { background: var(--accent-green-start); color: white; }

/* SEO Content Section Styles - Applied via tag selectors */
section:has(article) {
    padding: 4rem 0;
    background-color: #0b1120;
    border-top: 1px solid rgba(107, 114, 128, 0.5);
}

section:has(article) > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    section:has(article) > div {
        padding: 0 3rem;
    }
}

article {
    max-width: 56rem;
    margin: 0 auto;
}

article h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

article h2 i {
    color: var(--accent-green-start);
}

article h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

article h3 i {
    color: #34d399;
}

article p {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

article p strong {
    color: white;
    font-weight: 700;
}

article ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

article ul li {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--accent-green-start);
    transition: all 0.3s ease;
}

article ul li:hover {
    background: rgba(30, 41, 59, 0.6);
    border-left-color: var(--gold-accent);
    transform: translateX(5px);
}

article ul li i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--accent-green-start);
}

article ul li strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

article ul li p {
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

article ol {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    counter-reset: seo-counter;
}

article ol li {
    counter-increment: seo-counter;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    padding-left: 4rem;
    transition: all 0.3s ease;
}

article ol li::before {
    content: counter(seo-counter);
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--accent-green-start) 0%, var(--accent-green-end) 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

article ol li:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateX(5px);
    border-color: rgba(16, 185, 129, 0.3);
}

article ol li strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

article ol li p {
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

article table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

article table thead {
    background: rgba(16, 185, 129, 0.1);
}

article table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-green-start);
}

article table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

article table tbody tr:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.01);
}

article table tbody tr:last-child {
    border-bottom: none;
}

article table td {
    padding: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

article table td strong {
    color: white;
    font-weight: 600;
}

article table td:first-child {
    color: white;
    font-weight: 600;
}

article aside {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

article aside h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
}

article aside h3 i {
    color: #34d399;
}

article aside p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 1rem;
}

article aside p:last-child {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0;
}

article aside a {
    color: var(--accent-green-start);
    transition: color 0.3s;
}

article aside a:hover {
    color: #34d399;
}

@media (max-width: 768px) {
    article table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    article table thead,
    article table tbody,
    article table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    article table th,
    article table td {
        padding: 0.75rem 0.5rem;
    }
    
    article ul li,
    article ol li {
        padding: 1rem;
        padding-left: 3.5rem;
    }
    
    article ol li::before {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        left: 1rem;
        top: 1rem;
    }
}

/* Mobile Header Buttons */
@media (max-width: 640px) {
    .btn-outline-header {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .btn-primary-gradient {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}
