﻿/* ===== НЕЙРОННЫЙ СТИЛЬ "МОЗГ" ДЛЯ ФОРУМА ===== */
/* Современный научный стиль с цветами нейронов и нервной системы */

/* Общий стиль страницы. Цвета скроллбара видны только в IE5.5+ */
body {
    scrollbar-3dlight-color: #F0F4FF;
    scrollbar-arrow-color: #8B72BE;
    scrollbar-darkshadow-color: #6D5BA6;
    scrollbar-face-color: #E8ECFF;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: #D4DAFF;
    scrollbar-track-color: #F8FAFF;
    background-color: #F8FAFF;
    background-image: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    color: #333366;
    line-height: 1.6;
}

/* Общие семейства шрифтов для общих тегов */
font, th, td, p {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    color: #333366;
}

a:link, a:active, a:visited {
    color: #8B72BE; /* Нейронный фиолетовый */
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6B9D; /* Акцентный розовый (активные нейроны) */
    text-decoration: none;
    border-bottom: 1px solid #FF6B9D;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B72BE, transparent);
    margin: 20px 0;
}

.forumline {
    background: linear-gradient(135deg, #FFFFFF, #F8FAFF);
    border: 2px solid #E8ECFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 114, 190, 0.1);
}

/* Основные цвета ячеек таблиц и фоны */
.row1, .row3 {
    background-color: #FFFFFF;
    border-bottom: 1px solid #F0F4FF;
}

.row2 {
    background-color: #F8FAFF;
    border-bottom: 1px solid #F0F4FF;
    border: none;
}

/* Ячейка таблицы над темами */
td.rowpic {
    background: linear-gradient(90deg, #8B72BE, #A991E0);
    border-left: 4px solid #FF6B9D;
}

/* Заголовочные ячейки - градиентные фоны */
th {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, #8B72BE 0%, #6D5BA6 100%);
    height: 40px;
    border-bottom: 3px solid #5A4A8C;
    text-align: center;
    padding: 0 20px;
    border-radius: 8px 8px 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
    background: linear-gradient(135deg, #F0F4FF, #E8ECFF);
    height: 45px;
    color: #333366;
    font-weight: 600;
    font-size: 15px;
    padding: 0 25px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #8B72BE;
}

/* Самый крупный текст, используемый в заголовке index.php и заголовке темы */
.maintitle, h1, h2 {
    color: #5A4A8C; /* Глубокий фиолетовый */
    font-weight: 700;
    font-size: 26px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    text-decoration: none;
    margin: 25px 0 15px 0;
    padding-left: 40px;
    position: relative;
}

.maintitle:before, h1:before, h2:before {
    content: "🧠";
    position: absolute;
    left: 0;
    font-size: 30px;
    color: #8B72BE;
}

h2 {
    font-size: 22px;
    color: #8B72BE;
    border-bottom: 2px solid #F0F4FF;
    padding-bottom: 10px;
}

/* Общий текст */
.gen {
    font-size: 14px;
    text-decoration: none;
}

.genmed {
    font-size: 13px;
    text-decoration: none;
}

.gensmall {
    font-size: 12px;
    text-decoration: none;
}

.gen, .genmed, .gensmall {
    color: #333366;
    text-decoration: none;
}

a.gen, a.genmed, a.gensmall {
    color: #8B72BE;
    text-decoration: none;
    font-weight: 500;
}

a.gen:hover, a.genmed:hover, a.gensmall:hover {
    color: #FF6B9D;
    text-decoration: none;
}

/* Ссылки регистрации, входа, поиска вверху страницы */
.mainmenu {
    color: #333366;
    font-size: 14px;
    font-weight: 600;
}

a.mainmenu {
    color: #333366;
    text-decoration: none;
    font-weight: 600;
}

a.mainmenu:visited {
    color: #333366;
    text-decoration: none;
}

a.mainmenu:hover {
    color: #FF6B9D;
    text-decoration: none;
}

.dateline {
    font-weight: 600;
    font-size: 13px;
    color: #8B72BE;
    font-style: italic;
}

/* Заголовки категорий форума */
.cattitle {
    color: #5A4A8C;
    font-weight: 700;
    font-size: 15px;
}

a.cattitle {
    color: #5A4A8C;
    text-decoration: none;
}

a.cattitle:hover {
    color: #FF6B9D;
    text-decoration: none;
}

/* Заголовок форума: Текст и ссылка на форумы, используемые в index.php */
.forumlink {
    color: #5A4A8C;
    font-weight: 600;
    font-size: 15px;
}

a.forumlink {
    color: #8B72BE;
    text-decoration: none;
}

a.forumlink:hover {
    color: #FF6B9D;
    text-decoration: none;
}

/* Используется для текста навигации и панели навигации в форуме */
.nav {
    color: #333366;
    font-weight: 600;
    font-size: 13px;
}

a.nav {
    color: #8B72BE;
    text-decoration: none;
}

a.nav:visited {
    color: #6D5BA6;
    text-decoration: none;
}

a.nav:hover {
    color: #FF6B9D;
    text-decoration: none;
}

/* Заголовки тем */
.topictitle {
    color: #333366;
    font-weight: 600;
    font-size: 14px;
}

a.topictitle:link {
    color: #8B72BE;
    text-decoration: none;
}

a.topictitle:visited {
    color: #6D5BA6;
    text-decoration: none;
}

a.topictitle:hover {
    color: #FF6B9D;
    text-decoration: none;
}

/* Имя автора в viewmsg.php и viewtopic.php */
.name {
    color: #5A4A8C;
    font-size: 14px;
    font-weight: 600;
}

/* Местоположение, количество сообщений, дата сообщения и т.д. */
.postdetails {
    color: #8B72BE;
    font-size: 12px;
    font-style: italic;
}

/* Содержание сообщений */
.postbody {
    font-size: 14px;
    color: #333366;
    line-height: 1.7;
    padding: 15px;
    background-color: #FFFFFF;
    border-radius: 8px;
    border-left: 4px solid #8B72BE;
}

a.postlink:link {
    color: #8B72BE;
    text-decoration: none;
}

a.postlink:visited {
    color: #6D5BA6;
    text-decoration: none;
}

a.postlink:hover {
    color: #FF6B9D;
    text-decoration: none;
}

/* Цитаты и блоки кода */
.code {
    color: #333366;
    font-size: 13px;
    background-color: #F8FAFF;
    border: 1px solid #E8ECFF;
    border-left: 4px solid #8B72BE;
    line-height: 1.5;
    padding: 12px;
    border-radius: 0 8px 8px 0;
    font-family: 'Courier New', 'Consolas', monospace;
}

.quote {
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    border: 1px solid #E8ECFF;
    border-left: 4px solid #FF6B9D;
    background-color: #FFF0F5;
    color: #333366;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
}

/* Копирайт и нижняя информация */
.copyright {
    color: #8B72BE;
    font-size: 12px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #F8FAFF;
    border-top: 3px solid #E8ECFF;
    margin-top: 30px;
    border-radius: 0 0 12px 12px;
}

a.copyright {
    color: #8B72BE;
    text-decoration: none;
    font-weight: 500;
}

a.copyright:hover {
    color: #FF6B9D;
    text-decoration: none;
}

/* Фон текстовых полей ввода */
input.post, textarea.post, select {
    background-color: #FFFFFF;
    border: 2px solid #E8ECFF;
    color: #333366;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

input.post:focus, textarea.post:focus, select:focus {
    border-color: #8B72BE;
    box-shadow: 0 0 0 3px rgba(139, 114, 190, 0.2);
    outline: none;
}

input {
    text-indent: 2px;
}

/* Кнопки, используемые для стилизации bbCode в сообщениях */
input.button {
    color: #FFFFFF;
    font-size: 14px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(135deg, #8B72BE 0%, #6D5BA6 100%);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

input.button:hover {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF4D7A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* Основная кнопка отправки */
input.mainoption {
    font-weight: 700;
    background: linear-gradient(135deg, #8B72BE 0%, #6D5BA6 100%);
    color: white;
}

/* Нежирная кнопка отправки */
input.liteoption {
    font-weight: 500;
    background: linear-gradient(135deg, #A991E0 0%, #8B72BE 100%);
    color: white;
}

/* Строка помощи при наведении */
.helpline {
    background-color: #F8FAFF;
    border: 1px solid #E8ECFF;
    border-radius: 6px;
    color: #8B72BE;
    font-style: italic;
    padding: 8px;
}

/* ===== СТИЛИ ДЛЯ WR-Forum Professional ===== */

/* 1) ИЗМЕНЕНИЕ СУЩЕСТВУЮЩЕГО СТИЛЯ */
.pgbutt a {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    padding: 8px 15px;
    text-decoration: none;
    border: 2px solid #E8ECFF;
    background: #F8FAFF;
    margin: 3px;
    border-radius: 6px;
    color: #8B72BE;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.pgbutt a:hover {
    background: linear-gradient(135deg, #8B72BE 0%, #6D5BA6 100%);
    color: #FFFFFF;
    border-color: #8B72BE;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 114, 190, 0.3);
}

p {
    margin: 20px;
}

form {
    display: inline;
    margin: 2px;
    padding: 0;
    border: 0;
}

input, textarea, input.liteoption, .fakebut {
    border: 2px solid #E8ECFF;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    color: #333366;
}

/* 2) QR-CODE */
#qr img {
    width: 45px;
    height: 45px;
    position: fixed;
    right: 20px;
    top: 20px;
    border: 2px solid #8B72BE;
    padding: 3px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(139, 114, 190, 0.2);
    transition: all 0.4s ease;
}

#qr img:hover {
    width: 200px;
    height: 200px;
    z-index: 1000;
    border: 3px solid #FF6B9D;
    border-radius: 10px;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

/* 3) Аватар гостя (нейронный дизайн) */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, #8B72BE, #6D5BA6, #5A4A8C);
    color: #FFFFFF;
    font-size: 52px;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    border: 4px solid #FFFFFF;
    box-shadow: 0 5px 20px rgba(139, 114, 190, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.guestavatar:before {
    content: "⚡";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* 4) Навигационное меню в админке */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#nav8, #nav8 ul {
    background: linear-gradient(135deg, #F8FAFF, #F0F4FF);
    border: 2px solid #E8ECFF;
    border-radius: 8px;
}

#nav8 {
    border-spacing: 0 0;
    position: relative;
    z-index: 50;
    width: 100%;
}

#nav8 ul {
    position: absolute;
    display: none;
    box-shadow: 0 5px 20px rgba(139, 114, 190, 0.2);
    border-radius: 6px;
    min-width: 200px;
}

#nav8 td:hover ul {
    display: block;
}

#nav8 ul li {
    list-style: none;
}

#nav8 .right {
    direction: rtl;
}

#nav8 .right ul {
    right: 0;
}

#nav8 .right li {
    direction: ltr;
}

#nav8 a {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    color: #333366;
    font-weight: 500;
    border-bottom: 1px solid #F0F4FF;
}

#nav8 ul a {
    padding: 12px 25px;
    text-align: left;
}

#nav8 td:hover, #nav8 li:hover {
    background: linear-gradient(135deg, #8B72BE, #6D5BA6);
}

#nav8 td:hover a, #nav8 li:hover a {
    color: #FFFFFF;
}

#nav8 td {
    text-align: center;
    border-right: 1px solid #F0F4FF;
}

#nav8 td:last-child {
    border-right: none;
}

/* 5) Стиль для блока загрузки */
#cssbar-wrapper {
    width: 320px;
    height: 22px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 3px solid #8B72BE;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px;
    border-radius: 12px;
    background: #F8FAFF;
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
}

#cssbar-line {
    background: linear-gradient(90deg,
        transparent,
        #A991E0,
        #8B72BE,
        #FF6B9D,
        #8B72BE,
        #A991E0,
        transparent
    );
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 2s linear infinite;
    border-radius: 8px;
}

@keyframes cssbar-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ НЕЙРОННЫЕ ЭЛЕМЕНТЫ ===== */

/* Блок нейронных связей */
.neural-connection {
    border-left: 5px solid #8B72BE;
    background: linear-gradient(to right, #F8FAFF, #F0F4FF);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    position: relative;
    overflow: hidden;
}

.neural-connection:before {
    content: "🔄";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    opacity: 0.2;
    color: #8B72BE;
}

/* Блок синапсов */
.synapse-info {
    background: linear-gradient(135deg, #FFF0F5, #FFE6F2);
    border: 2px solid #FF6B9D;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.synapse-info h4 {
    color: #FF4D7A;
    margin-top: 0;
}

.synapse-info h4:before {
    content: "⚡ ";
    font-size: 20px;
}

/* Блок памяти */
.memory-block {
    background: linear-gradient(135deg, #E8ECFF, #D4DAFF);
    border: 2px solid #8B72BE;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.memory-block h4 {
    color: #5A4A8C;
    border-bottom: 1px solid #8B72BE;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Анимация пульсации нейрона */
@keyframes neuron-pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 114, 190, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(139, 114, 190, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 114, 190, 0); }
}

.active-neuron {
    animation: neuron-pulse 2s infinite;
    border: 2px solid #FF6B9D !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        font-size: 13px;
        padding: 10px;
    }
    
    .maintitle, h1, h2 {
        font-size: 22px;
        padding-left: 35px;
    }
    
    .maintitle:before, h1:before, h2:before {
        font-size: 26px;
    }
    
    #qr img {
        width: 35px;
        height: 35px;
        right: 15px;
        top: 15px;
    }
    
    #qr img:hover {
        width: 180px;
        height: 180px;
    }
    
    .neural-connection,
    .synapse-info,
    .memory-block {
        padding: 15px;
        margin: 15px 0;
    }
}