/* ===== Waylanders Forge - Global Styles ===== */
:root {
    --bg-dark: #0a1f14;
    --bg-darker: #061a10;
    --bg-card: #0f2e1c;
    --bg-table: #0d2618;
    --neon-yellow: #f0e040;
    --neon-yellow-glow: #d4b830;
    --neon-purple: #a855f7;
    --neon-purple-glow: #9333ea;
    --text-primary: #e8f0e8;
    --text-secondary: #b0c4b0;
    --text-muted: #7a9a7a;
    --accent-gold: #ffd700;
    --border-green: #1a5c3a;
    --glow-yellow: 0 0 10px rgba(240,224,64,0.4), 0 0 20px rgba(240,224,64,0.2);
    --glow-purple: 0 0 10px rgba(168,85,247,0.4), 0 0 20px rgba(168,85,247,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Animated Forest Background ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/forest-bg.webp') center/cover no-repeat;
    opacity: 0.12;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,31,20,0.95) 0%, rgba(6,26,16,0.9) 50%, rgba(10,31,20,0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== Neon Text Effects ===== */
.neon-text {
    text-shadow: 0 0 7px var(--neon-yellow), 0 0 14px var(--neon-yellow-glow);
}

.neon-text-purple {
    text-shadow: 0 0 7px var(--neon-purple), 0 0 14px var(--neon-purple-glow);
}

/* ===== Header ===== */
header {
    background: linear-gradient(180deg, rgba(6,26,16,0.98) 0%, rgba(10,31,20,0.95) 100%);
    border-bottom: 1px solid var(--border-green);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: block;
    flex-shrink: 0;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(240,224,64,0.3));
    transition: filter 0.3s;
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(240,224,64,0.6));
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.header-nav a:hover {
    color: var(--neon-yellow);
    text-shadow: var(--glow-yellow);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-purple));
    transition: width 0.3s;
}

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

/* ===== Main Content ===== */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 40px 0 30px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--neon-yellow), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(240,224,64,0.3));
}

.hero-image {
    position: relative;
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(168,85,247,0.2), 0 0 60px rgba(240,224,64,0.1);
    border: 1px solid rgba(240,224,64,0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-cta {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* ===== CTA Buttons ===== */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--neon-yellow), var(--neon-yellow-glow));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(240,224,64,0.4), 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse-glow 2s ease-in-out infinite;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(240,224,64,0.6), 0 0 50px rgba(168,85,247,0.3), 0 6px 20px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #f5e850, var(--neon-yellow));
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(240,224,64,0.4), 0 4px 15px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 25px rgba(240,224,64,0.6), 0 4px 15px rgba(0,0,0,0.3); }
}

.cta-button-purple {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-purple-glow));
    color: #fff;
    box-shadow: 0 0 15px rgba(168,85,247,0.4), 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse-glow-purple 2s ease-in-out infinite;
}

.cta-button-purple:hover {
    background: linear-gradient(135deg, #b46af8, var(--neon-purple));
    box-shadow: 0 0 25px rgba(168,85,247,0.6), 0 0 50px rgba(240,224,64,0.2), 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes pulse-glow-purple {
    0%, 100% { box-shadow: 0 0 15px rgba(168,85,247,0.4), 0 4px 15px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 25px rgba(168,85,247,0.6), 0 4px 15px rgba(0,0,0,0.3); }
}

/* ===== Play Buttons Container ===== */
.play-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.play-buttons .cta-button {
    padding: 14px 32px;
    font-size: 0.95rem;
}

/* ===== Section Styles ===== */
section {
    margin-bottom: 40px;
    padding: 28px;
    background: rgba(15,46,28,0.7);
    border-radius: 16px;
    border: 1px solid var(--border-green);
    backdrop-filter: blur(8px);
}

section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--neon-yellow);
    text-shadow: var(--glow-yellow);
}

section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 24px 0 14px;
    color: var(--neon-purple);
    text-shadow: var(--glow-purple);
}

section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 18px 0 10px;
    color: var(--accent-gold);
}

section p {
    margin-bottom: 14px;
    color: var(--text-secondary);
}

section img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(240,224,64,0.1);
}

section ul, section ol {
    margin: 14px 0 14px 24px;
    color: var(--text-secondary);
}

section li {
    margin-bottom: 8px;
}

/* ===== Info Table ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.info-table th, .info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-green);
}

.info-table th {
    background: rgba(240,224,64,0.08);
    color: var(--neon-yellow);
    font-weight: 600;
    width: 40%;
}

.info-table td {
    color: var(--text-primary);
}

.info-table tr:hover td {
    background: rgba(168,85,247,0.05);
}

/* ===== Symbol Grid ===== */
.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.symbol-card {
    background: rgba(15,46,28,0.8);
    border: 1px solid var(--border-green);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.symbol-card:hover {
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
    transform: translateY(-3px);
}

.symbol-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 10px;
    border-radius: 8px;
}

.symbol-card h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.symbol-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Similar Games Table ===== */
.games-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.games-table th, .games-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-green);
}

.games-table th {
    background: linear-gradient(90deg, rgba(240,224,64,0.1), rgba(168,85,247,0.1));
    color: var(--neon-yellow);
    font-weight: 600;
}

.games-table tr:hover td {
    background: rgba(168,85,247,0.05);
}

/* ===== Bonus Section ===== */
.bonus-type {
    background: rgba(15,46,28,0.6);
    border-left: 3px solid var(--neon-purple);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 12px 12px 0;
}

.bonus-type h4 {
    margin: 0 0 8px;
    color: var(--neon-yellow);
}

.bonus-type p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===== Buy Options ===== */
.buy-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 10px;
    margin: 8px 0;
    transition: all 0.3s;
}

.buy-option:hover {
    background: rgba(168,85,247,0.15);
    border-color: var(--neon-purple);
}

.buy-option-name {
    font-weight: 600;
    color: var(--text-primary);
}

.buy-option-price {
    color: var(--neon-yellow);
    font-weight: 700;
    font-size: 1.05rem;
}

/* ===== FAQ Accordion ===== */
.faq-item {
    margin: 12px 0;
    border: 1px solid var(--border-green);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15,46,28,0.5);
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--neon-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    user-select: none;
}

.faq-question:hover {
    background: rgba(240,224,64,0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--neon-purple);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== Pros & Cons Table ===== */
.pros-cons-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pros-cons-table th {
    padding: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.pros-cons-table th.pros-header {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border-radius: 12px 0 0 0;
}

.pros-cons-table th.cons-header {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border-radius: 0 12px 0 0;
}

.pros-cons-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-green);
    vertical-align: top;
    width: 50%;
}

.pros-cons-table tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.pros-cons-table tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

/* ===== Navigation Table of Contents ===== */
.toc {
    background: rgba(15,46,28,0.8);
    border: 1px solid var(--border-green);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.toc h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: var(--neon-yellow);
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    column-count: 2;
    column-gap: 24px;
}

.toc li {
    margin: 6px 0;
    break-inside: avoid;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: block;
    padding: 4px 0;
}

.toc a:hover {
    color: var(--neon-yellow);
    padding-left: 8px;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(180deg, rgba(6,26,16,0.98) 0%, rgba(4,18,10,0.99) 100%);
    border-top: 1px solid var(--border-green);
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    color: var(--neon-yellow);
    font-size: 1rem;
    margin-bottom: 14px;
    text-shadow: var(--glow-yellow);
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 8px 0;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--neon-yellow);
    padding-left: 4px;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 6px 0;
}

.footer-section a[href^="mailto:"],
.footer-section a[href^="tel:"] {
    color: var(--neon-purple);
    font-weight: 500;
}

.footer-section a[href^="mailto:"]:hover,
.footer-section a[href^="tel:"]:hover {
    color: var(--neon-yellow);
}

/* Language Switcher */
.lang-switcher {
    margin: 20px 0;
    padding: 16px;
    background: rgba(15,46,28,0.6);
    border-radius: 12px;
    border: 1px solid var(--border-green);
}

.lang-switcher h4 {
    color: var(--neon-yellow);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.lang-link:hover, .lang-link.active {
    background: rgba(168,85,247,0.25);
    border-color: var(--neon-purple);
    color: var(--neon-yellow);
    transform: translateY(-1px);
}

.lang-flag {
    font-size: 1.1rem;
}

/* Responsible Gambling Links */
.rg-links {
    margin: 20px 0;
    padding: 16px;
    text-align: center;
}

.rg-links a {
    display: inline-block;
    margin: 6px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.rg-links a:hover {
    color: var(--neon-purple);
}

.footer-bottom {
    border-top: 1px solid var(--border-green);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Mobile Menu ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--neon-yellow);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6,26,16,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-green);
    }
    
    .header-nav.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 18px;
        margin-bottom: 24px;
    }
    
    section h2 {
        font-size: 1.4rem;
    }
    
    section h3 {
        font-size: 1.15rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .play-buttons .cta-button {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .toc ul {
        column-count: 1;
    }
    
    .symbol-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .info-table {
        font-size: 0.85rem;
    }
    
    .info-table th, .info-table td {
        padding: 8px 10px;
    }
    
    .lang-grid {
        gap: 6px;
    }
    
    .lang-link {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    main {
        padding: 0 12px 40px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .logo {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    section h2 {
        font-size: 1.2rem;
    }
    
    .play-buttons {
        gap: 8px;
    }
    
    .play-buttons .cta-button {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}
