/*
Theme Name: True Woman
Theme URI: https://true-woman.ru
Author: True Woman Team
Author URI: https://true-woman.ru
Description: Современная и красивая тема для женского портала в стиле woman.ru. Включает адаптивный дизайн, множество виджетов и современный функционал.
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: true-woman
Tags: blog, news, magazine, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e91e63;
    --secondary-color: #ff4081;
    --accent-color: #9c27b0;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

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

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    background-color: var(--bg-white);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

/* ===================================
   Header Styles
   =================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    font-size: 14px;
}

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

.header-info {
    display: flex;
    gap: 20px;
}

.header-social a {
    color: white;
    margin-left: 15px;
    opacity: 0.8;
    transition: var(--transition);
}

.header-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.header-main {
    padding: 20px 0;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.site-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title-styled a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: white;
    text-decoration: none;
}

.logo-true {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #ffd4e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-woman {
    font-size: 42px;
    font-weight: 300;
    color: white;
    letter-spacing: 4px;
    font-style: italic;
    position: relative;
}

.logo-woman::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ff4081 50%, transparent 100%);
}

.site-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
}

.header-search {
    flex: 0 0 300px;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--secondary-color);
}

/* ===================================
   Navigation Menu
   =================================== */
.main-navigation {
    background-color: rgba(0, 0, 0, 0.2);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 18px;
    color: white;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.15);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
}

.main-navigation .sub-menu li {
    border-bottom: 1px solid var(--border-color);
}

.main-navigation .sub-menu a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-transform: none;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

/* ===================================
   Content Area
   =================================== */
.content-area {
    padding: 40px 0;
}

.site-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ===================================
   Posts Grid
   =================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%;
}

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

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

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.post-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.read-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    color: white;
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    position: sticky;
    top: 20px;
}

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

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-dark);
}

.widget ul {
    list-style: none;
}

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

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

.widget ul li a {
    color: var(--text-dark);
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.popular-post-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

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

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

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

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

/* ===================================
   Single Post
   =================================== */
.single-post-header {
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.single-post-meta {
    display: flex;
    gap: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.single-post-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    font-size: 17px;
}

.single-post-content h2,
.single-post-content h3 {
    margin: 30px 0 20px 0;
    color: var(--text-dark);
}

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

.single-post-content img {
    margin: 30px 0;
    border-radius: 10px;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.footer-widget ul li {
    padding: 8px 0;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .site-main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }

    .header-search {
        flex: 1;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        padding: 12px 20px;
    }

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

    .single-post-title {
        font-size: 28px;
    }

    .single-post-content {
        padding: 25px;
        font-size: 16px;
    }

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

@media (max-width: 480px) {
    .site-title {
        font-size: 24px;
    }

    .header-top {
        display: none;
    }

    .post-content {
        padding: 15px;
    }

    .widget {
        padding: 20px;
    }
}

/* ===================================
   Pagination
   =================================== */
.pagination {
    margin: 50px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 12px 18px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

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

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.pagination .prev,
.pagination .next {
    padding: 12px 20px;
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}
