:root {
    --primary-color: #D95D79; /* Watermelon Pink */
    --secondary-color: #F2C2C9; /* Light Pink */
    --text-color: #333;
    --background-color: #FEFBFB;
    --card-background: #FFFFFF;
    --border-color: #EAEAEA;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c84a66;
    text-decoration: none;
}

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

a:hover {
    text-decoration: underline;
}

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

/* Header */
header {
    background: var(--card-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-style: italic;
    color: var(--text-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu li:hover > a::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-background);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content a::after {
    display: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('hero-image.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
}

/* General Section Styling */
.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

section {
    padding: 40px 0;
}

/* Featured Posts */
.featured-posts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.featured-main, .featured-secondary {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.featured-main a, .featured-secondary a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-main img, .featured-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-main:hover img, .featured-secondary:hover img {
    transform: scale(1.05);
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    text-decoration: none;
}

.featured-content .category {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.featured-content h3 {
    font-family: var(--heading-font);
    margin-top: 10px;
    font-size: 1.6rem;
    line-height: 1.2;
}

.featured-secondary .featured-content h3 {
    font-size: 1.1rem;
}

/* Trend/Inspiration Section */
.trend-inspiration {
    background-color: var(--card-background);
}

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

.trend-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 350px;
}

.trend-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.trend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.trend-overlay h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Beauty Highlight Section */
.beauty-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.highlight-image img {
    border-radius: 8px;
    width: 100%;
}

.highlight-content .section-title {
    text-align: left;
    margin-bottom: 15px;
}

.highlight-content h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 15px;
}

.highlight-content p {
    margin-bottom: 25px;
}

/* Lookbook Section */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.lookbook-item img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Stories Section */
.user-stories {
    background-color: var(--secondary-color);
}
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.story-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.story-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}
.story-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}
.story-card h4 {
    font-weight: bold;
    color: var(--primary-color);
}

/* Partners Section */
.partners {
    background-color: var(--card-background);
}
.partner-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.partner-logos img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.posts {
    flex: 3;
}

.posts h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card .category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.post-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #666;
}

.read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    flex: 1;
    position: sticky;
    top: 100px; /* Adjust based on header height */
    align-self: flex-start;
}

.widget {
    background: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.widget h3 {
    font-family: var(--heading-font);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

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

.about-me img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
}

.widget-posts ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-posts li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}

.widget-posts li a:hover span {
    color: var(--primary-color);
    text-decoration: underline;
}

.widget-posts img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.widget-posts span {
    font-size: 0.9rem;
    line-height: 1.3;
}

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

.toc-widget ul a {
    color: var(--text-color);
    padding: 5px 0;
    display: block;
}

.toc-widget ul a:hover {
    color: var(--primary-color);
}

.toc-level-h4 {
    padding-left: 20px;
    font-size: 0.9em;
}

.categories ul {
    list-style: none;
}

.categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.categories li:last-child {
    border-bottom: none;
}

.categories a {
    color: var(--text-color);
    font-weight: 700;
}

/* Single Post Page */
.post-full {
    flex: 3;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.post-full-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-full-header .category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-full-header h1 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-meta {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
}

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

.rating .fa-star, .rating .fa-star-half-alt {
    color: #FFC107;
}

.post-full-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.post-full-content p {
    margin-bottom: 1.5em;
}

.post-full-content h2,
.post-full-content h3,
.post-full-content h4 {
    font-family: var(--heading-font);
    margin-top: 2em;
    margin-bottom: 1em;
}

.post-full-content h2 { font-size: 2rem; }
.post-full-content h3 { font-size: 1.7rem; }
.post-full-content h4 { font-size: 1.4rem; }

.post-full-content ul {
    list-style-position: inside;
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.post-full-content li {
    margin-bottom: 0.5em;
}

.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-posts h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.related-posts .post-card-content {
    padding: 15px;
}
.related-posts .post-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}
.related-posts .post-card .category {
    font-size: 0.7rem;
    padding: 4px 8px;
    margin-bottom: 8px;
}
.related-posts .post-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comments-section h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}


/* Footer */
footer {
    background: #2b2b2b;
    color: #f0f0f0;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column h4, .footer-column h3 a {
    color: white;
    font-family: var(--heading-font);
    margin-bottom: 20px;
    text-decoration: none;
}
.footer-column h3 a {
    font-size: 1.8rem;
    font-style: italic;
}

.footer-column p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-column.about p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    background-color: #444;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-column.links ul {
    list-style: none;
}
.footer-column.links li {
    margin-bottom: 10px;
}
.footer-column.links a {
    color: #ccc;
    text-decoration: none;
}
.footer-column.links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-column.newsletter form {
    display: flex;
    margin-top: 10px;
}
.footer-column.newsletter input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px 0 0 5px;
    background: #444;
    color: white;
}
.footer-column.newsletter button {
    border-radius: 0 5px 5px 0;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin: 0;
    color: #aaa;
}
.footer-bottom a {
    color: #ccc;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 2000;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

.cookie-consent-banner.active {
    transform: translateY(0);
}

.cookie-consent-banner p {
    margin: 0;
    font-size: 0.9rem;
}
.cookie-consent-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.cookie-consent-banner .btn {
    flex-shrink: 0;
}


/* Responsive */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        position: static;
        top: auto;
    }
    .featured-posts, .beauty-highlight, .stories-grid {
        grid-template-columns: 1fr;
    }
    .trend-grid, .lookbook-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .highlight-content .section-title {
        text-align: center;
    }
    .beauty-highlight {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-background);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    .nav-menu a {
        padding: 15px;
        display: block;
        width: 100%;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        padding-left: 30px;
        background-color: #f9f9f9;
    }
    .dropdown > a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .trend-grid {
        grid-template-columns: 1fr;
    }
    .footer-column.newsletter form {
        flex-direction: column;
        gap: 10px;
    }
    .footer-column.newsletter input,
    .footer-column.newsletter button {
        border-radius: 5px;
    }
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}
/* --- Стили для виджета рейтинга (ФИНАЛЬНАЯ ВЕРСИЯ 4.1 - Упрощенная) --- */
.rating-widget-fa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative; /* Важно для наложения */
}

.rating-display {
    color: #ffc107; /* Цвет закрашенных звезд */
    font-size: 1.2em; /* Размер звезд */
    white-space: nowrap;
}
.rating-display .fa-regular.fa-star {
    color: #ddd; /* Цвет пустых звезд */
}

.rating-interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse; /* Магия для hover */
    justify-content: center;
    align-items: center;
}

.rating-interactive-overlay i {
    flex: 1;
    font-size: 1.2em; /* Размер звезд должен совпадать */
    color: transparent; /* Сами иконки невидимы, они просто перехватывают события */
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

/* Эффект при наведении */
.rating-interactive-overlay:hover i {
    color: rgba(255, 193, 7, 0.5); /* Полупрозрачный желтый */
}
.rating-interactive-overlay i:hover,
.rating-interactive-overlay i:hover ~ i {
    color: #ffc107; /* Ярко-желтый */
    transform: scale(1.1);
}

.rating-info-text {
    font-size: 0.9em;
    color: #666;
}

.rating-feedback-fa {
    margin-left: 10px;
    font-weight: bold;
    font-size: 0.9em;
}
.rating-feedback-fa.success { color: #28a745; }
.rating-feedback-fa.error { color: #dc3545; }