﻿/* === Web 2.0 Стиль для медицинского форума === */

/* 🌐 ОСНОВНЫЕ ШРИФТЫ И ТЕЛО */
font, th, td, p {
    font: normal 14px 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
    color: #333;
}

body {
    font: normal 15px 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    margin: 0;
    padding: 0;
    background-image: url(background.jpg);
    background-repeat: repeat-x;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

/* 🎨 ОСНОВНОЙ КОНТЕЙНЕР */
.background {
    padding: 25px 15px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid #4a9cdb;
    border-right: 4px solid #4a9cdb;
    box-shadow: 0 5px 20px rgba(74, 156, 219, 0.15);
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    max-width: 1300px;
}

/* 🧭 НАВИГАЦИОННОЕ МЕНЮ - Web 2.0 стиль */
ul#nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #d1e3ff;
    margin-bottom: 25px;
}

#nav li {
    flex: 1;
    min-width: 150px;
}

#nav li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 15px;
    color: #2c5282;
    background: linear-gradient(to bottom, #ffffff, #f7faff);
    border: 2px solid #e2edff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

#nav li a::before {
    content: "🩺";
    margin-right: 8px;
    font-size: 16px;
}

#nav li a:hover {
    background: linear-gradient(to bottom, #4a9cdb, #2b6cb0);
    color: white;
    border-color: #2b6cb0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(43, 108, 176, 0.3);
    text-decoration: none;
}

/* 🛠 АДМИН МЕНЮ */
ul#admin {
    margin: 0;
    padding: 0;
    list-style: none;
    background: linear-gradient(to bottom, #fff5f5, #ffe5e5);
    border-radius: 10px;
    padding: 10px;
    border: 2px solid #fed7d7;
}

#admin li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 12px;
    margin: 5px 0;
    color: #c53030;
    background: white;
    border: 2px solid #fed7d7;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

#admin li a::before {
    content: "⚙️";
    margin-right: 8px;
}

#admin li a:hover {
    background: linear-gradient(to bottom, #c53030, #9b2c2c);
    color: white;
    border-color: #9b2c2c;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(197, 48, 48, 0.2);
}

/* 🔗 ОБЩИЕ ССЫЛКИ */
a:link, a:active, a:visited {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px dotted transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: #2c5282;
    text-decoration: none;
    border-bottom: 2px solid #4a9cdb;
}

hr {
    height: 2px;
    background: linear-gradient(to right, transparent, #4a9cdb, transparent);
    border: none;
    margin: 25px 0;
}

/* 🏥 РАМКА ФОРУМА - Web 2.0 карточка */
.forumline {
    background: linear-gradient(145deg, #ffffff, #f7fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(74, 156, 219, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.forumline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #4a9cdb, #38b2ac, #4a9cdb);
    border-radius: 16px 16px 0 0;
}

/* 🎨 ЦВЕТА ЯЧЕЕК ТАБЛИЦ */
td.row1 {
    background: linear-gradient(to bottom, #ffffff, #f7fafc);
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 10px;
}

td.row2 {
    background: linear-gradient(to bottom, #f0f7ff, #e6f2ff);
    border: 1px solid #d1e3ff;
    padding: 15px;
    border-radius: 10px;
}

td.row3 {
    background: linear-gradient(to bottom, #fff5f5, #ffe5e5);
    border: 1px solid #fed7d7;
    padding: 15px;
    border-radius: 10px;
}

td.rowpic {
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
    border-radius: 12px 12px 0 0;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 🏆 ЗАГОЛОВКИ ТАБЛИЦ */
th {
    background: linear-gradient(135deg, #4a9cdb 0%, #2b6cb0 100%);
    color: white;
    font-size: 15px;
    font-weight: 700;
    height: 35px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(43, 108, 176, 0.3);
    position: relative;
    overflow: hidden;
}

th::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

th:hover::after {
    left: 100%;
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
    background: linear-gradient(135deg, #38b2ac, #319795);
    height: 35px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    border: none;
}

/* 📝 ТЕКСТ И ЗАГОЛОВКИ */
.maintitle, h1, h2, h3 {
    font-family: 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #2c5282;
    text-decoration: none;
    line-height: 1.3;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a9cdb;
    background: linear-gradient(to right, #2c5282, #4a9cdb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.gen { font-size: 15px; }
.genmed { font-size: 14px; font-weight: 500; }
.gensmall { font-size: 13px; color: #666; }

/* 🚀 ВЕРХНЕЕ МЕНЮ */
.mainmenu {
    font-size: 14px;
    color: #2c5282;
    font-weight: 600;
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #d1e3ff;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s ease;
}

a.mainmenu:hover {
    background: linear-gradient(to bottom, #4a9cdb, #2b6cb0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 108, 176, 0.3);
    text-decoration: none;
}

/* 🏷 КАТЕГОРИИ ФОРУМОВ */
.cattitle {
    font-weight: 700;
    font-size: 20px;
    color: #2c5282;
    letter-spacing: 0.5px;
    padding: 15px;
    background: linear-gradient(135deg, #e6f2ff, #d1e3ff);
    border-radius: 12px;
    border-left: 6px solid #4a9cdb;
    margin: 20px 0;
}

a.cattitle:hover {
    color: #2b6cb0;
    text-decoration: none;
    background: linear-gradient(135deg, #d1e3ff, #b3d4ff);
}

/* 📌 НАЗВАНИЯ ФОРУМОВ И ТЕМ */
.forumlink, .topictitle {
    font-weight: 700;
    font-size: 16px;
    color: #2c5282;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
    margin: 8px 0;
}

a.forumlink:hover, a.topictitle:hover {
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
    color: white;
    border-color: #2b6cb0;
    transform: translateX(8px);
    box-shadow: 0 6px 15px rgba(43, 108, 176, 0.2);
    text-decoration: none;
}

/* 🧭 НАВИГАЦИЯ */
.nav {
    font-weight: 700;
    font-size: 14px;
    color: #4a9cdb;
    background: #f0f7ff;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #d1e3ff;
    margin: 0 5px;
    transition: all 0.3s ease;
}

a.nav:hover {
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(43, 108, 176, 0.3);
    text-decoration: none;
}

/* 👤 ИМЕНА И ДЕТАЛИ */
.name {
    font-size: 15px;
    color: #2c5282;
    font-weight: 700;
    background: linear-gradient(to right, #e6f2ff, transparent);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.postdetails {
    font-size: 13px;
    color: #666;
    background: #f7fafc;
    padding: 8px 15px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    margin: 5px 0;
}

/* 📝 ТЕЛО СООБЩЕНИЯ */
.postbody {
    font-size: 15px;
    line-height: 1.7;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 💬 ЦИТАТЫ И КОД */
.quote {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    background: linear-gradient(to bottom, #f0f7ff, #e6f2ff);
    border: 2px solid #d1e3ff;
    border-left: 6px solid #4a9cdb;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: #2d3748;
    background: linear-gradient(to bottom, #f7fafc, #edf2f7);
    border: 2px solid #e2e8f0;
    border-left: 6px solid #38b2ac;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 📄 ФОРМЫ И ПОЛЯ ВВОДА */
input, textarea, select {
    color: #2d3748;
    font: normal 14px 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #ffffff, #f7fafc);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

input.post, textarea.post, select {
    background: linear-gradient(to bottom, #ffffff, #f7fafc);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4a9cdb;
    box-shadow: 0 0 0 3px rgba(74, 156, 219, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 🔘 КНОПКИ */
input.button {
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 8px rgba(43, 108, 176, 0.3);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

input.button:hover {
    background: linear-gradient(135deg, #2b6cb0, #1a4f8b);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(43, 108, 176, 0.4);
}

input.mainoption {
    background: linear-gradient(135deg, #38b2ac, #319795);
    font-weight: 700;
    padding: 14px 30px;
    font-size: 15px;
}

input.liteoption {
    background: linear-gradient(135deg, #a0aec0, #718096);
    font-weight: 500;
}

.helpline {
    background: linear-gradient(to bottom, #fff5f5, #ffe5e5);
    border: 2px solid #fed7d7;
    border-radius: 10px;
    padding: 12px;
    color: #c53030;
    font-weight: 500;
}

/* 📊 ОПРОСЫ */
.vote_cap {
    font-size: 13px;
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
}

.votebar {
    font-size: 13px;
    background: linear-gradient(135deg, #38b2ac, #319795);
    padding: 8px 15px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
}

/* 🎯 ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ИЗ ВАШЕГО CSS */

/* Кнопки с иконками */
.pgbutt a {
    font-family: 'Segoe UI', Verdana, sans-serif;
    padding: 10px 18px;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff, #f7fafc);
    border: 2px solid #e2e8f0;
    color: #4a9cdb;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.pgbutt a:hover {
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
    color: white;
    border-color: #2b6cb0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(43, 108, 176, 0.3);
}

/* QR-код */
#qr img {
    width: 45px;
    height: 45px;
    position: fixed;
    right: 20px;
    top: 20px;
    border: 3px solid #4a9cdb;
    padding: 5px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#qr img:hover {
    width: 220px;
    height: 220px;
    z-index: 1000;
    border-color: #2b6cb0;
    box-shadow: 0 10px 30px rgba(43, 108, 176, 0.3);
    transform: rotate(5deg);
}

/* Аватар гостя */
.guestavatar {
    width: 140px;
    height: 140px;
    text-align: center;
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
    color: white;
    font-size: 60px;
    font-weight: 700;
    display: table-cell;
    border-radius: 25%;
    position: relative;
    vertical-align: middle;
    box-shadow: 0 8px 20px rgba(43, 108, 176, 0.3);
    border: 5px solid white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Админ навигация */
#nav8 {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#nav8 a {
    padding: 12px 20px;
    color: #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 600;
}

#nav8 td:hover, #nav8 li:hover {
    background: linear-gradient(135deg, #4a9cdb, #2b6cb0);
}

/* Индикатор загрузки */
#cssbar-wrapper {
    width: 350px;
    height: 24px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 4px solid #4a9cdb;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 5px 4px;
    border-radius: 15px;
    background: linear-gradient(to bottom, #f7fafc, #edf2f7);
}

#cssbar-line {
    background: linear-gradient(90deg, #4a9cdb, #2b6cb0, #4a9cdb);
    border-radius: 10px;
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 3s ease-in-out infinite;
}

@keyframes cssbar-slide {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* 📱 АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .background { padding: 15px 10px; }
    ul#nav { flex-direction: column; }
    #nav li { min-width: 100%; }
    .forumline { padding: 15px; }
    .maintitle, h1, h2, h3 { font-size: 22px; }
    .pgbutt a { padding: 8px 12px; font-size: 13px; }
}