/* =========================================
   CORE VARIABLES & ANIMATIONS
   ========================================= */
:root {
    --bg-deep: #050505;
    --bg-card: #0e0e0e;
    --bg-card-hover: #141414;
    
    --gold-primary: #d4af37;
    --gold-dim: #7a6020;
    --gold-bright: #fffce6;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.95);
    --glow-gold: 0 0 15px rgba(212, 175, 55, 0.1);
    --font-serif: 'Georgia', serif;
    --font-sans: 'Segoe UI', sans-serif;
}

/* Анимация появления контента снизу */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Анимация пульсации логотипа */
@keyframes goldPulse {
    0% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)) sepia(100%) saturate(500%) hue-rotate(5deg); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6)) sepia(100%) saturate(600%) hue-rotate(5deg); transform: scale(1.02); }
    100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)) sepia(100%) saturate(500%) hue-rotate(5deg); transform: scale(1); }
}

/* Анимация сканирующей линии (CRT эффект) */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Анимация блика на карточках */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 50% 0%, #1c1c10 0%, #000000 70%),
        linear-gradient(0deg, rgba(0,0,0,0.2) 50%, transparent 50%); /* Fake pixel grid */
    background-size: 100% 100%, 4px 4px;
    color: #dcdcdc;
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* CRT Scanline Overlay - Эффект старого монитора */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(212,175,55,0) 50%, rgba(212,175,55,0.02) 50%, rgba(212,175,55,0.05));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.3;
}

/* Вторая линия сканирования */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; height: 5px;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    animation: scanline 6s linear infinite;
    z-index: 998;
    opacity: 0.3;
    pointer-events: none;
}

/* =========================================
   HEADER & LOGO
   ========================================= */
.header {
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0,0,0,0.8);
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 110px;
    width: auto;
    margin-bottom: 20px;
    /* Живое дыхание логотипа оставляем */
    animation: goldPulse 4s infinite ease-in-out;
}

/* =========================================
   MENU (STABILIZED - NO ANIMATIONS)
   ========================================= */
.nav-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-menu li a {
    color: #888;
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 10px 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease; /* Только плавная смена цвета */
}

/* Статичное подчеркивание при наведении */
.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--gold-primary);
    /* Убрали transform и background-slide, кнопки стоят на месте */
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%; /* Линия просто плавно растет */
}

/* =========================================
   LAYOUT & CONTENT ANIMATIONS
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 60px 0;
}

@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

/* Эффекты появления контента (Ver 3.0) */
.article-card, .sidebar-widget, .hero-section {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; 
}

.hero-section { animation-delay: 0.1s; }
.content-grid main { animation-delay: 0.3s; }
.content-grid aside { animation-delay: 0.5s; }

/* =========================================
   CARDS (PREMIUM OBSIDIAN LOOK)
   ========================================= */
.article-card, .sidebar-widget {
    background: var(--bg-card);
    border: 1px solid #1a1a1a;
    padding: 35px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

/* Эффект блика на карточках оставляем (Ver 3.0) */
.article-card:hover, .sidebar-widget:hover {
    transform: translateY(-5px) scale(1.005);
    border-color: var(--gold-dim);
    box-shadow: 0 20px 60px rgba(0,0,0,1), 0 0 30px rgba(212, 175, 55, 0.1);
}

.article-card::after, .sidebar-widget::after {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s;
    pointer-events: none;
}

.article-card:hover::after, .sidebar-widget:hover::after {
    left: 200%;
    transition: left 1s ease-in-out;
}

/* =========================================
   TYPOGRAPHY & GLOWS
   ========================================= */
h1, h2, h3 { font-family: var(--font-serif); margin-bottom: 20px; }

h1 {
    font-size: 2.6rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, #a88b32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; width: 60px; height: 3px;
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-primary);
}

h2 { font-size: 1.8rem; color: #e8dcb5; text-shadow: 0 0 10px rgba(0,0,0,0.8); margin-top: 40px; }
h3 { color: var(--gold-primary); font-size: 1.2rem; margin-top: 25px; letter-spacing: 0.5px; }
p { margin-bottom: 20px; color: #c0c0c0; font-weight: 300; }
a { color: var(--gold-primary); text-decoration: none; transition: 0.3s; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--gold-primary); }

ul, ol { margin-bottom: 20px; padding-left: 20px; }
li { margin-bottom: 10px; color: #bbb; }
li::marker { color: var(--gold-dim); }

table { width: 100%; border-collapse: collapse; margin: 30px 0; background: #080808; border: 1px solid #222; }
th, td { padding: 15px; border: 1px solid #222; text-align: left; }
th { color: var(--gold-primary); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; background: rgba(20, 20, 20, 0.5); }
tr:hover td { background: rgba(212, 175, 55, 0.05); }

.code-block {
    background: #000;
    border: 1px solid #333;
    padding: 20px;
    color: var(--gold-primary);
    font-family: monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,1);
}
.code-block::before {
    content: "ENCRYPTED BLOCK";
    position: absolute; top: 0; right: 0;
    background: #111; color: #555;
    font-size: 0.6rem; padding: 2px 6px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7), var(--bg-deep)), url('dashboard.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    border-bottom: 1px solid #222;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, #050505 90%);
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    border: none;
    text-shadow: 0 0 20px rgba(0,0,0,1);
    animation: fadeInUp 1s ease-out;
    position: relative; z-index: 2;
}

.hero-sub {
    font-size: 1.3rem;
    color: #ccc;
    text-shadow: 0 2px 4px #000;
    position: relative; z-index: 2;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid #111;
    padding: 60px 0;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    background: #020202;
    margin-top: 60px;
}

/* =========================================
   SPECIFIC STYLES FOR MIRROR PAGE (V3 Compatible)
   ========================================= */
.mirror-hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: -50px 0 60px 0;
    position: relative;
    z-index: 10;
}

.main-mirror-box {
    background: linear-gradient(145deg, #0a0a0a, #000);
    border: 2px solid var(--gold-primary);
    padding: 40px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.main-mirror-box::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
    background: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-primary);
    animation: scanline 3s infinite linear;
}

.status-badge {
    display: inline-block;
    background: rgba(0, 255, 0, 0.1);
    color: #0f0;
    border: 1px solid #0f0;
    padding: 5px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.onion-address {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: #fff;
    background: #111;
    padding: 20px;
    border: 1px dashed #333;
    margin: 20px 0;
    word-break: break-all;
    position: relative;
}

.copy-hint {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
}

.mirror-btn {
    display: inline-block;
    background: var(--gold-primary);
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 20px 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 20px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    transition: 0.3s;
}

.mirror-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.8);
    color: #fff;
    background: #000;
    border: 2px solid var(--gold-primary);
}

.seo-content-block {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1a1a1a;
}

.seo-content-block p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #ccc;
    margin-bottom: 25px;
    text-align: justify;
}

.seo-highlight {
    color: var(--gold-primary);
    font-weight: bold;
}
