﻿/* ===== ФОРУМ О ПРАВИЛЬНОМ ПИТАНИИ И ЗДОРОВЬЕ ===== */
/* Свежий, натуральный дизайн с акцентами зелёного, оранжевого и бежевого */

/* ---- Основной фон (свежий и лёгкий) ---- */
body {
    background-color: #f8fdf6; /* Очень светлый зелёный фон */
    scrollbar-face-color: #4CAF50; /* Свежий зелёный */
    scrollbar-highlight-color: #e8f5e9; /* Светло-зелёный */
    scrollbar-shadow-color: #f8fdf6;
    scrollbar-3dlight-color: #f1f8e9; /* Светлый зелёно-бежевый */
    scrollbar-arrow-color: #388E3C; /* Тёмно-зелёный */
    scrollbar-track-color: #f1f8e9; /* Светлый зелёно-бежевый */
    scrollbar-darkshadow-color: #2E7D32; /* Очень тёмный зелёный */
    background-image: none;
    margin: 0 auto;
    color: #33691E; /* Тёмный зелёный текст */
    max-width: 90%;
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 16px;
    font-style: normal;
    line-height: 1.6;
}

a:link, a:visited {
    text-decoration: none;
    color: #43A047; /* Свежий зелёный для ссылок */
    font-weight: 500;
    border-bottom: 1px dotted rgba(67, 160, 71, 0.3);
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
    color: #FF9800; /* Апельсиновый при наведении */
    border-bottom: 2px solid #FF9800;
}

/* ---- Основные контейнеры ---- */
.bodyline {
    background-color: #ffffff; /* Белый */
    border: 2px solid #C8E6C9; /* Светло-зелёная граница */
    border-radius: 12px; /* Закруглённые углы */
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.08); /* Лёгкая зелёная тень */
    overflow: hidden;
}

.forumline {
    background-color: #ffffff; /* Белый */
    border: 1px solid #E8F5E9; /* Очень светло-зелёный */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* ---- Чередование строк (свежие цвета) ---- */
td.row1, td.row2, td.row3, td.inputrow {
    background-color: #ffffff; /* Белый */
    border-bottom: 1px solid #F1F8E9;
}

td.row1 {
    background-color: #FAFEF8; /* Очень светлый зелёный */
}

td.row2 {
    background-color: #ffffff; /* Белый */
}

td.row3 {
    background-color: #F1F8E9; /* Светлый зелёный */
}

td.rowpic {
    background-color: #81C784; /* Средний зелёный */
    background-image: none;
    border-left: 4px solid #4CAF50;
}

/* ---- Заголовки таблиц (свежая зелень) ---- */
th {
    color: #ffffff; /* Белый текст */
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(to bottom, #66BB6A, #4CAF50); /* Градиент зелёный */
    background-image: none;
    padding: 12px 10px;
    border-bottom: 3px solid #388E3C; /* Тёмно-зелёная граница */
    text-align: center;
    border-radius: 6px 6px 0 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* ---- Главные заголовки ---- */
.maintitle, h1, h2 {
    font-weight: bold;
    font-size: 24px;
    font-family: "Montserrat", "Arial", sans-serif;
    text-decoration: none;
    line-height: 130%;
    color: #388E3C; /* Тёмно-зелёный */
    margin: 15px 0;
    position: relative;
    padding-left: 40px;
}

.maintitle:before, h1:before, h2:before {
    content: "🍎";
    position: absolute;
    left: 0;
    font-size: 28px;
}

h2 {
    font-size: 20px;
    color: #43A047;
    border-bottom: 2px dashed #C8E6C9;
    padding-bottom: 8px;
    margin-top: 20px;
}

/* ---- Общий текст ---- */
.gen, .genmed, .gensmall {
    color: #558B2F; /* Зелёно-коричневый для лучшей читаемости */
    font-size: 14px;
}

.gensmall {
    font-size: 12px;
    color: #81C784;
    font-style: italic;
}

/* ---- Навигация и меню ---- */
.mainmenu {
    font-size: 14px;
    color: #689F38; /* Средний зелёный */
    font-weight: 500;
}

.forumlink {
    font-weight: 600;
    font-size: 16px;
    color: #388E3C; /* Тёмно-зелёный */
    font-family: "Montserrat", sans-serif;
}

a.forumlink:hover {
    text-decoration: none;
    color: #FF9800; /* Апельсиновый */
}

.nav {
    font-weight: 500;
    font-size: 14px;
    color: #689F38; /* Средний зелёный */
}

a.nav:hover {
    text-decoration: none;
    color: #FF9800;
}

/* ---- Заголовки тем ---- */
.topictitle {
    font-weight: 600;
    font-size: 15px;
    color: #388E3C; /* Тёмно-зелёный */
    font-family: "Roboto", sans-serif;
}

a.topictitle:hover {
    text-decoration: none;
    color: #FF9800; /* Апельсиновый */
}

/* ---- Текст сообщений ---- */
.postbody {
    font-size: 15px;
    color: #33691E; /* Тёмный зелёный */
    line-height: 1.7;
    padding: 15px;
}

a.postlink:hover {
    text-decoration: none;
    color: #FF9800;
}

/* ---- Формы и поля ввода ---- */
input, textarea, select {
    color: #33691E; /* Тёмный зелёный */
    font: normal 14px "Roboto", "Arial", sans-serif;
    background-color: #ffffff; /* Белый */
    border: 2px solid #C8E6C9; /* Светло-зелёный */
    border-radius: 6px; /* Закруглённые углы */
    padding: 10px 12px;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

input.button {
    background: linear-gradient(to bottom, #66BB6A, #4CAF50); /* Градиент зелёный */
    color: #ffffff; /* Белый */
    font-size: 14px;
    font-family: "Roboto", "Arial", sans-serif;
    padding: 10px 20px;
    border: none;
    border-radius: 25px; /* Округлые кнопки */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input.button:hover {
    background: linear-gradient(to bottom, #4CAF50, #388E3C);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(76, 175, 80, 0.4);
}

/* ---- Новые элементы для форума о питании ---- */

/* Полезные советы */
.nutrition-tip {
    border-left: 5px solid #4CAF50; /* Зелёная граница */
    background-color: #F1F8E9; /* Светло-зелёный фон */
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #33691E;
}

.nutrition-tip:before {
    content: "💡 ";
    font-weight: bold;
    color: #FF9800;
}

/* Предупреждения о вредных продуктах */
.nutrition-warning {
    border-left: 5px solid #FF9800; /* Оранжевая граница */
    background-color: #FFF3E0; /* Светло-оранжевый фон */
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
    color: #E65100;
}

.nutrition-warning:before {
    content: "⚠️ ";
    font-weight: bold;
    color: #FF9800;
}

/* Блоки с рецептами */
.recipe-box {
    background-color: #FFFDE7; /* Светло-жёлтый фон */
    border: 2px solid #FFE082; /* Жёлтая граница */
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.recipe-box:before {
    content: "🍳";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    opacity: 0.2;
}

/* Информация о калориях и БЖУ */
.nutrition-facts {
    background-color: #E8F5E9; /* Зелёный фон */
    border: 1px solid #C8E6C9;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    font-family: "Courier New", monospace;
}

.nutrition-facts h4 {
    color: #388E3C;
    border-bottom: 1px solid #C8E6C9;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Специальные категории форума */
.featured-health {
    border-bottom: 3px solid #4CAF50; /* Зелёная граница */
    padding-bottom: 12px;
    margin-bottom: 20px;
    position: relative;
}

.featured-health:after {
    content: "🌟";
    position: absolute;
    right: 0;
    top: 0;
    color: #FF9800;
}

/* ---- Иконки для категорий форума ---- */
.icon-vegan:before {
    content: "🌱";
    margin-right: 8px;
    font-size: 18px;
}

.icon-recipes:before {
    content: "🥗";
    margin-right: 8px;
    font-size: 18px;
}

.icon-superfoods:before {
    content: "🥑";
    margin-right: 8px;
    font-size: 18px;
}

.icon-detox:before {
    content: "💧";
    margin-right: 8px;
    font-size: 18px;
}

.icon-fitness:before {
    content: "🏃";
    margin-right: 8px;
    font-size: 18px;
}

.icon-supplements:before {
    content: "💊";
    margin-right: 8px;
    font-size: 18px;
}

.icon-nutritionists:before {
    content: "👨‍⚕️";
    margin-right: 8px;
    font-size: 18px;
}

/* ---- Цветовые индикаторы ---- */
.calorie-low {
    color: #4CAF50; /* Зелёный для низкокалорийных */
    font-weight: bold;
}

.calorie-high {
    color: #FF9800; /* Оранжевый для высококалорийных */
    font-weight: bold;
}

.healthy-choice {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.unhealthy-choice {
    background-color: rgba(255, 152, 0, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* ---- Стили для блоков кода и цитат (адаптированные) ---- */
.code_table, .php_table, .q_table, .quote_table {
    border: 1px solid #C8E6C9 !important;
    width: 98% !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #F1F8E9 !important;
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
    border-left: 5px solid #81C784 !important;
}

.code_td, .php_td, .q_td, .quote_td {
    font-size: 13px !important;
    color: #33691E !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    padding: 12px !important;
    line-height: 1.6;
}

/* ---- Медицинские предупреждения ---- */
.medical-disclaimer {
    background: linear-gradient(to right, #FFF3E0, #FFECB3);
    border: 2px solid #FF9800;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #E65100;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.medical-disclaimer:before {
    content: "❗ ";
    font-size: 16px;
}

/* ---- Футер с мотивационной фразой ---- */
.copyright {
    background-color: #E8F5E9;
    padding: 20px;
    text-align: center;
    color: #558B2F;
    font-size: 13px;
    border-top: 3px solid #C8E6C9;
    margin-top: 30px;
    border-radius: 0 0 12px 12px;
}

.copyright:before {
    content: "Здоровье — это главное богатство! 🍏";
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #388E3C;
    margin-bottom: 10px;
}

/* ---- Адаптация для мобильных устройств ---- */
@media (max-width: 768px) {
    body {
        max-width: 100%;
        font-size: 15px;
        padding: 10px;
    }
    
    .bodyline {
        border-radius: 8px;
    }
    
    .maintitle, h1, h2 {
        font-size: 20px;
        padding-left: 35px;
    }
    
    .maintitle:before, h1:before, h2:before {
        font-size: 24px;
    }
}

/* ---- Анимации для интерактивных элементов ---- */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.highlight-new {
    animation: pulse-green 2s infinite;
}