/*
Theme Name: MoonWave
Theme URI: https://moonwave.local
Author: MoonWave Archive
Author URI: https://moonwave.local
Description: Тёмная тема в фиолетовых тонах для архива статей о богине Гекате. Анимация луны, плавные переходы, адаптивный дизайн.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moonwave
Tags: dark, blog, custom-colors, custom-menu, featured-images, threaded-comments, footer-widgets, custom-header

This theme, like WordPress, is licensed under the GPL.
*/

/* ============================================
   CSS Переменные
   ============================================ */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --accent: #f472b6;
    --accent-gold: #fbbf24;
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-hover: #1a1a25;
    --text: #e8e8e8;
    --text-muted: #888899;
    --border: #2a2a3a;
    --shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
    --shadow-hover: 0 15px 50px rgba(124, 58, 237, 0.3);
}

/* ============================================
   Сброс и базовые стили
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    font-size: 16px;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--border);
    margin: 1.5rem 0;
}

blockquote {
    border-left: 5px solid var(--primary);
    padding-left: 25px;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: var(--bg);
    padding: 20px 25px;
    border-radius: 0 15px 15px 0;
}

ul, ol {
    margin: 1.5rem 0;
    padding-left: 35px;
}

li {
    margin-bottom: 12px;
}

/* ============================================
   Контейнер
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Шапка сайта
   ============================================ */
.site-header {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--primary);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(244, 114, 182, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.moon-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(167, 139, 250, 0.8));
        transform: scale(1.05);
    }
}

.site-title {
    font-size: 3em;
    color: #fff !important;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: none !important;
}

.site-title a {
    color: #fff !important;
    border-bottom: none !important;
}

.site-description {
    font-size: 1.3em;
    color: var(--primary-light);
    font-weight: 300;
    margin-bottom: 10px;
}

.site-meta {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: inline-block;
}

/* Кастомный логотип */
.custom-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.custom-logo {
    max-height: 100px;
    width: auto;
    border: none;
    box-shadow: none;
}

/* ============================================
   Навигация
   ============================================ */
.main-navigation {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
}

.main-navigation a {
    color: var(--text);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-bottom: none;
}

.main-navigation a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.main-navigation .current-menu-item > a {
    background: var(--primary);
    color: #fff;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ============================================
   Хлебные крошки
   ============================================ */
.breadcrumb {
    background: var(--bg-card);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-light);
    border-bottom: none;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 8px;
}

.breadcrumb-item.current {
    color: var(--text);
}

/* ============================================
   Статистика
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    border-radius: 15px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 15px 30px;
    background: var(--bg);
    border-radius: 15px;
    border: 1px solid var(--border);
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-light);
    font-family: 'Cormorant Garamond', serif;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Основной контент
   ============================================ */
.site-content {
    padding: 40px 0;
}

/* Карточки категорий на главной */
.category-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

.category-icon {
    font-size: 3em;
}

.category-card h2 {
    color: var(--primary-light) !important;
    font-size: 2em;
    margin: 0;
}

.category-desc {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.article-count {
    color: var(--accent);
    font-size: 0.95em;
    margin-bottom: 25px;
}

/* Список статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.article-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.article-card a {
    display: block;
    padding: 20px;
    border-bottom: none;
}

.article-thumbnail {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0;
    border: none;
}

.article-card .article-title {
    display: block;
    font-weight: 500;
    font-size: 1.05em;
    color: #fff !important;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card .article-meta {
    display: block;
    font-size: 0.8em;
    color: var(--text-muted);
}

.category-more {
    margin-top: 25px;
    text-align: center;
}

/* ============================================
   Страница статьи
   ============================================ */
.single-post .site-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 45px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.article-content h2 {
    color: var(--primary-light) !important;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.6em;
}

.article-content h3 {
    color: var(--accent) !important;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 1.05em;
}

/* Миниатюра записи */
.featured-image {
    margin: 0 -45px 30px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    border: none;
}

/* Мета-информация */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    font-size: 0.9em;
    color: var(--text-muted);
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-meta a {
    color: var(--primary-light);
}

/* Виджет после заголовка */
.after-header-widget {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Теги */
.entry-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tags-label {
    color: var(--text-muted);
    margin-right: 10px;
}

.tag-links a {
    display: inline-block;
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin: 0 5px 5px 0;
    border: 1px solid var(--border);
}

.tag-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Навигация между статьями */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.nav-previous,
.nav-next {
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.nav-previous a,
.nav-next a {
    display: block;
    color: var(--text);
    border-bottom: none;
}

.nav-label {
    font-size: 0.8em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-previous .nav-label {
    display: block;
    margin-bottom: 5px;
}

.nav-next .nav-label {
    display: block;
    margin-top: 5px;
}

.nav-home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-home {
    background: var(--primary);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
}

.btn-home:hover {
    background: var(--primary-dark);
}

/* ============================================
   Карточки записей (архив/поиск)
   ============================================ */
.posts-loop {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.post-thumbnail {
    flex: 0 0 280px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease;
}

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

.post-card-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.post-card-header {
    margin-bottom: 15px;
}

.post-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.post-card-title a {
    color: #fff !important;
    border-bottom: none !important;
}

.post-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-card-excerpt {
    flex: 1;
    color: var(--text);
    margin-bottom: 15px;
}

.post-card-excerpt p {
    margin-bottom: 0;
}

.post-card-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border);
    border-bottom: none !important;
}

.read-more-btn:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Заголовки архивов */
.archive-header {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.archive-title {
    margin-bottom: 10px;
    color: var(--primary-light) !important;
}

.archive-description {
    color: var(--text-muted);
}

.archive-description p {
    margin-bottom: 0;
}

/* ============================================
   Пагинация
   ============================================ */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    border-bottom: none !important;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================
   Футер с виджетами
   ============================================ */
.site-footer-widgets {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget-column {
    padding: 0 15px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: var(--primary-light);
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--text-muted);
    border-bottom: none;
}

.footer-widget a:hover {
    color: var(--accent);
}

/* ============================================
   Подвал
   ============================================ */
.site-footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.site-footer a {
    color: var(--primary-light);
    border-bottom: none;
}

.site-footer a:hover {
    color: var(--accent);
}

/* Социальные иконки */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.social-icon-text {
    font-size: 1.2em;
}

/* Меню футера */
.footer-menu {
    margin-bottom: 20px;
}

.footer-menu ul {
    display: flex;
    justify-content: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--text);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.footer-menu a:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-note {
    font-size: 0.9em;
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.site-info {
    font-size: 0.85em;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ============================================
   Кнопки
   ============================================ */
.nav-btn {
    display: inline-block;
    background: var(--bg-card);
    color: var(--text) !important;
    padding: 10px 25px;
    border-radius: 25px;
    border: 2px solid var(--border);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}

/* ============================================
   Шорткоды
   ============================================ */
.moonwave-quote {
    background: var(--bg);
    border-left: 5px solid var(--accent);
    padding: 25px 30px;
    margin: 25px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
}

.quote-content {
    font-size: 1.1em;
    color: var(--text);
    margin-bottom: 15px;
}

.quote-author {
    color: var(--primary-light);
    font-weight: 600;
}

/* Alerts */
.moonwave-alert {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid;
}

.alert-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.moonwave-alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent-gold);
}

.moonwave-alert-info {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
}

.moonwave-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.moonwave-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Список постов категории */
.moonwave-category-posts {
    list-style: none;
    padding: 0;
}

.moonwave-category-posts li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.moonwave-category-posts li:last-child {
    border-bottom: none;
}

.moonwave-category-posts a {
    color: var(--text);
}

.moonwave-category-posts a:hover {
    color: var(--primary-light);
}

/* Кнопка шорткод */
.moonwave-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 10px 5px;
}

.moonwave-button.btn-primary {
    background: var(--primary);
    color: #fff !important;
}

.moonwave-button.btn-accent {
    background: var(--accent);
    color: #fff !important;
}

.moonwave-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

/* Иконка луны */
.moon-phase-icon {
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   Комментарии
   ============================================ */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.comments-title {
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-item {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.comment-author {
    color: var(--primary-light);
    font-weight: 600;
}

.comment-date {
    color: var(--text-muted);
}

.comment-content {
    color: var(--text);
}

.comment-reply {
    margin-top: 15px;
}

.comment-reply a {
    font-size: 0.85em;
    color: var(--accent);
}

.comment-form {
    margin-top: 30px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1em;
    margin-bottom: 15px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 992px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 40px 15px;
    }

    .site-title {
        font-size: 2em;
    }

    .moon-icon {
        font-size: 60px;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 25px;
    }

    .featured-image {
        margin: 0 -25px 20px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nav-home {
        order: -1;
        margin-bottom: 15px;
    }

    .stats-bar {
        gap: 15px;
    }

    .stat-item {
        min-width: 100px;
        padding: 10px 20px;
    }

    .main-navigation .container {
        gap: 10px;
    }

    .main-navigation a {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .mobile-menu-toggle {
        display: block;
        margin-right: auto;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .primary-menu.active {
        display: flex;
    }

    .primary-menu li {
        margin-bottom: 10px;
    }

    .post-card {
        flex-direction: column;
    }

    .post-thumbnail {
        flex: none;
        height: 200px;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .social-icons {
        gap: 15px;
    }

    .moonwave-alert {
        flex-direction: column;
    }
}

/* ============================================
   Плавная прокрутка
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Утилиты
   ============================================ */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ============================================
   Ссылки в контенте
   ============================================ */
.entry-content a {
    color: var(--accent);
    border-bottom: 1px dotted var(--accent);
}

.entry-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ============================================
   Сайдбар (если используется)
   ============================================ */
.widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.widget-title {
    color: var(--primary-light);
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}
