/*
Theme Name: Тренды Сегодня 2
Theme URI: http://trendysegodnya.ru/
Author: Your Name
Author URI: http://trendysegodnya.ru/
Description: Футуристическая тема с эффектом Neon Glass - 3D анимации, Glassmorphism, Bento Grid, Sticky Navbar
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendy-segodnya-2
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a0a15;
    --bg-card: #0f0f1f;
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --neon-cyan: #00F0FF;
    --neon-blue: #0099ff;
    --neon-magenta: #FF00FF;
    --neon-pink: #FF1493;
    --purple-glow: rgba(138, 43, 226, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(10px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Parallax Stars Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 240, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(0, 240, 255, 0.5), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 33% 90%, rgba(0, 240, 255, 0.4), transparent),
        radial-gradient(2px 2px at 10% 50%, rgba(255, 255, 255, 0.6), transparent);
    background-size: 200% 200%, 150% 150%, 100% 100%, 120% 120%, 180% 180%, 110% 110%, 160% 160%;
    background-position: 0% 0%, 20% 20%, 50% 50%, 80% 10%, 90% 80%, 33% 90%, 10% 50%;
    animation: parallax-stars 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes parallax-stars {
    0% {
        background-position: 0% 0%, 20% 20%, 50% 50%, 80% 10%, 90% 80%, 33% 90%, 10% 50%;
    }
    100% {
        background-position: 100% 100%, 120% 120%, 150% 150%, 180% 110%, 190% 180%, 133% 190%, 110% 150%;
    }
}

/* Hero Section - стабильное позиционирование */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

/* Фиолетовые облака/туман на фоне */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(
        ellipse at 80% 30%,
        rgba(138, 43, 226, 0.25) 0%,
        rgba(147, 51, 234, 0.15) 20%,
        rgba(168, 85, 247, 0.08) 40%,
        transparent 70%
    );
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
    animation: purple-cloud-float 8s ease-in-out infinite alternate;
}

@keyframes purple-cloud-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* Плавный переход к основному фону темы */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 5%,
        rgba(0, 0, 0, 0.7) 15%,
        black 30%,
        black 70%,
        rgba(0, 0, 0, 0.7) 85%,
        rgba(0, 0, 0, 0.3) 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 5%,
        rgba(0, 0, 0, 0.7) 15%,
        black 30%,
        black 70%,
        rgba(0, 0, 0, 0.7) 85%,
        rgba(0, 0, 0, 0.3) 95%,
        transparent 100%
    );
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Плавный переход по краям к основному цвету темы */
    background: 
        linear-gradient(to bottom, 
            var(--bg-dark) 0%,
            transparent 15%,
            transparent 85%,
            var(--bg-dark) 100%
        ),
        linear-gradient(to right,
            var(--bg-dark) 0%,
            transparent 10%,
            transparent 90%,
            var(--bg-dark) 100%
        );
    z-index: 2;
    pointer-events: none;
}

/* =============================================
   ⛔ КАТЕГОРИЧЕСКИ ЗАПРЕЩЕНО ИЗМЕНЯТЬ! ⛔
   Hero Ring Container - кольцо и надпись
   РАЗМЕР И РАСПОЛОЖЕНИЕ ЗАФИКСИРОВАНЫ!
   ============================================= */
.hero-ring-container {
    position: relative;
    width: min(135vmin, 1400px); /* ⛔ НЕ ТРОГАТЬ! ЗАФИКСИРОВАНО! */
    max-width: 98vw;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transform: translateY(-20px);
}

/* Кольцо - 3D эффект с глубиной */
.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    /* "Живое кольцо": дыхание + радужное свечение */
    animation: ring-alive 10s ease-in-out infinite;
}

/* Пульсация свечения с 3D глубиной */
/* "Живое кольцо": дыхание + радужное свечение */
@keyframes ring-alive {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: 
            drop-shadow(0 0 15px rgba(0, 240, 255, 0.6))
            drop-shadow(0 0 30px rgba(0, 240, 255, 0.4))
            drop-shadow(0 8px 25px rgba(0, 0, 0, 0.5))
            drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
    }
    25% {
        transform: translate(-50%, -50%) scale(1.03);
        filter: 
            drop-shadow(0 0 25px rgba(0, 240, 255, 0.8))
            drop-shadow(0 0 50px rgba(0, 240, 255, 0.6))
            drop-shadow(0 0 75px rgba(0, 240, 255, 0.4))
            drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6))
            drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        filter: 
            drop-shadow(0 0 25px rgba(255, 0, 255, 0.8))
            drop-shadow(0 0 50px rgba(255, 0, 255, 0.6))
            drop-shadow(0 0 75px rgba(138, 43, 226, 0.5))
            drop-shadow(0 12px 35px rgba(0, 0, 0, 0.6))
            drop-shadow(0 22px 55px rgba(0, 0, 0, 0.4));
    }
    75% {
        transform: translate(-50%, -50%) scale(1.03);
        filter: 
            drop-shadow(0 0 25px rgba(0, 150, 255, 0.8))
            drop-shadow(0 0 50px rgba(0, 150, 255, 0.6))
            drop-shadow(0 0 75px rgba(0, 150, 255, 0.4))
            drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6))
            drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: 
            drop-shadow(0 0 15px rgba(0, 240, 255, 0.6))
            drop-shadow(0 0 30px rgba(0, 240, 255, 0.4))
            drop-shadow(0 8px 25px rgba(0, 0, 0, 0.5))
            drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
    }
}

/* =============================================
   ⛔ КАТЕГОРИЧЕСКИ ЗАПРЕЩЕНО ИЗМЕНЯТЬ! ⛔
   Надпись - двухцветная в центре кольца
   РАЗМЕР И РАСПОЛОЖЕНИЕ ЗАФИКСИРОВАНЫ!
   ============================================= */
.hero-text-wrapper {
    position: absolute;
    top: 50%; /* ⛔ НЕ ТРОГАТЬ! */
    left: 50%; /* ⛔ НЕ ТРОГАТЬ! */
    transform: translate(-50%, -50%); /* ⛔ НЕ ТРОГАТЬ! */
    z-index: 5;
    text-align: center;
    user-select: none;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-text-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-text-main .text-line {
    display: block;
    font-size: clamp(1.2rem, 2.8vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--neon-cyan);
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(0, 240, 255, 0.6),
        0 0 30px rgba(0, 240, 255, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.8);
    animation: cyan-glow-pulse 3s ease-in-out infinite;
}

.hero-text-accent {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--neon-magenta);
    text-shadow: 
        0 0 15px rgba(255, 0, 255, 0.9),
        0 0 30px rgba(255, 0, 255, 0.6),
        0 0 45px rgba(255, 0, 255, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.8);
    animation: magenta-glow-pulse 3s ease-in-out infinite;
    margin-top: 5px;
}

@keyframes cyan-glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 240, 255, 0.8),
            0 0 20px rgba(0, 240, 255, 0.6),
            0 0 30px rgba(0, 240, 255, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 240, 255, 1),
            0 0 40px rgba(0, 240, 255, 0.8),
            0 0 60px rgba(0, 240, 255, 0.6),
            0 2px 8px rgba(0, 0, 0, 0.8);
    }
}

@keyframes magenta-glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 15px rgba(255, 0, 255, 0.9),
            0 0 30px rgba(255, 0, 255, 0.6),
            0 0 45px rgba(255, 0, 255, 0.4),
            0 3px 10px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 25px rgba(255, 0, 255, 1),
            0 0 50px rgba(255, 0, 255, 0.8),
            0 0 75px rgba(255, 0, 255, 0.6),
            0 3px 10px rgba(0, 0, 0, 0.8);
    }
}

/* Отключаем анимацию для пользователей с reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-ring {
        animation: ring-glow 4s ease-in-out infinite !important;
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ============================================
   FALLING STARS - Падающие звезды
   ============================================ */
.falling-stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3; /* НАД overlay (2), ПОД content (4) */
}

.falling-star {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    opacity: 0;
    animation: fall-down linear infinite;
    filter: 
        brightness(1.5)
        drop-shadow(0 0 15px rgba(255, 255, 255, 1))
        drop-shadow(0 0 25px rgba(0, 240, 255, 1))
        drop-shadow(0 0 35px rgba(0, 240, 255, 0.8));
}

@keyframes fall-down {
    0% {
        top: -80px;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.8);
    }
    5% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translateX(50px) rotate(180deg) scale(1);
    }
    95% {
        opacity: 0.8;
    }
    100% {
        top: calc(100% + 50px);
        opacity: 0;
        transform: translateX(100px) rotate(360deg) scale(0.6);
    }
}

/* Вариации скорости падения (медленнее) */
.falling-star:nth-child(1) { animation-duration: 18s; animation-delay: 0s; }
.falling-star:nth-child(2) { animation-duration: 22s; animation-delay: 2s; }
.falling-star:nth-child(3) { animation-duration: 16s; animation-delay: 4s; }
.falling-star:nth-child(4) { animation-duration: 20s; animation-delay: 1s; }
.falling-star:nth-child(5) { animation-duration: 24s; animation-delay: 3s; }
.falling-star:nth-child(6) { animation-duration: 19s; animation-delay: 5s; }
.falling-star:nth-child(7) { animation-duration: 25s; animation-delay: 1.5s; }
.falling-star:nth-child(8) { animation-duration: 21s; animation-delay: 3.5s; }
.falling-star:nth-child(9) { animation-duration: 23s; animation-delay: 0.5s; }
.falling-star:nth-child(10) { animation-duration: 20s; animation-delay: 2.5s; }
.falling-star:nth-child(11) { animation-duration: 17s; animation-delay: 4.5s; }
.falling-star:nth-child(12) { animation-duration: 26s; animation-delay: 1.8s; }

/* Glitch Animation - используется для заголовков секций */
@keyframes glitch-text {
    0% {
        opacity: 0;
        transform: translateY(20px) skew(5deg);
        filter: blur(5px);
    }
    50% {
        transform: translateY(-5px) skew(-2deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) skew(0deg);
        filter: blur(0);
    }
}

/* Кнопка "Читать дайджест" - АБСОЛЮТНОЕ позиционирование, независимо от кольца */
.hero-cta {
    display: inline-block;
    padding: 18px 45px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.4s ease;
    position: absolute;
    top: calc(50% + 67.5vmin - 350px);
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 100;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-cyan);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-cta:hover {
    color: var(--bg-dark);
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.6),
        0 0 40px rgba(0, 240, 255, 0.4),
        0 0 60px rgba(0, 240, 255, 0.2);
}

.hero-cta:hover::before {
    left: 0;
}

/* Bento Grid для категорий */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.bento-card {
    display: block;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    transform-style: preserve-3d;
    perspective: 1000px;
    text-decoration: none;
    color: inherit;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    filter: brightness(0.9);
    transition: all 0.5s ease;
    animation: neon-pulse 3s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 1;
        filter: brightness(0.9) drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.1) drop-shadow(0 0 20px rgba(0, 240, 255, 0.6));
    }
}

.bento-card:hover .bento-card-image {
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 240, 255, 0.8));
    transform: scale(1.05);
}

.bento-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 240, 255, 0.3);
}

/* Sticky Navbar (iOS стиль) */
.sticky-navbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 240, 255, 0.2);
}

.nav-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 50%;
}

.nav-icon:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.nav-icon.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.post-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.post-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 240, 255, 0.4);
}

.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.1);
}

.post-card-content {
    padding: 25px;
}

.post-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin: 60px 0 40px;
    text-align: center;
    animation: glitch-text 2s ease-in-out;
}

/* Post Card Category */
.post-card-category {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.post-card-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 15px;
    opacity: 0.7;
}

.post-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Footer */
.site-footer {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 60px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* Single Post Styles */
.single-post-header {
    padding: 120px 0 60px;
    text-align: center;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
    animation: glitch-text 2s ease-in-out;
}

.single-post-meta {
    color: var(--text-secondary);
    font-size: 1rem;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-post-content h2,
.single-post-content h3 {
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

.single-post-content a {
    color: var(--neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.single-post-content a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
    border-bottom-color: rgba(0, 240, 255, 0.4);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-bg);
    border-radius: 5px;
    border: 1px solid var(--glass-border);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.3);
}

/* Selection */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 120px 20px;
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3);
    margin-bottom: 20px;
    animation: glitch-text 2s ease-in-out;
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Archive */
.archive-header {
    text-align: center;
    padding: 120px 0 60px;
}

.archive-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
    animation: glitch-text 2s ease-in-out;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Category Page */
.category-header {
    text-align: center;
    padding: 120px 0 60px;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, transparent 100%);
    margin-bottom: 60px;
    position: relative;
}

.category-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: neon-glow 2s ease-in-out infinite;
}

@keyframes neon-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--neon-cyan),
            0 0 20px var(--neon-cyan),
            0 0 30px var(--neon-cyan);
    }
    50% {
        text-shadow: 
            0 0 20px var(--neon-cyan),
            0 0 40px var(--neon-cyan),
            0 0 60px var(--neon-cyan);
    }
}

.category-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.back-to-categories {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    color: var(--neon-cyan);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-to-categories:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.back-to-categories span {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-categories:hover span {
    transform: translateX(-3px);
}

.no-posts {
    text-align: center;
    padding: 100px 20px;
}

.no-posts p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Responsive */
/* Планшеты (изменен брейкпоинт для правильной работы на Desktop) */
@media (max-width: 1024px) and (min-width: 601px) {
    .hero-ring-container {
        width: min(80vmin, 400px);
        margin-bottom: 30px;
    }
    
    .hero-text-main .text-line {
        font-size: clamp(1.1rem, 3.5vw, 2.3rem);
    }
    
    .hero-text-accent {
        font-size: clamp(1.4rem, 4.2vw, 2.8rem);
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 0.9rem;
        top: calc(50% + 40vmin - 310px);
    }
    
    /* Адаптивность для падающих звезд на планшетах */
    .falling-star {
        width: 35px !important;
        height: 35px !important;
    }
    
    .falling-star:nth-child(n+10) {
        display: none; /* Оставить только 9 звезд */
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        padding: 40px 15px;
    }
    
    .sticky-navbar {
        bottom: 10px;
        padding: 8px 15px;
        gap: 20px;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-post-content {
        font-size: 1rem;
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-header {
        padding: 100px 0 50px;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
}

/* Мобильные телефоны */
@media (max-width: 600px) {
    .hero-ring-container {
        width: min(85vmin, 320px);
        margin-bottom: 25px;
    }
    
    .hero-text-main .text-line {
        font-size: clamp(0.95rem, 3vw, 2rem);
        letter-spacing: 0.03em;
    }
    
    .hero-text-accent {
        font-size: clamp(1.25rem, 3.8vw, 2.5rem);
    }
    
    .hero-cta {
        padding: 10px 25px;
        font-size: 0.85rem;
        top: calc(50% + 42.5vmin - 300px);
    }
    
    /* Меньше звезд на мобильных */
    .falling-star {
        width: 25px !important;
        height: 25px !important;
    }
    
    .falling-star:nth-child(n+7) {
        display: none; /* Оставить только 6 звезд */
    }
    
    .category-header {
        padding: 80px 0 40px;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .back-to-categories {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Большие горизонтальные экраны */
@media (min-width: 1600px) {
    .hero-section {
        padding: 0;
    }
}

/* Вертикальные экраны (высота больше ширины) */
@media (max-aspect-ratio: 9/16) {
    .hero-text-main .text-line {
        font-size: clamp(1rem, 2.2vw, 2rem);
    }
    
    .hero-text-accent {
        font-size: clamp(1.3rem, 2.8vw, 2.5rem);
    }
}

/* Очень узкие вертикальные экраны */
@media (max-width: 480px) and (max-aspect-ratio: 9/16) {
    .hero-text-main .text-line {
        font-size: clamp(0.9rem, 2vw, 1.8rem);
    }
    
    .hero-text-accent {
        font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    }
}

/* ========================================
   SEARCH MODAL - Модальное окно поиска
   ======================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    z-index: 10001;
    overflow-y: auto;
    box-shadow: 
        0 0 50px rgba(0, 240, 255, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
    transform: rotate(90deg);
}

.search-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-modal-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--neon-cyan);
}

.search-modal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-modal-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--neon-cyan);
}

.search-modal-input {
    width: 100%;
    padding: 18px 60px 18px 60px;
    background: rgba(0, 240, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.search-results {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.search-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.search-placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    transform: translateX(5px);
}

.search-result-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-dark);
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.4;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-result-category {
    padding: 2px 10px;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    color: var(--neon-cyan);
    font-weight: 600;
}

.search-result-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: var(--neon-cyan);
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.search-no-results-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

/* ========================================
   POPULAR POSTS PAGE - Страница популярных статей
   ======================================== */
.popular-header {
    text-align: center;
    padding: 120px 0 60px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    margin-bottom: 60px;
}

.popular-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.popular-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.popular-title span {
    font-size: 3.5rem;
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px gold);
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 30px gold);
    }
}

.popular-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    color: var(--neon-cyan);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.popular-category-section {
    margin-bottom: 80px;
}

.popular-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--glass-border);
}

.popular-category-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.view-all-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

.popular-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.popular-post-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.popular-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    border-color: var(--neon-cyan);
}

.popular-post-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-post-card:hover .popular-post-thumbnail img {
    transform: scale(1.1);
}

.views-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.popular-post-content {
    padding: 25px;
}

.popular-post-title {
    margin-bottom: 15px;
}

.popular-post-title a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-post-title a:hover {
    color: var(--neon-cyan);
}

.popular-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-views {
    color: var(--neon-cyan);
    font-weight: 600;
}

.popular-post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 25px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateX(5px);
}
/* Samsung S21 5G (360px viewport) - кнопка "Читать дайджест" ниже */
@media (max-width: 380px) {
    .hero-cta {
        top: calc(50% + 50vmin - 120px) !important;
    }
}
