/* Главный CSS файл */

/* ===== GLOBAL STYLES ===== */
body {
    background-color: #050505;
    color: white;
}

/* Noise/Grain эффект для премиального вида */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== HERO SECTION ===== */
.hero-bg {
    background: radial-gradient(circle at center, rgba(30,30,30,1) 0%, rgba(5,5,5,1) 70%);
}

/* Контурный текст */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
}

/* Металлический градиент для H2 (стиль из 2table.html) */
.title-metallic {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(40px, 6vw, 96px);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #ffffff 20%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Фото в hero секции */
.hero-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    width: auto;
    z-index: 5;
    object-fit: contain;
    filter: grayscale(20%);
}

/* ===== BUTTONS ===== */
/* Скругление для всех кнопок */
a[class*="inline-flex"][class*="items-center"],
button[class*="inline-flex"][class*="items-center"],
button[class*="bg-brand-red"] {
    border-radius: 5px !important;
}

/* Красное свечение при наведении */
.btn-glow:hover {
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== ARTICLE PAGE (day/night theme) ===== */
.article-day {
    --a-bg: #f0f0f0;
    --a-card: #ffffff;
    --a-text: #181818;
    --a-text2: #555555;
    --a-border: rgba(0,0,0,0.08);
}
.article-night {
    --a-bg: #141414;
    --a-card: #1e1e1e;
    --a-text: #e5e5e5;
    --a-text2: #999999;
    --a-border: rgba(255,255,255,0.08);
}
#article-container {
    background: var(--a-bg);
    color: var(--a-text);
    transition: background 0.3s, color 0.3s;
}
.a-card {
    background: var(--a-card);
    border: 1px solid var(--a-border);
    transition: background 0.3s, border-color 0.3s;
}
.a-sidebar {
    background: var(--a-card);
    border: 1px solid var(--a-border);
    transition: background 0.3s, border-color 0.3s;
}
.a-text2 { color: var(--a-text2); }
.a-border-b { border-bottom: 1px solid var(--a-border); }

.sidebar-link {
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: all 0.2s;
    color: var(--a-text2);
}
.sidebar-link:hover { color: #E50914; }
.sidebar-link.active {
    color: #E50914;
    border-left-color: #E50914;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-photo {
        height: 60%;
        right: 0;
        opacity: 1;
    }

    .title-metallic {
        font-size: clamp(28px, 8vw, 48px);
    }
}
