/*
Theme Name: WomanBlog
Theme URI: http://example.com/womanblog
Author: Your Name
Author URI: http://example.com
Description: Современная тема для женского сайта с адаптивным дизайном
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: womanblog
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff69b4;
    --secondary-color: #f8b3d9;
    --accent-color: #4a154b;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-radius: 12px;
}

/* Basic Layout */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Main Layout */
.site-content {
    padding-top: 100px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
}

/* Content Area */
.content-area {
    width: 100%;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 20px; /* Уменьшаем отступ между постами */
    }

    .article-card {
        margin-bottom: 0; /* Убираем лишний отступ снизу */
    }

    .article-thumbnail {
        padding-top: 56.25%; /* Соотношение сторон 16:9 */
    }

    .article-content {
        padding: 20px; /* Уменьшаем внутренние отступы */
    }

    .article-title {
        font-size: 1.3em; /* Уменьшаем размер заголовка */
    }
}

.article-card {
    grid-column: span 1;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.article-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-title a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.post-date, .post-category {
    display: flex;
    align-items: center;
}

.post-date:before {
    content: '📅';
    margin-right: 5px;
}

.post-category:before {
    content: '📂';
    margin-right: 5px;
}

.article-excerpt {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

/* Sidebar */
.sidebar {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    margin-bottom: 35px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
    color: var(--accent-color);
}

/* Widget Posts */
.widget-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.widget-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-post-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.widget-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-post:hover .widget-post-thumbnail img {
    transform: scale(1.1);
}

.widget-post-content {
    flex: 1;
}

.widget-post-content h4 {
    font-size: 1em;
    margin-bottom: 5px;
    line-height: 1.4;
}

.widget-post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.widget-post-content h4 a:hover {
    color: var(--primary-color);
}

.widget-post-content .post-date {
    font-size: 0.85em;
    color: #666;
}

/* Categories List */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.categories-list li:last-child {
    margin-bottom: 0;
}

.categories-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 105, 180, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Стилизация счетчика */
.categories-list .count {
    font-size: 0.85em;
    background: #fff;
    color: var(--primary-color);
    padding: 5px 12px 5px 25px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

/* Иконка статей перед числом */
.categories-list .count:before {
    content: '📝';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
}

/* Эффекты при наведении */
.categories-list a:hover {
    color: var(--primary-color);
    background: rgba(255, 105, 180, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 105, 180, 0.2);
}

.categories-list a:hover .count {
    background: var(--primary-color);
    color: #fff;
    padding-right: 20px;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/* Анимация счетчика при наведении */
.categories-list a:hover .count:after {
    content: 'статей';
    margin-left: 5px;
    font-size: 0.9em;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Разные иконки для разных категорий */
.categories-list li:nth-child(1) .count:before { content: '💪'; } /* Здоровье */
.categories-list li:nth-child(2) .count:before { content: '💄'; } /* Красота */
.categories-list li:nth-child(3) .count:before { content: '👗'; } /* Мода */
.categories-list li:nth-child(4) .count:before { content: '🌴'; } /* Отдых */
.categories-list li:nth-child(5) .count:before { content: '🧠'; } /* Психология */
.categories-list li:nth-child(6) .count:before { content: '👨‍👩‍👧‍👦'; } /* Семья */

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 105, 180, 0.05);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-count {
    background: rgba(255, 105, 180, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.tag-link:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Social Widget */
.social-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.social-widget-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 8px;
}

/* VK стиль */
.social-widget-link:nth-child(1) {
    background: rgba(74, 118, 168, 0.1);
}

.social-widget-link:nth-child(1):hover {
    background: #4a76a8;
    transform: translateY(-3px);
}

/* Instagram стиль */
.social-widget-link:nth-child(2) {
    background: rgba(228, 64, 95, 0.1);
}

.social-widget-link:nth-child(2):hover {
    background: #e4405f;
    transform: translateY(-3px);
}

/* Telegram стиль */
.social-widget-link:nth-child(3) {
    background: rgba(0, 136, 204, 0.1);
}

.social-widget-link:nth-child(3):hover {
    background: #0088cc;
    transform: translateY(-3px);
}

.social-icon {
    font-size: 24px;
    margin: 0;
}

.fa-vk {
    color: #4a76a8;
}

.fa-instagram {
    color: #e4405f;
}

.fa-telegram {
    color: #0088cc;
}

.social-widget-link:hover .social-icon,
.social-widget-link:hover .social-count {
    color: #fff;
}

.social-count {
    color: #666;
    font-weight: 600;
    font-size: 0.95em;
}

/* Pagination */
.pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--secondary-color);
    color: #fff;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--accent-color), #2a0c2c);
    color: #fff;
    padding: 80px 0 40px;
    width: 100%;
    margin-top: 40px;
}

.site-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-widget {
    position: relative;
}

.footer-widget h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05em;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 20px;
}

/* VK стиль */
.social-link[href*="vk"] {
    background: rgba(74, 118, 168, 0.2);
}

.social-link[href*="vk"] i {
    color: #4a76a8;
}

.social-link[href*="vk"]:hover {
    background: #4a76a8;
    transform: translateY(-5px);
}

/* Instagram стиль */
.social-link[href*="instagram"] {
    background: rgba(228, 64, 95, 0.2);
}

.social-link[href*="instagram"] i {
    color: #e4405f;
}

.social-link[href*="instagram"]:hover {
    background: #e4405f;
    transform: translateY(-5px);
}

/* Telegram стиль */
.social-link[href*="telegram"] {
    background: rgba(0, 136, 204, 0.2);
}

.social-link[href*="telegram"] i {
    color: #0088cc;
}

.social-link[href*="telegram"]:hover {
    background: #0088cc;
    transform: translateY(-5px);
}

.social-link:hover i {
    color: #fff;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.3);
}

.newsletter-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 400px;
        margin: 25px auto 0;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.sticky {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: all 0.3s ease;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Стилизованная буква T */
.site-title:before {
    content: 'T';
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

/* Слово Woman */
.site-title span {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Эффекты при наведении */
.custom-logo-link:hover .site-title:before {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

.custom-logo-link:hover .site-title {
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .site-title {
        font-size: 24px;
    }
    
    .site-title:before {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Header Search */
.header-actions {
    display: flex;
    align-items: center;
}

.header-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    padding: 8px 15px;
    padding-right: 40px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 14px;
    width: 200px;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    width: 250px;
}

.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .header-inner {
        padding: 10px 15px;
        height: 60px;
    }

    .custom-logo-link {
        max-width: 150px;
        height: 40px;
    }

    .search-field {
        width: 150px;
    }

    .search-field:focus {
        width: 180px;
    }
}

/* Single Post Layout */
.single .site-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.single .site-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    align-items: start;
}

.single-post {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* Заголовок и мета-информация */
.post-header {
    position: relative;
    margin-bottom: 30px;
}

.featured-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    padding: 30px;
    background: #fff;
    margin-top: -50px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.post-categories {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-categories a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

/* Иконка перед текстом */
.post-categories a:before {
    content: '✨';
    margin-right: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

/* Эффекты при наведении */
.post-categories a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.post-categories a:hover:before {
    transform: rotate(20deg) scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .post-categories {
        flex-wrap: wrap;
    }
    
    .post-categories a {
        padding: 6px 15px;
        font-size: 0.85em;
    }
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    line-height: 1.3;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.post-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-info i {
    color: var(--primary-color);
}

/* Контент статьи */
.post-content {
    padding: 0 40px 40px;
    font-size: 1.1em;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2em 0;
}

.post-content h2,
.post-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin: 1.5em 0 1em;
}

/* Теги */
.post-tags {
    padding: 30px 40px;
    border-top: 1px solid #eee;
    background: var(--light-gray);
}

.tags-title {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: #fff;
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9em;
    text-decoration: none;
    margin: 0 5px 8px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Кнопки поделиться */
.post-share {
    padding: 30px 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.post-share h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-button.vk {
    background: #4a76a8;
}

.share-button.telegram {
    background: #0088cc;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Похожие статьи */
.related-posts {
    padding: 40px;
    background: #fff;
    margin-top: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.related-posts h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post {
    transition: all 0.3s ease;
}

.related-thumbnail {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
}

.related-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-post h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.related-post h4 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.related-post h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    color: #666;
    font-size: 0.9em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .featured-image {
        height: 300px;
    }

    .post-meta {
        padding: 20px;
        margin-top: -30px;
    }

    .post-title {
        font-size: 1.8em;
    }

    .post-info {
        flex-direction: column;
        gap: 10px;
    }

    .post-content {
        padding: 0 20px 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }
}

/* Sidebar for Single Post */
.single .sidebar {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: auto;
}

@media (max-width: 992px) {
    .single .site-main {
        grid-template-columns: 1fr;
    }
    
    .single .sidebar {
        position: static;
        margin-top: 30px;
    }

    .single-post .post-content {
        padding: 20px 30px 30px;
    }
}

@media (max-width: 768px) {
    .single .site-content {
        padding: 80px 15px 30px;
    }
    
    .single .site-main {
        padding: 0 15px;
    }
}

/* Responsive Fixes */
@media (min-width: 1400px) {
    .single .site-content,
    .single .site-main {
        max-width: 1200px;
    }
}

@media (max-width: 1399px) {
    .single .site-content {
        padding: 100px 20px 40px;
    }
}

@media (max-width: 992px) {
    .single .site-main {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .single .sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .single .site-content {
        padding: 80px 15px 30px;
    }
    
    .single-post .post-content {
        padding: 0 20px 20px;
    }
}

/* Popular Posts Widget */
.popular-posts {
    position: relative;
}

/* Общие стили для виджетов */
.widget {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
    color: var(--accent-color);
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .categories-list a {
        padding: 10px 15px;
    }
    
    .tag-cloud {
        gap: 8px;
    }
    
    .tag-cloud a {
        padding: 6px 12px;
        font-size: 0.85em !important;
    }
}

/* Стиль для категории над заголовком */
.post-meta .post-category a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    margin-bottom: 20px;
}

.post-meta .post-category a:before {
    content: '✨';
    margin-right: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.post-meta .post-category a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.post-meta .post-category a:hover:before {
    transform: rotate(20deg) scale(1.2);
}

/* Стиль для ссылки категории в мета-информации */
.article-meta a[href*="category"] {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.article-meta a[href*="category"]:before {
    content: '✨';
    margin-right: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.article-meta a[href*="category"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.article-meta a[href*="category"]:hover:before {
    transform: rotate(20deg) scale(1.2);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .site-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-area {
        width: 100%;
        order: 1; /* Контент первым */
    }

    .sidebar {
        width: 100%;
        order: 2; /* Сайдбар вторым */
        position: static;
        margin-top: 30px;
    }

    .site-content {
        padding: 80px 15px 30px;
    }
}

@media (max-width: 768px) {
    .site-content {
        padding: 70px 15px 20px;
    }

    .single-post {
        margin: 0;
        border-radius: 0;
    }

    .post-content {
        padding: 20px 15px;
    }

    .featured-image {
        border-radius: 0;
    }

    /* Убираем лишние отступы в мобильной версии */
    .site-main {
        gap: 30px;
        margin: 0;
        padding: 0;
    }

    /* Фиксим отображение виджетов */
    .widget {
        margin-bottom: 20px;
        border-radius: var(--border-radius);
    }
} 