:root {
    --bg-deep: #030712;
    --accent-blue: #3b82f6;
    --light-blue: #60a5fa;
    --silver: #e2e8f0;
    /* Apple Glass Effect */
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
        /* Фиолетовый ивентовый цвет */
    --event-color: #7865B9; 
    --event-color-rgb: 120, 101, 185;

}

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

body {
    background-color: var(--bg-deep);
    color: var(--silver);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ФОН */
.bg-visual {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -2;
}
.stars {
    position: fixed;
    top: 0; left: 0; width: 200%; height: 200%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.3; z-index: -1;
    animation: spaceMove 150s linear infinite;
}
@keyframes spaceMove { from { transform: translate(0, 0); } to { transform: translate(-50%, -50%); } }

/* ТЕХ РАБОТЫ */
.maintenance-banner {
    background: rgba(239, 68, 68, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fca5a5;
    text-align: center;
    padding: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(20px) saturate(180%);
    position: sticky; top: 0; z-index: 100;
    letter-spacing: 1px;
}
.blink-dot {
    display: inline-block; width: 6px; height: 6px;
    background: #ef4444; border-radius: 50%;
    margin-right: 8px; animation: blink 1.5s infinite;
    box-shadow: 0 0 10px #ef4444;
}
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }

/* ЛОГОТИП */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem; letter-spacing: 6px; color: #fff;
    margin-top: 20px;
}

/* LAYOUT */
.container { max-width: 1300px; margin: 0 auto; padding: 20px 20px 60px 20px; }
.main-layout { display: grid; grid-template-columns: 320px 1fr; gap: 50px; margin-top: 40px; }

/* ПОИСК (Увеличен отступ) */
.search-box { margin-bottom: 40px; } /* Сделал больше места до категорий */

#searchInput {
    width: 100%; 
    padding: 16px 20px; 
    color: #fff; 
    outline: none; 
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 18px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}
#searchInput:focus { 
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* КАРТОЧКИ (iOS Style) */
.wiki-grid { display: flex; flex-direction: column; gap: 12px; }

.wiki-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    padding: 18px 24px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.15, 0.83, 0.66, 1);
    animation: appear 0.6s ease-out backwards;
}

@keyframes appear {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wiki-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* ЭМОДЗИ */
.card-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    animation: floatingEmoji 4s ease-in-out infinite;
}
@keyframes floatingEmoji { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* КОНКУРС */
.event-card {
    background: linear-gradient(135deg, rgba(var(--event-color-rgb), 0.2), rgba(var(--event-color-rgb), 0.05)) !important;
    border: 1px solid rgba(var(--event-color-rgb), 0.3) !important;
}
.event-card h3 { color: var(--event-color) !important; font-weight: 700; }
.event-card .card-icon {
    filter: drop-shadow(0 0 15px var(--event-color));
    animation: eventPulse 2s infinite !important;
}
@keyframes eventPulse { 
    0%, 100% { transform: scale(1); filter: brightness(1); } 
    50% { transform: scale(1.25); filter: brightness(1.3); } 
}

.wiki-card h3 { font-size: 1rem; color: #fff; margin-bottom: 2px; }
.wiki-card p { font-size: 0.8rem; color: #94a3b8; }

/* НОВОСТИ (Deep Glass) */
.news-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px) saturate(180%);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
}
.section-title { font-family: 'Orbitron'; font-size: 1.1rem; margin-bottom: 30px; color: var(--light-blue); letter-spacing: 4px; }
.news-date { font-size: 0.7rem; color: var(--accent-blue); font-weight: 700; margin-bottom: 12px; display: block; }
.news-item h2 { font-family: 'Orbitron'; font-size: 1.6rem; color: #fff; margin-bottom: 25px; }

.news-media { border-radius: 20px; overflow: hidden; margin-bottom: 25px; border: 1px solid var(--glass-border); }
.news-media img, .news-media video { width: 100%; display: block; transition: 0.6s ease; }
.news-item:hover img { transform: scale(1.03); }

.news-text { font-size: 1rem; line-height: 1.8; color: #cbd5e1; }

footer { text-align: center; margin-top: 60px; color: #475569; font-size: 0.75rem; letter-spacing: 2px; }

@media (max-width: 900px) {
    .main-layout { grid-template-columns: 1fr; gap: 30px; }
    .sidebar { position: relative; }
}

