/* CSS Variables for theming */
:root {
    --primary-color: #000000;
    --text-color: #1f2937;
    --text-light: #ffffff;
    --bg-color: #f9fafb;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-bg: #000000;
    --footer-bg: #0f172a;
    --accent-color: #ff007f;
    --accent-hover: #e60073;
    --success-color: #10b981;
    --error-color: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, .brand-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

/* Header */
.site-header {
    background-color: var(--header-bg);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo-img {
    height: 40px;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    color: var(--text-light);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.lang-btn:hover {
    border-color: #fff;
}

.lang-btn .arrow {
    font-size: 10px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    list-style: none;
    min-width: 150px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1001;
}

.lang-selector:hover .lang-dropdown,
.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.lang-dropdown li:last-child a {
    border-bottom: none;
}

.lang-dropdown li a:hover {
    background: #f8fafc;
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    border: none;
    text-transform: uppercase;
    text-align: center;
}

.btn-header {
    padding: 8px 20px;
    font-size: 16px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 20px;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #222;
    color: #fff;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #000;
}

.btn-secondary:hover {
    background-color: #d1d5db;
    color: #000;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 70%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.game-logo {
    max-width: 100%;
    width: 400px;
}

.hero-subtitle {
    font-size: 18px;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 60px 20px;
}

.main-article {
    min-width: 0; /* Prevents overflow in grid */
}

/* Content Blocks */
.content-block {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.content-block h2 {
    font-size: 32px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.content-block h3 {
    font-size: 24px;
    margin: 25px 0 15px;
}

.content-block p {
    margin-bottom: 15px;
    font-size: 16px;
}

.content-block figure {
    margin: 30px 0;
}

.content-block figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-block figcaption {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.flow-box {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.8;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

/* iframe Demo Container */
.game-demo-container {
    width: 100%;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.demo-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.demo-wrapper iframe, .demo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.demo-placeholder {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    transition: 0.3s;
}

.demo-placeholder:hover .demo-overlay {
    background: rgba(0,0,0,0.3);
}

.play-demo-btn {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let the container handle the click */
}

.demo-actions {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Pros and Cons Block inside Main Article */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pros-section, .cons-section {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.pros-section h3, .cons-section h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.pros-list, .cons-list {
    list-style: none;
}

.pros-list li, .cons-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 15px;
}

.pros-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
    background: rgba(16, 185, 129, 0.1);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cons-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--error-color);
    font-weight: bold;
    font-size: 16px;
    background: rgba(239, 68, 68, 0.1);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verdict Block */
.verdict-block {
    background: linear-gradient(to right bottom, #111827, #1f2937);
    color: #fff;
}

.verdict-block h2 {
    color: #fff;
    border-color: #374151;
}

.verdict-block p {
    color: #e5e7eb;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.faq-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #111827;
    border: none;
    padding: 0;
}

.faq-item p {
    margin: 0;
    color: #4b5563;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
}

.sidebar-widget h3 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.quick-facts-list {
    list-style: none;
}

.quick-facts-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.quick-facts-list li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: #94a3b8;
    padding: 60px 0;
    font-size: 14px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-text a {
    color: #fff;
    text-decoration: underline;
}

.legal-text a:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .sidebar-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }

    
    .hero-content {
        padding: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .content-block {
        padding: 25px;
    }
    
    .content-block h2 {
        font-size: 26px;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .game-demo-container {
        width: 80%;
    }

    .demo-wrapper {
        padding-bottom: 177.77%; /* 9:16 Aspect Ratio on Mobile */
    }
}

/* Table of Contents */
.toc-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
}

.toc-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--primary-color);
}

.toc-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

.toc-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Service Pages & Contact Form */
.page-hero {
    background-color: #111827;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 4px solid var(--accent-color);
}

.page-hero h1 {
    color: #fff;
    margin: 0;
    font-size: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.notice:empty {
	display: none;
}
.notice {
	display: block;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.notice.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.notice.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}
