/*
Theme Name: iPad Insider
Description: ipad-insider.ru с современным дизайном
Version: 1.0
Author: iPad Insider Team
Text Domain: ipad-insider
*/

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Улучшение производительности */
.news-item,
.article-item,
.widget,
.mobile-menu-overlay {
    will-change: transform;
}

/* Предзагрузка критических ресурсов */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Оптимизация анимаций */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Хедер */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

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

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    z-index: 1001;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 122, 255, 0.3));
}

.site-logo:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 4px 16px rgba(0, 122, 255, 0.5));
}

.site-logo svg {
    height: 45px;
    width: auto;
    max-width: 200px;
    filter: brightness(1.1);
}

.site-logo a {
    display: block;
    text-decoration: none;
}

/* Главное меню */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

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

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 999;
    transition: right 0.3s ease;
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 20px;
}

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

.mobile-menu-list li {
    margin-bottom: 15px;
}

.mobile-menu-list a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px 20px;
    display: block;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-list a:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Красивая полоса под хедером */
.header-stripe {
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Основной контент */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.content-area {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Полноширинный рекламный блок */
.full-width-ad {
    width: 100%;
    background: transparent;
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.full-width-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="hexagon" width="60" height="60" patternUnits="userSpaceOnUse"><polygon points="30,5 50,20 50,40 30,55 10,40 10,20" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="60" height="60" fill="url(%23hexagon)"/></svg>') repeat;
    pointer-events: none;
}

.full-width-ad .widget {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.full-width-ad .widget-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.full-width-ad .ad-placeholder {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.full-width-ad .ad-placeholder:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    color: #495057;
}

.full-width-ad .ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* Плитка новостей */
.news-section {
    margin: 30px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.news-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover::before {
    opacity: 1;
}

.news-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: transform 0.4s ease;
}

.news-item:hover .news-placeholder {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    position: relative;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: #3498db;
}

.news-excerpt {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #95a5a6;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
    margin-top: 15px;
}

.news-date {
    font-weight: 500;
}

.read-more-btn {
    background: linear-gradient(135deg, #007aff, #34c759);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056d3, #2fb344);
}

/* Блок последних статей */
.latest-articles {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}

.latest-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23000" opacity="0.02"/><circle cx="40" cy="60" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.latest-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.latest-articles h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.article-list {
    list-style: none;
}

.article-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.article-item:hover::before {
    opacity: 1;
}

.article-item:last-child {
    border-bottom: none;
}

.article-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.article-info h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.article-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info h3 a:hover {
    color: #3498db;
}

.article-item p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #95a5a6;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}

.article-date {
    font-size: 0.8rem;
    color: #95a5a6;
    font-weight: 500;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

/* Сайдбар */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 300px;
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sidebar h3 {
    font-size: 1.4em;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.sidebar h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007AFF, #34C759, #FF9500);
}

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

.sidebar li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.sidebar li:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(52, 199, 89, 0.05) 100%);
    transform: translateX(4px);
}

.sidebar a {
    color: #333;
    text-decoration: none;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #007AFF 0%, #34C759 100%);
    transition: width 0.3s ease;
}

.sidebar a:hover {
    color: #007AFF;
    padding-left: 36px;
}

.sidebar a:hover::before {
    width: 4px;
}

.sidebar .post-count {
    background: linear-gradient(135deg, #007AFF 0%, #34C759 100%);
    color: white;
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
}

.sidebar li:hover .post-count {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

/* Все иконки категорий удалены */

/* Скрываем числа в скобках */
.sidebar li,
.category-menu li {
    position: relative;
    overflow: hidden;
}

.sidebar a,
.category-menu a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.sidebar li::after,
.category-menu li::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, white 20%, white);
    pointer-events: none;
    z-index: 2;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.sidebar-widget .widget {
    padding: 25px;
}

.widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Рекламный блок в сайдбаре */
.ad-widget .ad-placeholder-sidebar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.ad-widget .ad-placeholder-sidebar:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
}

.sidebar-ad {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Меню в сайдбаре */
.sidebar-menu,
.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul,
.category-menu ul {
    list-style: none;
}

.sidebar-menu li,
.category-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a,
.category-menu a {
    color: #2c3e50;
    text-decoration: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Иконки категорий убраны */

/* Убираем анимационные эффекты псевдоэлементов */

.sidebar-menu a:hover,
.category-menu a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Анимационные эффекты убраны */

/* Скрытие чисел в скобках в виджетах категорий */
.widget_categories .cat-item .count,
.widget_archive .count,
.count,
.post-count,
.sidebar .count,
.category-menu .count,
.sidebar a .count,
.sidebar li .count {
    display: none !important;
}

/* Убираем все иконки из меню */
.widget_categories .cat-item a::before,
.category-menu a::before,
.sidebar a::before,
.sidebar a::after,
.category-menu a::after {
    display: none !important;
    content: none !important;
}

/* Все иконки категорий удалены */

.widget_categories .cat-item a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.widget_categories .cat-item a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(3px);
}

/* Популярные статьи */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.popular-item:hover {
    background: #e9ecef;
    border-left-color: #667eea;
    transform: translateX(3px);
}

.popular-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
}

.popular-placeholder svg {
    width: 100%;
    height: 100%;
}

.popular-item:hover .popular-thumb img {
    transform: scale(1.1);
}

.popular-content {
    flex: 1;
    min-width: 0;
}

.popular-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.popular-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-content h4 a:hover {
    color: #667eea;
}

.popular-date {
    font-size: 0.75rem;
    color: #95a5a6;
    font-weight: 500;
}

.popular-views {
    font-size: 0.75rem;
    color: #3498db;
    font-weight: 500;
    margin-left: 8px;
}

.no-posts {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

.popular-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

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

.popular-post h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.popular-post .post-date {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Футер */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content .copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-content .heart {
    color: #e74c3c;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Стили для single.php */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.single-content {
    flex: 1;
    max-width: 100%;
}

.single-post {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-header {
    margin-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.breadcrumb a {
    color: #007AFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .separator {
    color: #ccc;
    font-weight: 300;
}

.breadcrumb .current {
    color: #999;
    font-weight: 500;
}

.post-title {
    font-size: 2.5em;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f5f5f5;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.meta-item svg {
    flex-shrink: 0;
}

.post-date {
    color: #007AFF;
}

.post-category {
    color: #34C759;
}

.reading-time {
    color: #FF9500;
}

.post-thumbnail {
    margin-bottom: 40px;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

.post-content {
    font-size: 1.15em;
    line-height: 1.8;
    color: #2c2c2c;
    margin-bottom: 40px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2,
.post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.post-content h2 {
    font-size: 1.6em;
    border-left: 4px solid #007AFF;
    padding-left: 16px;
}

.post-content h3 {
    font-size: 1.3em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007AFF;
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-footer {
    border-top: 2px solid #f5f5f5;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-tags svg {
    flex-shrink: 0;
}

.tags-label {
    font-weight: 600;
    color: #667eea;
    margin-right: 8px;
}

.post-tags a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.post-tags a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.share-btn.twitter {
    background: #1DA1F2;
}

/* No Post Found */
.no-post {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-post svg {
    margin-bottom: 24px;
    opacity: 0.6;
}

.no-post h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 16px;
    font-weight: 700;
}

.no-post p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-home {
    display: inline-block;
    background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .single-content {
        max-width: 100%;
    }
    
    .sidebar {
        order: -1;
        margin-bottom: 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Похожие статьи */
.related-posts {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    position: relative;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007aff;
}

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

.related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image {
    transform: scale(1.05);
}

.related-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:hover .related-placeholder {
    background: #e9ecef;
    border-color: #007aff;
}

.related-content {
    padding: 20px;
}

.related-post-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-title a:hover {
    color: #007aff;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-date {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Адаптивность для похожих статей */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-posts {
        margin-top: 30px;
        padding: 20px;
    }
    
    .related-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-thumbnail {
        height: 180px;
    }
    
    .related-content {
        padding: 15px;
    }
    
    .related-post-title {
        font-size: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    /* Single post адаптивность */
    .content-wrapper {
        flex-direction: column;
        margin: 20px 0;
    }
    
    .single-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .hamburger {
        width: 25px;
        height: 3px;
        background: #333;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: #333;
        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 {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .site-logo {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .widget {
        margin-bottom: 25px;
    }
    
    .popular-posts-item {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-posts-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
    
    /* Показать мобильное меню */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
    
    /* Анимация гамбургера */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .news-item,
    .article-item {
        padding: 15px;
    }
    
    .news-title,
    .article-title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .ad-widget {
        padding: 20px;
    }
    
    .sidebar {
        padding: 15px;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
    
    .site-footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        font-size: 0.9rem;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .latest-articles {
        padding: 20px;
    }
    
    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        height: 120px;
    }
}