/*
Theme Name: OfficeLend Blog
Description: Современная WordPress тема для блога об упаковочных материалах. Адаптивный дизайн с фокусом на экспертный контент и удобство пользователей.
Author: OfficeLend Team
Version: 1.0.0
Text Domain: officelend-blog
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, business, custom-menu, featured-images, flexible-header, custom-logo, threaded-comments, translation-ready, two-columns, right-sidebar, responsive-layout

OfficeLend Blog WordPress Theme, Copyright 2024 OfficeLend
OfficeLend Blog is distributed under the terms of the GNU GPL
*/

/* ==========================================
   ОСНОВНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ========================================== */

:root {
    /* Цветовая палитра - основана на упаковочной индустрии */
    --primary-color: #2563eb;        /* Синий - надежность, профессионализм */
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #059669;      /* Зеленый - эко-решения */
    --secondary-dark: #047857;
    --accent-color: #dc2626;         /* Красный - акценты, важная информация */
    --warning-color: #f59e0b;        /* Оранжевый - предупреждения */
    
    /* Нейтральные цвета */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Цвета фона и текста */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-dark: var(--gray-900);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-400);
    --text-white: #ffffff;
    
    /* Размеры и отступы */
    --max-width: 1200px;
    --container-padding: 1.5rem;
    --section-padding: 4rem 0;
    --header-height: 80px;
    
    /* Радиусы скругления */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Переходы */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Типографика */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

/* ==========================================
   ОБЩИЕ СТИЛИ
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Для страниц с breadcrumbs убираем стандартный padding-top */
body.single,
body.category, 
body.archive {
    padding-top: 0;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* WordPress специфичные стили */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Контейнеры */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-main {
    min-height: 50vh;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   ХЕДЕР И НАВИГАЦИЯ
   ========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    gap: 1rem;
    position: relative;
}

/* Порядок элементов */
.nav-brand {
    order: 1;
}

.nav-menu {
    order: 2;
}

.header-search {
    order: 3;
}

.menu-toggle {
    order: 4;
}

@media (min-width: 769px) {
    .nav-container {
        gap: 2rem;
    }
}

/* Navigation Brand */
.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.brand-link:hover {
    color: var(--primary-color);
}

.brand-link:hover .brand-text {
    color: var(--primary-color);
}

.brand-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .brand-link {
        gap: 0.6rem;
    }
    
    .brand-icon {
        font-size: 1.4rem;
    }
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.brand-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .brand-text {
        font-size: 1.2rem;
    }
    
    .brand-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
        border-radius: 12px;
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    position: relative;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-list a:hover,
.nav-list .current-menu-item a {
    color: var(--primary-color);
    background-color: var(--gray-50);
}

.nav-list .current-menu-item a {
    font-weight: 600;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle i {
    display: none;
}

.dropdown:hover .dropdown-toggle i {
    display: none;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.dropdown-link:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.dropdown-link i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

@media (min-width: 1024px) {
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-list a {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 1200px) {
    .nav-list {
        gap: 2rem;
    }
    
    .nav-list a {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Search Form */
.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    padding: 0.4rem;
    gap: 0.5rem;
    width: 180px;
    transition: var(--transition);
}

.search-form:focus-within {
    background: transparent;
    border: 1px solid var(--primary-color);
    width: 220px;
}

.search-field {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.search-field::placeholder {
    color: var(--gray-500);
}

/* Убираем все возможные границы и outline у input */
.search-field:focus,
.search-field:active,
.search-field:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Дополнительные селекторы для всех возможных полей поиска */
input[type="search"],
.search-form input,
#search-field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Специфичные правила для WebKit браузеров */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

/* Убираем outline в Firefox */
input[type="search"]::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.search-submit {
    background: var(--primary-color);
    border: none !important;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
}

.search-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.search-submit i {
    font-size: 0.8rem;
}

@media (min-width: 1024px) {
    .search-form {
        width: 200px;
        background: transparent;
    }
    
    .search-form:focus-within {
        width: 250px;
        border: 1px solid var(--primary-color);
        background: transparent;
    }
}
    
    .search-field {
        font-size: 0.9rem;
        padding: 0.25rem 0.75rem;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .search-submit {
        width: 32px;
        height: 32px;
    }
    
    .search-submit i {
        font-size: 0.9rem;
    }
}

/* Dropdown меню */
.menu-primary-container .menu-item-has-children {
    position: relative;
}

.menu-primary-container .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    flex-direction: column;
    gap: 0;
}

.menu-primary-container .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-primary-container .sub-menu a {
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
    display: block;
}

.menu-primary-container .sub-menu a:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

/* Поиск */
.header-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    width: 250px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-submit {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.search-submit:hover {
    color: var(--primary-color);
}

/* Дополнительные правила для убирания двойных границ */
.search-form *,
.search-form *:before,
.search-form *:after {
    box-shadow: none !important;
    outline: none !important;
}

.search-form {
    box-shadow: none !important;
}

.search-field:focus,
.search-field:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.search-submit:focus,
.search-submit:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    z-index: 3;
}

/* Для десктопа - показываем навигацию и поиск */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        flex: 1;
        justify-content: center;
    }
    
    .header-search {
        display: flex !important;
        flex-shrink: 0;
    }
    
    .nav-container {
        justify-content: space-between;
    }
}

.menu-toggle:hover {
    background: var(--gray-100);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   HERO СЕКЦИЯ (ТОЛЬКО ДЛЯ ГЛАВНОЙ)
   ========================================== */

.hero-section {
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(5, 150, 105, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero визуализация */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    position: relative;
}

.packaging-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 300px;
    height: 300px;
}

.package-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-xl);
    font-size: 3rem;
    color: var(--text-white);
    position: relative;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.package-item.box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    animation-delay: 0s;
}

.package-item.bag {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    animation-delay: 0.5s;
}

.package-item.tape {
    background: linear-gradient(135deg, var(--warning-color), #ea580c);
    animation-delay: 1s;
}

.package-item.shield {
    background: linear-gradient(135deg, var(--accent-color), #b91c1c);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* ==========================================
   ОСНОВНОЙ КОНТЕНТ
   ========================================== */

.site-main {
    padding: 2rem 0;
}

.content-area {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.home .site-main {
    padding: 0;
}

/* ==========================================
   ПОСТЫ И СТАТЬИ
   ========================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.post-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.post-thumbnail {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    flex-wrap: wrap;
}

/* ==========================================
   ПАГИНАЦИЯ
   ========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* ==========================================
   ФУТЕР
   ========================================== */

.site-footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

.footer-section h3 {
    color: var(--text-white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-branding {
    max-width: 300px;
}

.footer-branding .site-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-800);
    color: var(--gray-300);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

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

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Footer Links Styles */
.footer-link,
.footer-widgets a,
.footer-content a,
.site-footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover,
.footer-widgets a:hover,
.footer-content a:hover,
.site-footer a:hover {
    color: var(--text-white);
}

/* Footer Lists */
.footer-links,
.footer-widgets ul,
.footer-content ul,
.footer-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-widgets li,
.footer-content li {
    margin-bottom: 0.5rem;
}

.footer-links li:last-child,
.footer-widgets li:last-child,
.footer-content li:last-child {
    margin-bottom: 0;
}

/* Footer Widget Titles */
.footer-title,
.footer-widgets h3,
.footer-content h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer Widget Content */
.footer-widgets .widget,
.footer-section .widget {
    margin-bottom: 0;
}

.footer-widgets .widget-title,
.footer-section .widget-title {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer Contact Items */
.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: var(--font-size-sm);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-link:hover {
    color: var(--text-white);
}

/* ==========================================
   АРХИВЫ
   ========================================== */

.archive-main {
    min-height: 100vh;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.archive-header {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.archive-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.archive-title i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.archive-description,
.author-description,
.tag-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
}

.archive-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

.view-btn:hover,
.view-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.archive-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.posts-count {
    font-weight: 500;
}

/* List View Styles */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.articles-list .article-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.articles-list .article-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
}

.articles-list .article-content {
    flex: 1;
}

.archive-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: var(--font-size-sm);
    margin-bottom: 0.25rem;
}

.popular-post-content a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.popular-post-content a:hover {
    color: var(--primary-color);
}

.popular-post-date {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.category-count {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-left: 0.25rem;
}

.tags-cloud {
    line-height: 1.8;
}

.tags-cloud a {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-100);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.tags-cloud a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.no-posts h3 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* ==========================================
   КНОПКА "НАВЕРХ"
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2.5rem 0;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }

    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex;
    }

    /* Hide desktop navigation and search */
    .nav-menu,
    .header-search {
        display: none !important;
    }

    /* Mobile navigation styles */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        z-index: 999;
        height: auto;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav.is-open .nav-menu,
    .nav.is-open .header-search {
        display: block;
        width: 100%;
    }

    .nav .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .nav .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav .nav-list a {
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
        border-radius: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .nav .search-form {
        min-width: auto;
        width: 100%;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        order: 2;
    }

    .hero-visual {
        order: 1;
        height: 300px;
    }

    .packaging-items {
        width: 250px;
        height: 250px;
        gap: 1rem;
    }

    .package-item {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ==========================================
   УТИЛИТАРНЫЕ КЛАССЫ
   ========================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   WORDPRESS БЛОКИ (GUTENBERG)
   ========================================== */

.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: var(--font-size-lg);
}

.wp-block-separator {
    border: none;
    border-top: 2px solid var(--gray-200);
    margin: 3rem auto;
    width: 100px;
}

.wp-block-button .wp-block-button__link {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.wp-block-button .wp-block-button__link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   SINGLE POST LAYOUT
   ========================================== */

.single-content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin: 2rem 0;
}

.article-main {
    max-width: 100%;
}

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Article Header */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
    text-decoration: none;
}

.category-badge:visited {
    color: white;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* ==========================================
   SINGLE POST LAYOUT
   ========================================== */

.single-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.article-main {
    max-width: 100%;
}

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Article Header */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
    text-decoration: none;
}

.category-badge:visited {
    color: white;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.author-name a:hover {
    color: var(--primary-color);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

/* Featured Image */
.featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.tag {
    background: var(--gray-100);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.share-label {
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.vk { background: #4680C2; }
.share-btn.telegram { background: #0088cc; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.copy { background: var(--gray-600); }

/* Sidebar */
.sidebar-widget {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.recent-post-item,
.related-post-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.recent-post-item:last-child,
.related-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-item h4,
.related-post-item h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.recent-post-item h4 a,
.related-post-item h4 a {
    color: var(--text-primary);
    text-decoration: none;
}

.recent-post-item h4 a:hover,
.related-post-item h4 a:hover {
    color: var(--primary-color);
}

.archive-list,
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list li,
.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.archive-list li:last-child,
.category-list li:last-child {
    border-bottom: none;
}

.archive-list a,
.category-list a {
    color: var(--text-primary);
    text-decoration: none;
}

.archive-list a:hover,
.category-list a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .single-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-sidebar {
        order: -1;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ==========================================
   BREADCRUMBS
   ========================================== */

.breadcrumbs-section {
    background: var(--gray-50);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    margin: 0;
    margin-top: var(--header-height);
    box-sizing: border-box;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================
   SINGLE POST LAYOUT
   ========================================== */

.single-content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin: 2rem 0;
}

.article-main {
    max-width: 100%;
}

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Article Header */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
    text-decoration: none;
}

.category-badge:visited {
    color: white;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.author-name a:hover {
    color: var(--primary-color);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

/* Featured Image */
.featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: var(--gray-50);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--gray-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.tag {
    background: var(--gray-100);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.share-btn.vk {
    background: #4680C2;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.copy {
    background: var(--gray-600);
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-search .search-form {
    margin-bottom: 0;
}

.recent-posts,
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item,
.related-post-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.recent-post-item:last-child,
.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item h4,
.related-post-item h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.recent-post-item h4 a,
.related-post-item h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-item h4 a:hover,
.related-post-item h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.archive-list,
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list li,
.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.archive-list li:last-child,
.category-list li:last-child {
    border-bottom: none;
}

.archive-list a,
.category-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-list a:hover,
.category-list a:hover {
    color: var(--primary-color);
}

/* Table of Contents */
.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.table-of-contents .toc-h3 a {
    padding-left: 1rem;
    font-size: 0.85rem;
}

.table-of-contents .toc-h4 a {
    padding-left: 2rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-content-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .single-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-sidebar {
        order: -1;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .article-stats {
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}