﻿/* ===== МЕДИЦИНСКИЙ ФОРУМ ОБ ОРТОПЕДИИ ===== */
/* Профессиональный стиль с акцентами на синем и белом */

font,th,td,p {
    font: normal 15px 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    color: #2c3e50; /* Профессиональный тёмно-синий */
}

body {
    font: normal 15px 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background-color: #f0f7ff; /* Светлый медицинский голубой */
    margin-bottom: 0px;
    background-image: none;
    max-width: 1200px; /* Оптимальная ширина для чтения */
    margin: 20px auto; /* Центрирование с отступами */
    line-height: 1.6;
    color: #2c3e50;
}

.background {
    padding: 25px 20px;
    background-color: #ffffff; /* Чистый белый фон */
    border-left: 4px solid #3498db; /* Медицинский синий акцент */
    border-right: 4px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

/* Основная навигация */
ul#nav {
    margin: 0px;
    padding: 0px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
}

#nav li a {
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    color: #2c3e50; /* Профессиональный тёмно-синий */
    font-size: 14px;
    font-weight: 600;
    background-color: #ffffff;
    border: 2px solid #e3f2fd;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

#nav li a:hover {
    background-color: #3498db; /* Медицинский синий */
    color: #ffffff;
    border-color: #3498db;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Админская навигация */
ul#admin {
    margin: 0px;
    padding: 0px;
    list-style: none;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
}

#admin li a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: #2c3e50;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

#admin li a:hover {
    background-color: #e3f2fd;
    color: #2980b9;
    border-left: 3px solid #3498db;
    text-decoration: none;
}

/* Цвета строк таблиц */
td.row1    { 
    background-color: #ffffff; 
    border-bottom: 1px solid #f1f8e9;
}
td.row2    { 
    background-color: #f8f9fa; 
    border-bottom: 1px solid #f1f8e9;
}
td.row3    { 
    background-color: #e3f2fd; 
    border-bottom: 1px solid #f1f8e9;
}

td.rowpic {
    background-color: #e3f2fd; /* Светлый медицинский голубой */
    border-left: 4px solid #3498db;
}

/* Заголовки таблиц */
th {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(to bottom, #3498db, #2980b9); /* Градиент синий */
    height: 40px;
    padding: 0 15px;
    border-bottom: 3px solid #1c6ea4;
    text-align: center;
    border-radius: 6px 6px 0 0;
}

/* Категории */
td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
    background-color: #e3f2fd;
    height: 45px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid #3498db;
    padding: 0 20px;
    border-radius: 6px 6px 0 0;
}

/* Главные заголовки */
.maintitle, h1, h2, h3 {
    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, h1:before, h2:before, h3:before {
    content: "🦴";
    position: absolute;
    left: 0;
    font-size: 30px;
    color: #3498db;
}

h2 {
    font-size: 22px;
    color: #2980b9;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 10px;
}

h3 {
    font-size: 18px;
    color: #3498db;
}

/* Общий текст */
.gen, .genmed, .gensmall {
    color: #34495e;
    line-height: 1.7;
}

.gensmall {
    font-size: 13px;
    color: #7f8c8d;
}

/* Ссылки */
a:link, a:visited {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    text-decoration: none;
}

/* Заголовки тем */
.topictitle {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

a.topictitle:hover {
    color: #e74c3c; /* Красный для важных тем */
}

/* Текст сообщений */
.postbody {
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.7;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

/* Формы */
input, textarea, select {
    font: normal 14px 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    color: #2c3e50;
    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.button, input.mainoption {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    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);
}

/* Специальные блоки для ортопедии */
.medical-advice {
    border-left: 5px solid #2ecc71; /* Зелёный для советов */
    background-color: #d5f4e6;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.rehabilitation-tip {
    border: 2px solid #3498db;
    background: linear-gradient(to right, #e3f2fd, #bbdefb);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.rehabilitation-tip:before {
    content: "💪";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    opacity: 0.2;
}

.exercise-guide {
    background-color: #f8f9fa;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.warning-note {
    background: linear-gradient(to right, #ffeaa7, #ffecb3);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #d35400;
    font-weight: 500;
}

/* Иконки категорий */
.icon-spine:before {
    content: "🦴";
    margin-right: 8px;
    font-size: 18px;
}

.icon-joints:before {
    content: "🦵";
    margin-right: 8px;
    font-size: 18px;
}

.icon-rehab:before {
    content: "🚶";
    margin-right: 8px;
    font-size: 18px;
}

.icon-surgery:before {
    content: "🏥";
    margin-right: 8px;
    font-size: 18px;
}

.icon-children:before {
    content: "👶";
    margin-right: 8px;
    font-size: 18px;
}

.icon-sports:before {
    content: "⚽";
    margin-right: 8px;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        max-width: 95%;
        margin: 10px auto;
        font-size: 14px;
    }
    
    ul#nav {
        flex-direction: column;
    }
    
    #nav li a {
        min-width: auto;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .maintitle, h1, h2, h3 {
        font-size: 22px;
        padding-left: 35px;
    }
    
    .maintitle:before, h1:before, h2:before, h3:before {
        font-size: 26px;
    }
}