/* ===== МЕДИЦИНСКИЙ ФОРУМ О ЗАБОЛЕВАНИЯХ ===== */
/* Профессиональный стиль с акцентами на медицинских цветах */

body {
    color: #2c3e50; /* Профессиональный тёмно-синий */
    background-color: #f8f9fa; /* Светлый медицинский фон */
    scrollbar-face-color: #3498db; /* Медицинский синий */
    scrollbar-highlight-color: #e3f2fd;
    scrollbar-shadow-color: #2980b9;
    scrollbar-3dlight-color: #bbdefb;
    scrollbar-arrow-color: #ffffff;
    scrollbar-track-color: #e3f2fd;
    scrollbar-darkshadow-color: #1c6ea4;
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    background-image: none;
}

font, th, td, p {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    color: #2c3e50;
}

a:link, a:active, a:visited {
    color: #3498db; /* Медицинский синий */
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
    color: #e74c3c; /* Красный для важных ссылок */
    border-bottom: 1px solid #e74c3c;
}

hr {
    height: 0px;
    border: none;
    border-top: 1px solid #e3f2fd;
    margin: 20px 0;
}

.bodyline {
    background-color: #ffffff;
    border: 2px solid #e3f2fd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.forumline {
    background-color: #ffffff;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
}

/* ---- Чередование строк с медицинскими оттенками ---- */
td.row1 {
    background-color: #ffffff;
    border-bottom: 1px solid #f8f9fa;
}

td.row2 {
    background-color: #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
}

td.row3 {
    background-color: #e3f2fd; /* Светлый медицинский голубой */
    border-bottom: 1px solid #f8f9fa;
}

/* ---- Заголовки таблиц ---- */
th {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(to bottom, #3498db, #2980b9); /* Градиент синий */
    height: 40px;
    background-image: none;
    padding: 0 20px;
    border-radius: 6px 6px 0 0;
    border-bottom: 3px solid #1c6ea4;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* ---- Категории ---- */
td.cat, td.catHead, td.catBottom {
    background-color: #e3f2fd;
    background-image: none;
    border: none;
    height: 45px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    padding: 0 25px;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #3498db;
}

/* ---- Главные заголовки ---- */
.maintitle {
    font-weight: 700;
    font-size: 26px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    text-decoration: none;
    line-height: 130%;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    padding-left: 40px;
    position: relative;
}

.maintitle:before {
    content: "??";
    position: absolute;
    left: 0;
    font-size: 30px;
    color: #e74c3c; /* Медицинский красный акцент */
}

h1, h2, h3 {
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 10px 0;
}

h2 {
    font-size: 22px;
    color: #2980b9;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 8px;
}

/* ---- Ссылки форумов ---- */
a.forumlink, .forumlink {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

a.forumlink:hover {
    text-decoration: none;
    color: #e74c3c; /* Красный при наведении */
}

/* ---- Ссылки в сообщениях ---- */
a.postlink:link, a.postlink:visited {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

a.postlink:hover {
    text-decoration: none;
    color: #e74c3c; /* Красный при наведении */
}

/* ---- Блоки кода и цитат ---- */
.code, .quote {
    font-size: 13px;
    color: #2c3e50;
    background-color: #f8f9fa;
    border: 1px solid #e3f2fd;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    line-height: 1.5;
}

.code {
    font-family: 'Courier New', 'Consolas', monospace;
    border-left: 4px solid #3498db; /* Синий акцент */
}

.quote {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    border-left: 4px solid #2ecc71; /* Зелёный для цитат */
    font-style: italic;
}

/* ---- Формы и поля ввода ---- */
input, textarea, select {
    color: #2c3e50;
    font: normal 14px 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background-color: #ffffff;
    border: 2px solid #e3f2fd;
    border-radius: 6px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

input.post, textarea.post, select {
    background-color: #ffffff;
}

input.button {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input.button:hover {
    background: linear-gradient(to bottom, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ---- Новые элементы для форума о заболеваниях ---- */

/* Блок с симптомами */
.symptoms-box {
    border-left: 5px solid #e74c3c; /* Красный для симптомов */
    background-color: #ffe6e6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.symptoms-box h4 {
    color: #c0392b;
    margin-top: 0;
}

.symptoms-box h4:before {
    content: "?? ";
    font-size: 20px;
}

/* Блок с лечением */
.treatment-info {
    border-left: 5px solid #2ecc71; /* Зелёный для лечения */
    background-color: #d5f4e6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.treatment-info h4 {
    color: #27ae60;
    margin-top: 0;
}

.treatment-info h4:before {
    content: "?? ";
    font-size: 20px;
}

/* Важные предупреждения */
.medical-warning {
    background: linear-gradient(to right, #ffeaa7, #ffecb3);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #d35400;
    font-weight: 500;
    position: relative;
}

.medical-warning:before {
    content: "?? ВАЖНО: ";
    font-weight: 700;
    color: #e74c3c;
}

/* Диагностическая информация */
.diagnosis-info {
    background-color: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.diagnosis-info h4 {
    color: #2980b9;
    border-bottom: 1px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Профилактика */
.prevention-tips {
    background: linear-gradient(to right, #e3f2fd, #bbdefb);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.prevention-tips h4 {
    color: #2c3e50;
    margin-top: 0;
}

.prevention-tips h4:before {
    content: "??? ";
    font-size: 20px;
}

/* Иконки для категорий заболеваний */
.icon-infectious:before {
    content: "??";
    margin-right: 8px;
    font-size: 18px;
}

.icon-chronic:before {
    content: "??";
    margin-right: 8px;
    font-size: 18px;
}

.icon-rare:before {
    content: "??";
    margin-right: 8px;
    font-size: 18px;
}

.icon-autoimmune:before {
    content: "??";
    margin-right: 8px;
    font-size: 18px;
}

.icon-genetic:before {
    content: "??";
    margin-right: 8px;
    font-size: 18px;
}

.icon-mental:before {
    content: "??";
    margin-right: 8px;
    font-size: 18px;
}

.icon-pediatric:before {
    content: "??";
    margin-right: 8px;
    font-size: 18px;
}

/* Индикаторы тяжести */
.severe-case {
    background-color: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    border-radius: 6px;
    padding: 5px 10px;
    color: #c0392b;
    font-weight: 600;
    display: inline-block;
    margin: 0 5px;
}

.moderate-case {
    background-color: rgba(241, 196, 15, 0.1);
    border: 2px solid #f1c40f;
    border-radius: 6px;
    padding: 5px 10px;
    color: #d35400;
    font-weight: 600;
    display: inline-block;
    margin: 0 5px;
}

.mild-case {
    background-color: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 6px;
    padding: 5px 10px;
    color: #27ae60;
    font-weight: 600;
    display: inline-block;
    margin: 0 5px;
}

/* Аватар гостя с медицинским стилем */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #2c3e50;
    font-size: 50px;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.guestavatar:before {
    content: "??";
    font-size: 48px;
}

/* Анимации для важных элементов */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.critical-warning {
    animation: pulse-red 2s infinite;
    border: 2px solid #e74c3c !important;
}

/* Медицинский футер */
.copyright {
    background-color: #e3f2fd;
    padding: 20px;
    text-align: center;
    color: #34495e;
    font-size: 13px;
    border-top: 3px solid #3498db;
    margin-top: 30px;
    border-radius: 0 0 10px 10px;
}

.copyright:before {
    content: "?? Информация на форуме носит ознакомительный характер. Для диагностики и лечения обратитесь к врачу.";
    display: block;
    font-weight: 600;
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        max-width: 100%;
        margin: 10px auto;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .maintitle {
        font-size: 22px;
        padding-left: 35px;
    }
    
    .maintitle:before {
        font-size: 26px;
    }
    
    .bodyline {
        border-radius: 8px;
    }
    
    th {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .symptoms-box,
    .treatment-info,
    .medical-warning,
    .diagnosis-info {
        padding: 15px;
        margin: 15px 0;
    }
}