/* CSS для форума о еде и кулинарии
   Аппетитная цветовая гамма и стильные элементы */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;500;700&family=Satisfy&display=swap');

/* Основные настройки */
body {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fdf6f0; /* Кремовый фон */
    color: #5d4037; /* Шоколадный цвет текста */
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill-opacity="0.06"><path d="M30,40 C35,30 45,30 50,40 C55,30 65,30 70,40 C75,50 75,60 70,70 C65,80 55,80 50,70 C45,80 35,80 30,70 C25,60 25,50 30,40 Z" fill="%23ff6b6b"/></svg>');
    background-attachment: fixed;
}

/* Контейнер форума */
.wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #f0ded5;
}

/* Шапка форума */
.header {
    background: linear-gradient(135deg, #ff9a8b 0%, #ff6b6b 100%); /* Градиент томатно-красных оттенков */
    padding: 25px;
    color: #ffffff;
    border-bottom: 3px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140" fill-opacity="0.1"><g transform="rotate(10 70 70)"><path d="M30,40 C35,30 45,30 50,40 C55,30 65,30 70,40 C75,50 75,60 70,70 C65,80 55,80 50,70 C45,80 35,80 30,70 C25,60 25,50 30,40 Z" fill="%23ffffff"/></g></svg>');
    opacity: 0.7;
}

.header-logo {
    font-family: 'Satisfy', cursive;
    font-size: 42px;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 10px;
}

.header-logo:before {
    content: "🍽️"; /* Эмодзи столового прибора */
    margin-right: 10px;
}

.header-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-style: italic;
    position: relative;
    opacity: K0.9;
}

/* Навигация и хлебные крошки */
.breadcrumb {
    background-color: #ffffff;
    border-left: 4px solid #ff6b6b; /* Томатно-красная полоса */
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    margin: 20px 15px;
    font-size: 14px;
    color: #5d4037;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.breadcrumb a {
    color: #ff6b6b; /* Томатно-красный */
    font-weight: 500;
}

/* Основной контент */
.content {
    padding: 25px;
}

/* Таблица форумов */
table.forumline {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-bottom: 25px;
}

th, td.th {
    background-color: #fef8f3; /* Светло-кремовый */
    color: #5d4037;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #ff6b6b;
    font-size: 18px;
    letter-spacing: 0.5px;
}

td {
    padding: 18px 20px;
    vertical-align: middle;
    background-color: #ffffff;
}

/* Строки таблицы */
.row, .row1 {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.row:hover, .row1:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.row2 {
    background-color: #fef8f3; /* Светло-кремовый */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.row2:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.row3 {
    background-color: #fff5f5; /* Светло-розовый */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.row3:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Иконки категорий форума */
.forum-icon {
    width: 55px;
    height: 55px;
    float: left;
    margin-right: 15px;
    background-color: #fef8f3;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    font-size: 28px; 
    color: #ff6b6b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    border: 2px solid #f0e5dc;
}

.forum-row {
    display: flex;
    align-items: center;
}

.forum-info {
    flex-grow: 1;
}

.forum-title {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 7px;
    color: #5d4037; /* Шоколадный */
}

.forum-description {
    color: #8d6e63; /* Теплый коричневый */
    font-size: 14px;
    line-height: 1.5;
}

/* Темы и сообщения */
.topic-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: normal;
}

.topic-title a {
    color: #ff6b6b; /* Томатно-красный */
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.topic-title a:hover {
    color: #e25252;
    border-bottom: 1px solid #e25252;
}

.topic-statistic {
    color: #8d6e63;
    font-size: 13px;
    margin-top: 5px;
}

.topic-last-post {
    font-size: 13px;
    color: #8d6e63;
}

/* Сообщения */
.postbody {
    color: #5d4037;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.post-header {
    background-color: #fef8f3; /* Светло-кремовый */
    padding: 15px 20px;
    border-bottom: 1px solid #f0e5dc;
    font-size: 14px;
    color: #8d6e63;
    border-radius: 8px 8px 0 0;
}

.post-content {
    padding: 25px;
    background-color: #ffffff;
}

.post-footer {
    font-size: 13px;
    color: #8d6e63;
    padding: 15px 20px;
    background-color: #fef8f3;
    border-top: 1px solid #f0e5dc;
    border-radius: 0 0 8px 8px;
}

/* Пользовательская панель */
.user-panel {
    background-color: #ffffff;
    border: 1px solid #f0e5dc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.username {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #5d4037;
    font-size: 18px;
}

.user-avatar {
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    border: 3px solid #f0e5dc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: #ff6b6b;
}

.user-info {
    color: #8d6e63;
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.6;
}

/* Цитаты и код */
.quote {
    background-color: #fef8f3;
    border-left: 4px solid #ff6b6b;
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    margin: 20px 0;
    color: #5d4037;
    font-style: italic;
    position: relative;
}

.quote:before {
    content: """;
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    color: rgba(255, 107, 107, 0.1);
    position: absolute;
    top: -15px;
    left: 5px;
}

.code {
    background-color: #f9f9f9;
    border: 1px solid #f0e5dc;
    border-radius: 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    padding: 18px;
    margin: 20px 0;
    overflow-x: auto;
    color: #5d4037;
}

/* Ссылки */
a {
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #e25252;
    text-decoration: none;
}

a:visited {
    color: #d44d4d;
}

/* Кнопки */
.button {
    display: inline-block;
    background-color: #ff6b6b;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #e25252;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    color: #ffffff;
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

.button-secondary {
    background-color: #fef8f3;
    color: #ff6b6b;
    border: 1px solid #f0e5dc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.button-secondary:hover {
    background-color: #f0e5dc;
    color: #e25252;
    border-color: #e25252;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

/* Статусы */
.status-new {
    color: #4caf50; /* Зеленый */
    font-weight: 600;
    font-size: 13px;
}

.status-new:before {
    content: "✨ ";
}

.status-hot {
    color: #ff6b6b; /* Томатно-красный */
    font-weight: 600;
    font-size: 13px;
}

.status-hot:before {
    content: "🔥 ";
}

.status-closed {
    color: #9e9e9e;
    font-size: 13px;
}

.status-closed:before {
    content: "🔒 ";
}

.status-sticky {
    color: #ff9800; /* Оранжевый */
    font-weight: 600;
    font-size: 13px;
}

.status-sticky:before {
    content: "📌 ";
}

/* Специфические элементы для форума о еде */
.category-recipes:before {
    content: "📝";
    margin-right: 8px;
    font-size: 20px;
}

.category-cuisine:before {
    content: "🌍";
    margin-right: 8px;
    font-size: 20px;
}

.category-baking:before {
    content: "🍞";
    margin-right: 8px;
    font-size: 20px;
}

.category-desserts:before {
    content: "🍰";
    margin-right: 8px;
    font-size: 20px;
}

.category-drinks:before {
    content: "🍹";
    margin-right: 8px;
    font-size: 20px;
}

.category-equipment:before {
    content: "🍳";
    margin-right: 8px;
    font-size: 20px;
}

.category-healthy:before {
    content: "🥗";
    margin-right: 8px;
    font-size: 20px;
}

.category-restaurants:before {
    content: "🍽️";
    margin-right: 8px;
    font-size: 20px;
}

/* Статистика форума */
.stats-panel {
    background-color: #ffffff;
    border: 1px solid #f0e5dc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #8d6e63;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.stats-title {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 18px;
    color: #5d4037;
    border-bottom: 1px solid #f0e5dc;
    padding-bottom: 10px;
}

/* Подвал форума */
.footer {
    background: linear-gradient(135deg, #fef8f3 0%, #fde9df 100%);
    padding: 30px;
    border-radius: 0 0 12px 12px;
    font-size: 14px;
    text-align: center;
    color: #8d6e63;
    position: relative;
}

.footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9a8b, #ff6b6b, #ff9a8b);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #f0e5dc;
    background-color: #ffffff;
    color: #ff6b6b;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
}

.pagination span.current {
    background-color: #ff6b6b;
    color: #ffffff;
    border-color: #ff6b6b;
}

.pagination a:hover {
    background-color: #fef8f3;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

/* Уведомления */
.notification {
    padding: 18px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-size: 15px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.notification-info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-left: 4px solid #2196f3;
}

.notification-info:before {
    content: "ℹ️ ";
}

.notification-success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #4caf50;
}

.notification-success:before {
    content: "✅ ";
}

.notification-warning {
    background-color: #fff8e1;
    color: #ff8f00;
    border-left: 4px solid #ffc107;
}

.notification-warning:before {
    content: "⚠️ ";
}

.notification-error {
    background-color: #ffebee;
    color: #b71c1c;
    border-left: 4px solid #f44336;
}

.notification-error:before {
    content: "❌ ";
}

/* Декоративные элементы */
.section-header {
    position: relative;
    margin: 30px 0 25px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    color: #5d4037;
    font-size: 28px;
    position: relative;
    margin: 0;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff9a8b, #ff6b6b);
}

/* Рецепт форматирование */
.recipe-card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #f0e5dc;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.recipe-image {
    height: 200px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recipe-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff6b6b;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recipe-content {
    padding: 20px;
}

.recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #5d4037;
    margin-bottom: 10px;
}

.recipe-meta {
    display: flex;
    margin-bottom: 15px;
    color: #8d6e63;
    font-size: 13px;
}

.recipe-meta div {
    margin-right: 15px;
}

.recipe-meta div:before {
    margin-right: 5px;
    opacity: 0.7;
}

.recipe-time:before {
    content: "⏱️";
}

.recipe-difficulty:before {
    content: "📊";
}

.recipe-servings:before {
    content: "👥";
}

.recipe-description {
    color: #5d4037;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.recipe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0e5dc;
    padding-top: 15px;
    margin-top: 15px;
}

.recipe-rating {
    color: #ff9800;
    font-size: 14px;
}

.recipe-comments {
    color: #8d6e63;
    font-size: 13px;
}

.recipe-comments:before {
    content: "💬 ";
    opacity: 0.7;
}

/* Список ингредиентов */
.ingredients-list {
    background-color: #fef8f3;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.ingredients-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #5d4037;
    margin-bottom: 15px;
    border-bottom: 1px dashed #f0e5dc;
    padding-bottom: 10px;
}

.ingredients-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #f0e5dc;
    display: flex;
    align-items: center;
}

.ingredients-list li:before {
    content: "•";
    color: #ff6b6b;
    margin-right: 10px;
    font-size: 20px;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

/* Шаги приготовления */
.cooking-steps {
    counter-reset: step-counter;
    margin: 25px 0;
}

.step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.step:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background: #ff6b6b;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #5d4037;
    margin-bottom: 10px;
}

.step-content {
    color: #5d4037;
    line-height: 1.7;
}

/* Теги рецептов */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

.recipe-tag {
    background-color: #fef8f3;
    border: 1px solid #f0e5dc;
    border-radius: 20px;
    padding: 5px 12px;
    margin: 0 8px 8px 0;
    font-size: 12px;
    color: #8d6e63;
    transition: all 0.2s ease;
}

.recipe-tag:hover {
    background-color: #ff6b6b;
    color: #ffffff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

/* Эффекты при наведении */
.forum-title:hover {
    color: #ff6b6b;
    transition: color 0.2s ease;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    body {
        padding: 10px;
        max-width: 100%;
    }
    
    .header-logo {
        font-size: 32px;
    }
    
    th, td {
        padding: 12px 15px;
    }
    
    .forum-icon {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 22px;
    }
    
    .forum-title {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .recipe-image {
        height: 160px;
    }
}

/* Анимации для элементов */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Загрузчики изображений */
.image-placeholder {
    background: linear-gradient(90deg, #f0e5dc, #f9f1ec, #f0e5dc);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    height: 200px;
}

@keyframes loading {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Значки рейтинга */
.star-rating {
    color: #ffc107;
    font-size: 16px;
}

.star-rating .star {
    display: inline-block;
}

.star-rating .star.filled:before {
    content: "★";
}

.star-rating .star.empty:before {
    content: "☆";
}

/* Элементы кулинарного календаря */
.calendar-event {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 15px;
    border-left: 4px solid #ff6b6b;
}

.calendar-date {
    width: 50px;
    height: 50px;
    background-color: #ff6b6b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
}

.calendar-day {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.calendar-month {
    font-size: 12px;
    text-transform: uppercase;
}

.calendar-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #5d4037;
    margin-bottom: