@import url('https://fonts.googleapis.com/css2?family=Cascadia+Mono:ital,wght@0,200..700;1,200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Anton+SC&display=swap');

:root {
    --bg-dark: #0A0A0A;
    --accent-gold: #D4B36A;
    --text-light: #F5F0E6;
    --panel-bg: rgba(17, 17, 17, 0.85);
}

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

body {
    font-family: 'Cascadia Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Film Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.25) 2px,
        rgba(0, 0, 0, 0) 10px
    );
    pointer-events: none;
    animation: scanline 6s linear infinite;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.75)), url('../img/default/hero-bg.webp') center/cover;
    border-bottom: 4px solid var(--accent-gold);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(10,10,10,0.9) 90%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.glitch {
    font-family: 'Anton SC', monospace;
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: rgba(232, 199, 127, 0.85);
    animation: glitch-anim 2s infinite linear alternate-reverse;
    left: 2px;
    text-shadow: -2px 0 #000000;
}

.glitch::after {
    color: #E8C77F;
    animation: glitch-anim 1.5s infinite linear alternate-reverse;
    left: -2px;
    text-shadow: 2px 0 #000000;
}

.hero-desc {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: #ccc;
}

.telegram-link {
    color: var(--accent-gold);
    text-decoration: none;
}

.telegram-link:hover {
    text-decoration: underline;
}

.enter-btn {
    background: transparent;
    color: var(--accent-gold);
    border: 3px solid var(--accent-gold);
    padding: 1rem 3rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.enter-btn:hover {
    background: var(--accent-gold);
    color: #111;
    box-shadow: 0 0 30px var(--accent-gold);
    transform: scale(1.05);
}

/* Guide Section */
.guide-section {
    padding: 4rem 2rem;
    background: #111;
    min-height: 100vh;
}

.guide-container {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.column {
    background: var(--panel-bg);
    border: 1px solid rgba(212, 179, 106, 0.3);
    padding: 1.5rem;
    min-height: 600px;
    position: relative;
}

.section-title {
    color: var(--accent-gold);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
    text-shadow: 0 0 8px var(--accent-gold);
}

.sections-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.section-btn, .subsection-btn {
    background: rgba(30, 30, 30, 0.8);
    color: var(--text-light);
    border: 1px solid #444;
    padding: 1rem 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.section-btn:hover, .subsection-btn:hover {
    background: rgba(60, 50, 30, 0.9);
    border-color: var(--accent-gold);
    transform: translateX(8px);
}

.section-btn.active, .subsection-btn.active {
    background: rgba(212, 179, 106, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 179, 106, 0.4);
}

/* Content Area */
.content-area {
    line-height: 1.8;
}

.content-area img.content-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    margin: 1.5rem 0;
    box-shadow: 0 0 20px rgba(212, 179, 106, 0.3);
}

.content-area p {
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
}

.content-title {
    color: #E8C77F;
    font-size: 2.2rem;
    font-weight: 700;
    /*margin: 0 0 1.8rem 0;
    padding-bottom: 0.8rem;*/
    /*border-bottom: 3px solid rgba(232, 199, 127, 0.25);*/
    /*text-shadow: 0 0 15px rgba(232, 199, 127, 0.6);*/
    letter-spacing: 3px;
    line-height: 1.2;
}

.content-body {
    line-height: 1.75;
}

.content-body p {
    margin-bottom: 1.3rem;
    font-size: 1.25rem;
}

.content-body img.content-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    margin: 1.8rem 0 1.5rem 0;
    box-shadow: 0 0 25px rgba(212, 179, 106, 0.35);
}

/* Empty State */
.empty-state {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 3rem 2rem;
    border-top: 2px solid var(--accent-gold);
    text-align: center;
    font-size: 1rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.vhs-effect {
    font-family: 'Press Start 2P', cursive;
    color: #E8C77F;
    opacity: 0.4;
    margin-top: 1rem;
    font-size: 1.1rem;
    letter-spacing: 6px;
    animation: glitch 5s infinite;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(212, 179, 106, 0.25);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 20px rgba(212, 179, 106, 0.35);
}

.loading-text {
    margin-top: 1.4rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Animations */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim {
    0% { clip: rect(20px, 9999px, 25px, 0); }
    100% { clip: rect(80px, 9999px, 190px, 0); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover effects for analog feel */
.section-btn:active, .subsection-btn:active {
    transform: scale(0.98);
}

/* Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0); /* scrollbar and track */ 
}

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

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0); /* track color */
}

*::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold); /* scrollbar color */
    border-radius: 10px; /* rounding off the scrollbar */
}