/*
Theme Name: EvolveHerMind
Theme URI: https://evolvehermind.com
Description: Полноценная тема для женского журнала о психологии и саморазвитии
Author: EvolveHerMind Team
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evolvehermind
*/

/* ============================================
   ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    --color-primary: #d4a5a5;        /* Нежный розовый */
    --color-secondary: #8b7d7d;      /* Приглушенный серо-коричневый */
    --color-accent: #c89d9d;         /* Акцентный розовый */
    --color-text: #3d3d3d;           /* Темно-серый для текста */
    --color-text-light: #6d6d6d;     /* Светлый серый */
    --color-bg: #faf9f7;             /* Теплый белый фон */
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.15s ease;    /* Быстрые переходы БЕЗ подпрыгиваний */
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    animation: none !important;
    transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease !important;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   ШАПКА САЙТА
   ============================================ */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}

.site-branding {
    text-align: center;
    padding: 1rem 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--color-text);
}

.site-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* ============================================
   HERO ШАПКА
   ============================================ */
.hero-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-categories {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-cat-link {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.hero-cat-link:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.hero-forum-link {
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.hero-forum-link:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   КОНТЕЙНЕР
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   ОСНОВНОЙ МАКЕТ
   ============================================ */
.site-content {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

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

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ============================================
   СТАТЬИ
   ============================================ */
.article {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-thumbnail img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* SINGLE POST - КОМПАКТНО */
.single .article-content {
    padding: 1rem 1.5rem;
}

.single .article-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.single .article-meta {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.entry-content img {
    border-radius: 6px;
    margin: 1.5rem 0;
}

/* ============================================
   САЙДБАР
   ============================================ */
.widget {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

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

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

/* ============================================
   РЕАКЦИИ
   ============================================ */
.post-reactions {
    background: rgba(212, 165, 165, 0.05);
    border: 2px solid rgba(212, 165, 165, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.reactions-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.reactions-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.reaction-button {
    background: var(--color-white);
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.1rem;
}

.reaction-button:hover,
.reaction-button.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.reaction-icon {
    font-size: 1.3rem;
}

/* ============================================
   ПОХОЖИЕ ЗАПИСИ
   ============================================ */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0,0,0,0.08);
}

.related-posts-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.related-grid .article .article-content .article-title {
    font-size: 1.1rem;
}

/* ============================================
   SEO ФУТЕР
   ============================================ */
.seo-footer {
    background: linear-gradient(135deg, #f8f7f5 0%, #faf9f7 100%);
    border-top: 3px solid var(--color-primary);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-primary);
}

/* ============================================
   ФУТЕР
   ============================================ */
.site-footer {
    background: #2d2d2d;
    color: #b8b8b8;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
    .site-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .related-grid,
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ПОПУЛЯРНЫЕ ПОСТЫ В САЙДБАРЕ
   ============================================ */
.popular-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.popular-posts-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    align-items: flex-start;
}

.popular-posts-list li:last-child {
    border-bottom: none !important;
}

.popular-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

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

.popular-post-content {
    flex: 1;
}

.popular-post-content a {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
}

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

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

/* ============================================
   СОЦИАЛЬНЫЕ КНОПКИ ШЕРИНГА
   ============================================ */
.share-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(212, 165, 165, 0.05);
    border-radius: 8px;
    align-items: center;
}

.share-buttons-label {
    font-weight: 600;
    color: var(--color-text-light);
    margin-right: 0.5rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 0.8rem;
    font-weight: 700;
}

.share-button:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   ФОРМА ПОДПИСКИ
   ============================================ */
.newsletter-widget {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
    color: var(--color-white) !important;
    padding: 2rem !important;
    text-align: center;
}

.newsletter-widget .widget-title {
    color: var(--color-white) !important;
    border-bottom-color: rgba(255,255,255,0.3) !important;
}

.newsletter-widget p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: var(--color-white);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input[type="email"] {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.newsletter-form button:hover {
    background: #f5f5f5;
}

/* ============================================
   SEO ФУТЕР УЛУЧШЕННЫЙ
   ============================================ */
.seo-footer-content {
    background: linear-gradient(135deg, #f8f7f5 0%, #faf9f7 100%);
    border-top: 3px solid var(--color-primary);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.seo-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.seo-footer-column h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-primary);
    font-family: var(--font-heading);
}

.seo-footer-column p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.seo-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-footer-links li {
    margin-bottom: 0.8rem;
}

.seo-footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    padding-left: 1.2rem;
}

.seo-footer-links a:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.seo-footer-links a:hover {
    color: var(--color-primary);
    padding-left: 1.5rem;
}

.seo-footer-text {
    margin-bottom: 1.5rem;
}

.seo-footer-keywords {
    background: rgba(212, 165, 165, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}

.seo-footer-keywords small {
    font-size: 0.85rem;
    line-height: 1.6;
}

.seo-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.seo-footer-bottom p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   ВИДЖЕТЫ - ДОПОЛНИТЕЛЬНО
   ============================================ */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: rgba(212, 165, 165, 0.1);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.3rem;
    font-size: 0.9rem !important;
    text-decoration: none;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 1rem 0;
}

.breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
}

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

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

/* ============================================
   ВРЕМЯ ЧТЕНИЯ
   ============================================ */
.reading-time {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.reading-time::before {
    content: "📖 ";
}

/* ============================================
   ССЫЛКИ В КОНТЕНТЕ
   ============================================ */
.entry-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
}

.entry-content a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ============================================
   BLOCKQUOTE
   ============================================ */
.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
    font-size: 1.2rem;
}

/* ============================================
   СПИСКИ В КОНТЕНТЕ
   ============================================ */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

/* ============================================
   FIRST LETTER
   ============================================ */
.single .entry-content > p:first-of-type::first-letter {
    font-size: 4rem;
    line-height: 1;
    float: left;
    margin: 0.1rem 0.8rem 0 0;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: 4px;
    text-decoration: none;
}

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

/* ============================================
   АДАПТИВНОСТЬ МОБИЛЬНАЯ
   ============================================ */
@media (max-width: 768px) {
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .popular-post-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .seo-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-footer-content {
        padding: 3rem 1.5rem 1.5rem;
    }
}

