/*
Theme Name: Yummy
Theme URI: https://yummy.com
Author: Yummy Team
Description: Кулинарный блог с рецептами
Version: 1.0.1
Text Domain: yummy
*/

/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Source+Sans+Pro:wght@400;600;700;900&display=swap');

/* ========== RESET & БАЗА ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #fffef7;
    color: #2c2c2c;
    line-height: 1.6;
    font-weight: 400;
    font-size: 18px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* ========== ЗАГОЛОВКИ ========== */
h1, h2, h3, h4, h5, h6,
.logo,
.hero h1,
.section-title,
.recipe-title,
.feature-card h3,
.testimonial,
.faq-item strong,
.auth-form h2,
.profile-header h1,
.modal-header h3 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2, .section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3, .recipe-title {
    font-weight: 600;
}



/* ========== ГЕРОЙ ========== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/images/fond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    line-height: 1.5;
}

.recipes-hero,
.categories-hero,
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/fond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
}

.recipes-hero h1,
.categories-hero h1,
.blog-hero h1 {
    font-size: 56px;
    color: white;
    margin-bottom: 20px;
}

.recipes-hero p,
.categories-hero p,
.blog-hero p {
    font-size: 20px;
    color: white;
}

@media (max-width: 768px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 44px; }
    .hero p { font-size: 18px; }
    .recipes-hero h1,
    .categories-hero h1,
    .blog-hero h1 { font-size: 36px; }
}

@media (max-width: 480px) {
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    background: #e28c3c;
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c2631b;
    transform: scale(1.02);
}

/* ========== СЕКЦИИ ========== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #2c2c2c;
    letter-spacing: -0.02em;
}

@media (max-width: 820px) {
    .section-title { font-size: 34px; }
}

/* ========== КАРТОЧКИ РЕЦЕПТОВ ========== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
    .recipes-grid { grid-template-columns: 1fr; }
}

.recipe-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
}

.recipe-img {
    height: 220px;
    background: #ecd9c6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.recipe-card:hover .recipe-img img {
    transform: scale(1.05);
}

.recipe-info {
    padding: 20px;
}

.recipe-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.recipe-desc {
    color: #6b5a48;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

/* Кнопки действий на карточке */
.recipe-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
}

.recipe-card-actions .recipe-review-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
    font-family: 'Source Sans Pro', sans-serif;
    white-space: nowrap;
}

.recipe-card-like {
    background: #fff5f0;
    border: 1px solid #ffcdb5;
    color: #e28c3c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
    font-family: 'Source Sans Pro', sans-serif;
    white-space: nowrap;
}

.recipe-card-favorite {
    background: #fffaf0;
    border: 1px solid #f0d8b0;
    color: #b8860b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
    font-family: 'Source Sans Pro', sans-serif;
    white-space: nowrap;
}

.recipe-review-count {
    background: #f0fff0;
    border: 1px solid #b0e0b0;
    color: #28a745;
    margin-left: auto;
}

.recipe-card-like.liked { color: #e28c3c; }
.recipe-card-favorite.favorited { color: #ffc107; }
/* ========== ИКОНКИ ========== */
.icon-heart,
.icon-star,
.icon-cart,
.icon-chat {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-heart { background-image: url('assets/images/icon/heart.png'); }
.icon-star { background-image: url('assets/images/icon/star.png'); }
.icon-cart { background-image: url('assets/images/icon/shopping-cart.png'); }
.icon-chat { background-image: url('assets/images/icon/chat.png'); }

.action-btn .icon-heart,
.action-btn .icon-star,
.action-btn .icon-cart {
    width: 20px;
    height: 20px;
}

.recipe-card-action .icon-heart,
.recipe-card-action .icon-star {
    width: 16px;
    height: 16px;
}

.recipe-review-count .icon-chat {
    width: 14px;
    height: 14px;
    margin-right: 3px;
}

.recipe-card-like.liked .icon-heart {
    filter: brightness(0) saturate(100%) invert(38%) sepia(88%) saturate(1859%) hue-rotate(345deg) brightness(96%) contrast(92%);
}

.recipe-card-favorite.favorited .icon-star {
    filter: brightness(0) saturate(100%) invert(77%) sepia(79%) saturate(672%) hue-rotate(358deg) brightness(102%) contrast(101%);
}

/* ========== ПОИСК ========== */
.search-ingredients {
    background: #fefaf5;
    padding: 30px;
    border-radius: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.search-ingredients h3 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #3a2c1f;
    font-family: 'Playfair Display', serif;
}

.search-ingredients p {
    color: #6b5a48;
    margin-bottom: 25px;
    font-size: 16px;
}

.search-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.search-container {
    display: flex;
    align-items: stretch;
    border-radius: 60px;
    background: white;
    border: 2px solid #e0d0c0;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: #e28c3c;
    box-shadow: 0 0 0 3px rgba(226, 140, 60, 0.1);
}

.search-input-wrapper {
    flex: 1;
}

.search-input-wrapper .search-icon-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 60px 0 0 60px;
    font-size: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    background: transparent;
    outline: none;
}

.search-btn {
    background: #e28c3c;
    border: none;
    padding: 0 28px;
    border-radius: 0 60px 60px 0;
    color: white;
    font-weight: 700;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #c2631b;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 5px;
    overflow: hidden;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0e2d4;
}

.suggestion-item:hover {
    background: #fefaf5;
}

.suggestion-icon {
    font-size: 24px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    color: #2c2c2c;
}

/* ========== КАТЕГОРИИ КРУЖОЧКАМИ ========== */
.categories-circle-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    justify-content: center;
    margin: 30px auto;
    max-width: 800px;
}

.category-circle {
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.category-circle:hover {
    transform: translateY(-5px);
}

.category-circle.active .circle-text {
    box-shadow: 0 0 0 3px #e28c3c;
    transform: scale(1.05);
}

.circle-text {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0e2d4, #e8d5c4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #5e4b34;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    word-break: break-word;
}

.category-circle:hover .circle-text {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e28c3c, #c2631b);
    color: white;
    box-shadow: 0 12px 25px rgba(226, 140, 60, 0.3);
}

/* ========== АДАПТИВ КРУЖОЧКОВ ========== */
@media (max-width: 900px) {
    .categories-circle-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .circle-text {
        width: 100px;
        height: 100px;
        font-size: 14px;
        padding: 12px;
    }
}

@media (max-width: 550px) {
    .categories-circle-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .circle-text {
        width: 85px;
        height: 85px;
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .circle-text {
        width: 75px;
        height: 75px;
        font-size: 11px;
        padding: 8px;
    }
}

/* ========== СТРАНИЦА РЕЦЕПТА ========== */
.recipe-page {
    padding: 40px 0;
}

.recipe-page h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #3a2c1f;
}

.recipe-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e2d4;
    flex-wrap: wrap;
}

.recipe-meta span {
    color: #e28c3c;
    font-weight: 600;
}

.recipe-main-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 40px;
}

.ingredients-list,
.steps-list {
    margin-left: 20px;
}

.ingredients-list li,
.steps-list li {
    margin-bottom: 12px;
}

.recipe-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fefaf5;
    border: 1px solid #e0d0c0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #3a2c1f;
}

.action-btn:hover {
    background: #f0e2d4;
    border-color: #e28c3c;
    transform: translateY(-2px);
}

.like-btn {
    background: #fff5f0;
    border-color: #ffcdb5;
    color: #e28c3c;
}

.like-btn.liked {
    background: #e28c3c;
    color: white;
    border-color: #e28c3c;
}

.favorite-btn {
    background: #fffaf0;
    border-color: #f0d8b0;
    color: #b8860b;
}

.favorite-btn.favorited {
    background: #ffc107;
    color: #2c2c2c;
    border-color: #ffc107;
}

.shopping-btn {
    background: #f0fff0;
    border-color: #b0e0b0;
    color: #28a745;
}

/* ========== ШЕРИНГ ========== */
.share-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #3a2c1f;
}

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

.share-btn {
    background: #f0e2d4;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #e28c3c;
    color: white;
}

.share-vk {
    background: #0077FF;
}

.share-vk:hover {
    background: #0055cc;
    transform: translateY(-2px);
}

.share-ok {
    background: #EE8208;
}

.share-ok:hover {
    background: #c06707;
    transform: translateY(-2px);
}

@media (max-width: 550px) {
    .share-section {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    .share-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* ========== КАЛЬКУЛЯТОР ПОРЦИЙ ========== */
.servings-calculator {
    background: #fefaf5;
    padding: 20px;
    border-radius: 20px;
    margin: 25px 0;
    text-align: center;
}

.servings-control {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
}

.servings-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e28c3c;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.servings-btn:hover {
    background: #c2631b;
    transform: scale(1.05);
}

.servings-count {
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
    display: inline-block;
}

.servings-note {
    font-size: 12px;
    color: #999;
    display: block;
}

/* ========== ПИЩЕВАЯ ЦЕННОСТЬ ========== */
.nutrition-box {
    background: #f9f3ea;
    padding: 20px;
    border-radius: 20px;
    margin: 25px 0;
}

.nutrition-box h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nutrition-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.nutrition-value {
    font-size: 24px;
    font-weight: bold;
    color: #e28c3c;
}

.nutrition-unit {
    font-size: 12px;
    color: #999;
}

@media (max-width: 550px) {
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ========== СТРАНИЦА ДОБАВЛЕНИЯ И РЕДАКТИРОВАНИЯ РЕЦЕПТА ========== */
.add-recipe-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.add-recipe-header h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.add-recipe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    font-size: 15px;
}

.form-field label span {
    color: #e28c3c;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.form-field textarea {
    overflow-y: hidden;
    resize: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #e28c3c;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .add-recipe-page { padding: 15px; }
    .add-recipe-header h1 { font-size: 22px; margin-bottom: 20px; }
    .add-recipe-form { gap: 15px; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }
    .form-field input,
    .form-field select,
    .form-field textarea { padding: 12px; font-size: 16px; }
    .form-buttons { flex-direction: column; gap: 10px; }
    .btn-submit,
    .btn-cancel { width: 100%; }
}

.photo-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: 0.2s;
}

.photo-upload:hover {
    border-color: #e28c3c;
    background: #fefaf5;
}

.photo-preview {
    margin-top: 15px;
}

.photo-preview img {
    max-width: 200px;
    border-radius: 10px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit {
    background: #e28c3c;
    color: white;
}

.btn-submit:hover {
    background: #c2631b;
}

.btn-cancel {
    background: #f0e2d4;
    color: #5e4b34;
}

.btn-cancel:hover {
    background: #e0d0c0;
}

/* ========== ОТЗЫВЫ ========== */
.reviews-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0e2d4;
}

.review-form {
    background: #fefaf5;
    padding: 25px;
    border-radius: 24px;
    margin: 25px 0;
}

.review-input, .review-textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid #e0d0c0;
    border-radius: 50px;
    font-family: inherit;
}

.review-textarea {
    border-radius: 20px;
    resize: vertical;
}

.rating-input {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating span {
    font-size: 24px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating span.selected,
.star-rating span.hover {
    color: #ffc107;
}

.review-item {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid #f0e2d4;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    font-weight: 700;
    color: #e28c3c;
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
}

.review-text {
    color: #4a3a28;
    line-height: 1.5;
}

.review-date {
    font-size: 12px;
    color: #999;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.review-empty {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* ========== ФУТЕР ========== */
.footer {
    background: #1f1b16;
    color: #cfc5b8;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 18px;
}

.footer-col p,
.footer-col a {
    color: #cfc5b8;
    display: block;
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0e2d4;
}

/* ========== АДАПТИВ (ТОЛЬКО ДЛЯ МОБИЛЬНЫХ) ========== */
@media (max-width: 820px) {
    .hero h1 {
        font-size: 38px;
    }
    .section-title {
        font-size: 34px;
    }
    .recipe-page h1 {
        font-size: 32px;
    }
    .recipe-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========== СТРАНИЦА ВХОДА / РЕГИСТРАЦИИ ========== */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0e2d4;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #f0e2d4;
    background: #fefaf5;
}

.auth-tab {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #6b5a48;
    transition: all 0.2s;
    font-family: 'Playfair Display', serif;
}

.auth-tab.active {
    color: #e28c3c;
    background: white;
    border-bottom: 3px solid #e28c3c;
}

.auth-form {
    display: none;
    padding: 40px;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #3a2c1f;
}

.auth-form p {
    color: #6b5a48;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border: 2px solid #f0e2d4;
    border-radius: 16px;
    font-size: 16px;
}

.auth-btn {
    width: 100%;
    background: #e28c3c;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 600px) {
    .auth-container { margin: 30px 20px; }
    .auth-form { padding: 30px 25px; }
    .auth-form h2 { font-size: 24px; }
    .social-buttons { flex-direction: column; gap: 10px; }
}

/* ========== ЛИЧНЫЙ КАБИНЕТ ========== */
.profile-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #fefaf5, #fff);
    border-radius: 40px;
    margin-bottom: 40px;
}

.profile-avatar {
    font-size: 80px;
    background: #f0e2d4;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-header h1 {
    font-size: 32px;
    color: #3a2c1f;
    margin-bottom: 8px;
}

.profile-header p {
    color: #999;
    font-size: 16px;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0e2d4;
    flex-wrap: wrap;
}

.profile-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #6b5a48;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.profile-tab:hover {
    color: #e28c3c;
}

.profile-tab.active {
    color: #e28c3c;
    border-bottom-color: #e28c3c;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.profile-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fefaf5;
    border-radius: 24px;
    font-size: 16px;
}

/* Кнопка добавления рецепта */
.add-recipe-btn {
    display: inline-block;
    margin-bottom: 30px;
    background: #e28c3c;
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.add-recipe-btn:hover {
    background: #c2631b;
    transform: scale(1.02);
}

/* ========== ИЗБРАННОЕ ========== */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.favorite-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0e2d4;
    cursor: pointer;
}

.favorite-list-item:hover {
    transform: translateX(5px);
    border-color: #e28c3c;
}

.favorite-recipe-name {
    font-weight: 600;
}

.remove-favorite-btn {
    background: none;
    border: none;
    color: #e28c3c;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ========== СПИСОК ПОКУПОК ========== */
.shopping-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.shopping-item {
    background: white;
    border: 1px solid #f0e2d4;
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: all 0.3s ease;
}

.shopping-item:hover {
    border-color: #e28c3c;
    transform: translateX(5px);
}

.shopping-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 2;
}

.shopping-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e28c3c;
}

.shopping-item-name {
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
}

.shopping-item-name.checked {
    text-decoration: line-through;
    color: #999;
}

.shopping-item-recipe {
    font-size: 12px;
    color: #999;
    flex: 1;
    text-align: right;
}

.shopping-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.clear-shopping-btn,
.remove-checked-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.clear-shopping-btn {
    background: #6c757d;
    color: white;
}

.clear-shopping-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.remove-checked-btn {
    background: #e28c3c;
    color: white;
}

.remove-checked-btn:hover {
    background: #c2631b;
    transform: translateY(-2px);
}

@media (max-width: 550px) {
    .shopping-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .shopping-item-recipe {
        text-align: left;
        margin-left: 32px;
        width: 100%;
    }
    .shopping-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .clear-shopping-btn,
    .remove-checked-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* ========== НАСТРОЙКИ ПРОФИЛЯ ========== */
.settings-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #f0e2d4;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.settings-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0d0c0;
    border-radius: 12px;
}

.save-settings-btn {
    background: #e28c3c;
    color: white;
    width: 100%;
    margin-bottom: 15px;
}

.logout-btn {
    background: #f0e2d4;
    color: #e28c3c;
    width: 100%;
    text-align: center;
    display: block;
}

/* ========== БЛОГ ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
}

.blog-img {
    height: 220px;
    overflow: hidden;
    background: #ecd9c6;
}

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

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.blog-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    color: #6b5a48;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 15px;
    flex: 1;
}

.blog-btn {
    background: #e28c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: all 0.2s ease;
}

.blog-btn:hover {
    background: #c2631b;
    transform: translateX(5px);
}

.blog-pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fefaf5;
    border-radius: 30px;
    color: #5e4b34;
}

.blog-pagination .current {
    background: #e28c3c;
    color: white;
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ========== СТРАНИЦА СТАТЬИ ========== */
.single-blog {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0;
}

.blog-back {
    margin-bottom: 30px;
}

.back-link {
    color: #e28c3c;
    font-weight: 600;
    transition: 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
    display: inline-block;
}

.blog-single-title {
    font-size: 48px;
    color: #3a2c1f;
    margin-bottom: 20px;
}

.blog-single-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e2d4;
    color: #999;
}

.blog-single-img {
    margin: 30px 0;
}

.blog-single-img img {
    width: 100%;
    border-radius: 20px;
}

.blog-single-content {
    font-size: 18px;
    line-height: 1.8;
    color: #4a3a28;
}

.blog-single-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.blog-single-content h3 {
    font-size: 26px;
    margin: 30px 0 15px;
}

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

.blog-single-content ul,
.blog-single-content ol {
    margin: 20px 0 20px 30px;
}

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

@media (max-width: 550px) {
    .blog-single-title { font-size: 32px; }
    .blog-single-meta { flex-direction: column; gap: 5px; }
}

/* ========== КОММЕНТАРИИ ========== */
.yummy-comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0e2d4;
}

.yummy-comments-title {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    color: #3a2c1f;
    margin-bottom: 30px;
}

.yummy-comments-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.yummy-comment-item {
    display: flex;
    gap: 20px;
    background: #fefaf5;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #f0e2d4;
    transition: all 0.3s ease;
}

.yummy-comment-item:hover {
    border-color: #e28c3c;
    transform: translateX(5px);
}

.yummy-comment-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.yummy-comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e28c3c;
}

.yummy-comment-body {
    flex: 1;
}

.yummy-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.yummy-comment-author {
    font-weight: 700;
    color: #e28c3c;
    font-size: 16px;
}

.yummy-comment-date {
    font-size: 12px;
    color: #999;
}

.yummy-comment-text {
    color: #4a3a28;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .yummy-comment-item { flex-direction: column; gap: 10px; }
    .yummy-comment-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* ========== AJAX КОММЕНТАРИИ ========== */
.ajax-comment-wrapper {
    background: #fefaf5;
    padding: 25px;
    border-radius: 24px;
    margin-top: 30px;
    border: 1px solid #f0e2d4;
}

.comment-ajax-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.comment-ajax-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.comment-ajax-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.ajax-comment-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0d0c0;
    border-radius: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    background: white;
    resize: vertical;
    margin-bottom: 20px;
}

.ajax-comment-textarea:focus {
    outline: none;
    border-color: #e28c3c;
}

.ajax-submit-btn {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ajax-submit-btn:hover {
    background: #c2631b;
    transform: scale(1.02);
}

.ajax-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-login-required {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    color: #5e4b34;
}

.comment-login-required a {
    color: #e28c3c;
    font-weight: 600;
}

/* ========== ПОХОЖИЕ И ПОПУЛЯРНЫЕ ЗАПИСИ ========== */
.related-posts {
    margin: 50px 0 40px;
    padding-top: 30px;
    border-top: 2px solid #f0e2d4;
}

.related-title,
.popular-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #3a2c1f;
    font-family: 'Playfair Display', serif;
}

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

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.3s ease;
}

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

.related-img {
    height: 150px;
    overflow: hidden;
}

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

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-title-small {
    font-size: 16px;
    font-weight: 700;
    padding: 15px 15px 5px;
    margin: 0;
}

.related-date {
    font-size: 12px;
    color: #999;
    padding: 0 15px 15px;
}

.popular-posts {
    margin: 40px 0 50px;
    background: #fefaf5;
    padding: 30px;
    border-radius: 24px;
}

.popular-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    border: 1px solid #f0e2d4;
}

.popular-card:hover {
    transform: translateX(8px);
    border-color: #e28c3c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.popular-number {
    font-size: 32px;
    font-weight: 800;
    color: #e28c3c;
    opacity: 0.5;
    min-width: 50px;
    text-align: center;
}

.popular-content {
    flex: 1;
}

.popular-title-small {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #2c2c2c;
}

.popular-meta {
    font-size: 12px;
    color: #999;
}

@media (max-width: 768px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .popular-card { padding: 12px 15px; }
    .popular-number { font-size: 24px; min-width: 40px; }
    .popular-title-small { font-size: 15px; }
}

@media (max-width: 550px) {
    .related-grid { grid-template-columns: 1fr; }
}

/* ========== КНОПКИ ОТВЕТИТЬ ========== */
.review-reply-btn,
.blog-reply-btn {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 10px;
}

.review-reply-btn:hover,
.blog-reply-btn:hover {
    background: #c2631b;
}

.review-reply-form,
.blog-reply-form {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fefaf5;
    border-radius: 16px;
    border: 1px solid #f0e2d4;
}

.review-reply-form textarea,
.blog-reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0d0c0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.review-reply-form textarea:focus,
.blog-reply-form textarea:focus {
    outline: none;
    border-color: #e28c3c;
}

.review-reply-form .submit-reply-btn,
.blog-reply-form .submit-blog-reply-btn {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 8px;
}

.review-reply-form .submit-reply-btn:hover,
.blog-reply-form .submit-blog-reply-btn:hover {
    background: #c2631b;
}

.review-reply-form .cancel-reply-btn,
.blog-reply-form .cancel-blog-reply-btn {
    background: #f0e2d4;
    color: #5e4b34;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
}

/* ========== ЛИЧНЫЕ СООБЩЕНИЯ ========== */
.messages-container {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f0e2d4;
    min-height: 600px;
}

.messages-sidebar {
    width: 320px;
    border-right: 1px solid #f0e2d4;
    display: flex;
    flex-direction: column;
    background: #fefaf5;
}

.messages-search {
    padding: 15px;
    border-bottom: 1px solid #f0e2d4;
    position: relative;
}

.messages-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0d0c0;
    border-radius: 40px;
    font-size: 15px;
}

.search-results-list {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0e2d4;
}

.search-result-item:hover {
    background: #fefaf5;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0e2d4;
    transition: background 0.2s;
}

.conversation-item:hover {
    background: #fef0e4;
}

.conversation-item.active {
    background: #fef0e4;
}

.conversation-item img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-info {
    flex: 1;
}

.conversation-name {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.conversation-last {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.unread-badge {
    background: #e28c3c;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

.online-badge {
    width: 10px;
    height: 10px;
    background-color: #4caf50;
    border-radius: 50%;
    display: inline-block;
}

.messages-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

/* ШАПКА ЧАТА С ГРУППИРОВКОЙ ИКОНОК */
.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0e2d4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffef7;
    gap: 15px;
    flex-wrap: wrap;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.chat-header-left img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-info a {
    text-decoration: none;
    color: inherit;
}

.chat-user-name {
    font-weight: 700;
    font-size: 20px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Адаптив для телефонов */
@media (max-width: 550px) {
    .chat-header-actions {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .chat-header {
        flex-direction: column;
        align-items: stretch;
    }
    .chat-header-left {
        flex: none;
    }
    .chat-header-actions {
        justify-content: flex-end;
        margin-left: 0;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    background: #fffef7;
}

.message-item {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.message-mine {
    align-self: flex-end;
}

.message-theirs {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-mine .message-bubble {
    background: #e28c3c;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-theirs .message-bubble {
    background: #f0e2d4;
    color: #2c2c2c;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    padding: 0 8px;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid #f0e2d4;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-area textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0d0c0;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border 0.2s;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: #e28c3c;
}

.chat-input-area button {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-end;
    width: auto;
    min-width: 140px;
}

.chat-input-area button:hover {
    background: #c2631b;
}

.chat-placeholder {
    text-align: center;
    color: #999;
    padding: 50px;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

@media (max-width: 768px) {
    .messages-container {
        flex-direction: column;
        min-height: auto;
    }
    .messages-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0e2d4;
        max-height: 300px;
        overflow-y: auto;
    }
    .message-item {
        max-width: 85%;
    }
    .chat-input-area textarea {
        min-height: 60px;
        font-size: 15px;
    }
    .chat-input-area button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
}
    

/* ========== ОНЛАЙН-ИНДИКАТОР ========== */
.online-indicator {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.online-indicator .online-dot {
    position: absolute;
    background-color: #4caf50;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
}

.review-header .online-indicator {
    width: 50px;
    height: 50px;
}
.review-header .online-indicator .online-dot {
    width: 12px;
    height: 12px;
    bottom: 2px;
    right: 2px;
}

.reply-item .online-indicator {
    width: 35px;
    height: 35px;
}
.reply-item .online-indicator .online-dot {
    width: 8px;
    height: 8px;
    bottom: 1px;
    right: 1px;
}

.yummy-comment-avatar.online-indicator {
    width: 60px;
    height: 60px;
}
.yummy-comment-avatar.online-indicator .online-dot {
    width: 14px;
    height: 14px;
    bottom: 3px;
    right: 3px;
}

.author-avatar-wrapper,
.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}
.author-avatar-wrapper .online-dot,
.profile-avatar-wrapper .online-dot {
    width: 16px;
    height: 16px;
    bottom: 5px;
    right: 5px;
}

.current-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}
.current-avatar-wrapper .online-dot {
    width: 14px;
    height: 14px;
    bottom: 3px;
    right: 3px;
}

.online-indicator img,
.author-avatar-wrapper img,
.profile-avatar-wrapper img,
.current-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-wrapper .profile-avatar,
.current-avatar-wrapper .profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f0e2d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #e28c3c;
}

.profile-avatar-wrapper .profile-avatar {
    font-size: 48px;
}
.current-avatar-wrapper .profile-avatar {
    font-size: 40px;
}

@media (max-width: 768px) {
    .author-avatar-wrapper,
    .profile-avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    .current-avatar-wrapper {
        width: 80px;
        height: 80px;
    }
    .author-avatar-wrapper .online-dot,
    .profile-avatar-wrapper .online-dot {
        width: 14px;
        height: 14px;
        bottom: 4px;
        right: 4px;
    }
    .current-avatar-wrapper .online-dot {
        width: 12px;
        height: 12px;
        bottom: 2px;
        right: 2px;
    }
    .review-header .online-indicator .online-dot {
        width: 10px;
        height: 10px;
        bottom: 1px;
        right: 1px;
    }
    .yummy-comment-avatar.online-indicator .online-dot {
        width: 12px;
        height: 12px;
        bottom: 2px;
        right: 2px;
    }
}

/* ========== КНОПКИ В ПРОФИЛЕ АВТОРА ========== */
.author-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.author-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.author-btn-message {
    background: #e28c3c;
    color: white;
}

.author-btn-message:hover {
    background: #c2631b;
    transform: translateY(-2px);
}

.author-btn-ignore {
    background: #f0e2d4;
    color: #5e4b34;
    border: 1px solid #e0d0c0;
}

.author-btn-ignore:hover {
    background: #e0d0c0;
    transform: translateY(-2px);
}

.author-btn-unignore {
    background: #4caf50;
    color: white;
}

.author-btn-unignore:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

@media (max-width: 550px) {
    .author-actions {
        justify-content: center;
    }
    .author-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #fefaf5;
    border: 1px solid #f0e2d4;
    border-radius: 30px;
    color: #5e4b34;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background: #f0e2d4;
    border-color: #e28c3c;
}

.pagination .current {
    background: #e28c3c;
    color: white;
    border-color: #e28c3c;
}

/* ========== РЕЗУЛЬТАТЫ ПОИСКА ========== */
.search-result {
    margin-top: 30px;
    margin-bottom: 40px;
}

.search-result-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #e28c3c;
    text-align: center;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.search-result-card {
    cursor: pointer;
}

.search-result-card .recipe-img {
    height: 220px;
    background: #ecd9c6;
    overflow: hidden;
}

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

.search-result-card:hover .recipe-img img {
    transform: scale(1.05);
}

.search-result-empty {
    text-align: center;
    padding: 50px;
    color: #999;
    background: #fefaf5;
    border-radius: 24px;
    font-size: 18px;
}

@media (max-width: 900px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== ОСТАЛЬНЫЕ ВСПОМОГАТЕЛЬНЫЕ СТИЛИ ========== */
.recipe-meta-small {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    font-size: 13px;
    color: #6b5a48;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recipe-excerpt {
    background: #fefaf5;
    padding: 20px 25px;
    border-radius: 20px;
    margin: 25px 0 30px;
    border-left: 4px solid #e28c3c;
    font-size: 18px;
    line-height: 1.5;
    color: #5e4b34;
}

.article-read-more {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #e28c3c;
}

.article-read-more:hover {
    background: #f0e2d4;
    transform: translateX(3px);
}

.comment-moderated-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #4caf50;
    font-weight: 500;
}

.contact-success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 500px;
    border-left: 4px solid #4caf50;
}

.contact-error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 500px;
    border-left: 4px solid #f44336;
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .profile-avatar-img {
        width: 120px;
        height: 120px;
    }
    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 70px;
    }
}

.ad-block {
    text-align: center;
    margin: 30px 0;
    overflow: hidden;
}

.ad-full-width {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .ad-block {
        margin: 20px 0;
    }
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    color: #999;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-password:hover {
    color: #e28c3c;
}

.sound-toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 30px;
    transition: background 0.2s;
}

.sound-toggle-btn:hover {
    background: #f0e2d4;
}

.notification-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e28c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.review-author-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-date-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-reply-btn {
    margin: 0 !important;
}

/* ========== СТРАНИЦА КОНТАКТОВ ========== */
.contacts-title {
    text-align: center;
    font-size: 42px;
    margin: 40px 0 30px;
    color: #3a2c1f;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contacts-subtitle {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e28c3c;
}

.contact-form-wrapper {
    background: #fefaf5;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid #f0e2d4;
}

.contact-form-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
    color: #3a2c1f;
}

.contact-form-desc {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
}

/* ОТСТУПЫ МЕЖДУ ПОЛЯМИ ФОРМЫ */
.contact-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0d0c0;
    border-radius: 50px;
    font-family: inherit;
    font-size: 16px;
    background: white;
    margin-bottom: 20px;
}

.contact-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0d0c0;
    border-radius: 20px;
    font-family: inherit;
    font-size: 16px;
    background: white;
    resize: vertical;
    margin-bottom: 25px;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: #e28c3c;
}

.contact-submit-btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 25px;
    }
    .contacts-title {
        font-size: 32px;
    }
}



/* ========== МЕНЮ САЙТА (РАБОТАЕТ С WP_NAV_MENU) ========== */

/* Шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #e28c3c, #c2631b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    display: inline-block;
}

/* Бургер-кнопка */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #2c2c2c;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger.active .burger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Меню (выезжает слева) */
.nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.nav.show {
    left: 0;
}

/* Стили для списка меню */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0e2d4;
}

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

.nav-menu a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #e28c3c;
}

/* Затемнение фона */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}


/* Стили для кнопок Редактировать и Удалить в личном кабинете */
#tab-my-recipes .edit-recipe-btn,
#tab-my-recipes .delete-recipe-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 5px 16px !important;
    font-size: 13px !important;
    border-radius: 30px !important;
    text-align: center;
    white-space: nowrap;
    margin: 0 !important;
}

#tab-my-recipes .edit-recipe-btn {
    background: #e28c3c !important;
    color: white !important;
}

#tab-my-recipes .edit-recipe-btn:hover {
    background: #c2631b !important;
    transform: translateY(-2px) !important;
}

#tab-my-recipes .delete-recipe-btn {
    background: #f0e2d4 !important;
    color: #5e4b34 !important;
    border: none;
    cursor: pointer;
}

#tab-my-recipes .delete-recipe-btn:hover {
    background: #e28c3c !important;
    color: white !important;
    transform: translateY(-2px);
}
/* На телефонах кнопки в одну строку с прокруткой */
@media (max-width: 550px) {
    .recipe-card-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .recipe-card-like,
    .edit-recipe-btn,
    .delete-recipe-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Стили для кнопок в сообщении об успехе */
.success-btn {
    display: inline-block;
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.success-btn-green {
    background: #28a745;
    color: white;
}

.success-btn-green:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.success-btn-orange {
    background: #e28c3c;
    color: white;
}

.success-btn-orange:hover {
    background: #c2631b;
    transform: translateY(-2px);
}

/* На телефонах */
@media (max-width: 550px) {
    .success-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* ===== СТИЛИ ДЛЯ КНОПОК В СТАТЬЯХ (ТАКИЕ ЖЕ, КАК В РЕЦЕПТАХ) ===== */
#tab-my-posts .edit-recipe-btn,
#tab-my-posts .delete-recipe-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 5px 16px !important;
    font-size: 13px !important;
    border-radius: 30px !important;
    text-align: center;
    white-space: nowrap;
    margin: 0 !important;
}

#tab-my-posts .edit-recipe-btn {
    background: #e28c3c !important;
    color: white !important;
}

#tab-my-posts .edit-recipe-btn:hover {
    background: #c2631b !important;
    transform: translateY(-2px) !important;
}

#tab-my-posts .delete-recipe-btn {
    background: #f0e2d4 !important;
    color: #5e4b34 !important;
    border: none;
    cursor: pointer;
}

#tab-my-posts .delete-recipe-btn:hover {
    background: #e28c3c !important;
    color: white !important;
    transform: translateY(-2px);
}