﻿/* Обновленный стиль для форума на тему хостинг-провайдеров 
   Вдохновлено SubSilver от subBlue, адаптировано под тематику хостинга */

/* SVG фон в цветах хостинга: синие и технологические акценты */
body {
    background-color: #0c1b33;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231e3a8a' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
    scrollbar-color: #1e40af #0f172a;
    scrollbar-width: thin;
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Современные scrollbar для Webkit */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Типография */
font, th, td, p { 
    font-family: 'Segoe UI', 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif; 
    font-size: 15px;
    color: #e2e8f0;
}

/* Ссылки - цвета хостинга (синий/голубой) */
a:link, a:active, a:visited { 
    color: #60a5fa; 
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px dotted transparent;
}
a:hover { 
    text-decoration: none; 
    color: #93c5fd;
    border-bottom-color: #93c5fd;
}

/* Основные контейнеры */
.bodyline { 
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    max-width: 1300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-width: 0;
}

.forumline { 
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    overflow: hidden;
}

/* Строки таблицы с градиентами */
td.row1 { 
    background: linear-gradient(to right, #1e293b, #2d3748);
}
td.row2 { 
    background: linear-gradient(to right, #2d3748, #374151);
}
td.row3 { 
    background: linear-gradient(to right, #374151, #4b5563);
}

/* Заголовки таблиц */
th {
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    height: 40px;
    color: #dbeafe;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

/* Категории */
td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
    background: linear-gradient(to right, #475569, #64748b);
    border: none;
    height: 36px;
    color: #f1f5f9;
    font-weight: 600;
}

/* Хедер */
td.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: none;
    height: 80px;
    padding: 0 30px;
}

/* Заголовки */
.maintitle, .maintitle_header, h1, h2 {
    font-weight: 700;
    font-size: 28px;
    font-family: 'SF Pro Display', 'Inter', -apple-system, sans-serif;
    text-decoration: none;
    line-height: 1.2;
    color: #60a5fa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.maintitle_header {
    color: #dbeafe;
}

.gen_header { 
    font-size: 16px; 
    color: #93c5fd;
    font-weight: 500;
}

/* Навигация */
td.index_nav, td.nav_locate {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    height: 38px;
    color: #dbeafe;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.speration_nav {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
}

/* Блоки с сообщениями */
.desc_auth {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 15px;
}
.desc_authb {
    background: #2d3748;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 15px;
}

/* Профиль пользователя */
.user_infos {
    float: left;
    border-right: 1px solid #475569;
    border-bottom: 1px solid #475569;
    margin: 0 15px 0 0;
    padding: 0 10px 10px 0;
    width: 180px;
    background: #1e293b;
    border-radius: 8px;
}
.user_buttons {
    width: 100%;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    border-radius: 6px;
    padding: 8px;
}

/* Цитаты и код */
.code {
    font-family: 'Cascadia Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #7dd3fc;
    background: #0f172a;
    border: 1px solid #1e40af;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
}

.quote {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    background: #1e293b;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

/* Кнопки и формы */
input, textarea, select {
    color: #f1f5f9;
    font: normal 14px 'Segoe UI', sans-serif;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

input.post, textarea.post, select {
    background-color: #0f172a;
}

input.button, .fakebut {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

input.button:hover, .fakebut:hover {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

input.mainoption {
    background: linear-gradient(to right, #059669, #10b981);
    color: white;
}

input.liteoption {
    background: #475569;
    color: #e2e8f0;
}

/* Стили WR-Forum Professional */
.pgbutt a {
    font-family: 'Segoe UI', sans-serif;
    padding: 8px 16px;
    text-decoration: none;
    border: none;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    color: white;
    border-radius: 6px;
    margin: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pgbutt a:hover {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Аватар гостя */
.guestavatar {
    width: 100px;
    height: 100px;
    text-align: center;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #dbeafe;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 3px solid #475569;
}

/* Навигация в админке */
#nav8, #nav8 ul, #nav8 li { margin: 0; padding: 0; border: 0; }
#nav8, #nav8 ul { background: #1e293b; }
#nav8 { border-spacing: 0; position: relative; z-index: 50; width: 100%; }
#nav8 ul { position: absolute; display: none; border-radius: 8px; overflow: hidden; }
#nav8 td:hover ul { display: block; }
#nav8 ul li { list-style: none; }
#nav8 a { display: block; padding: 12px 20px; text-align: center; text-decoration: none; color: #e2e8f0; }
#nav8 ul a { padding: 10px 25px; text-align: left; }
#nav8 td:hover, #nav8 li:hover { background: #3b82f6; }
#nav8 td { text-align: center; }

/* Индикатор загрузки */
#cssbar-wrapper { width: 300px; height: 6px; position: absolute; left: 50%; top: 50%; }
#cssbar-border { border: none; height: 100%; width: 100%; position: relative; left: -50%; top: -50%; }
#cssbar-whitespace { overflow: hidden; height: 100%; width: 100%; margin: 0 auto; position: relative; background: #1e293b; border-radius: 3px; }
#cssbar-line { 
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa, #3b82f6, #1e40af);
    background-size: 200% 100%;
    position: absolute; 
    height: 100%; 
    width: 100%; 
    animation: cssbar-slide 2s linear infinite;
    border-radius: 3px;
}

@keyframes cssbar-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .bodyline {
        padding: 15px;
        margin: 10px;
        border-radius: 8px;
    }
    
    td.row1, td.row2, td.row3 {
        padding: 10px;
    }
    
    .user_infos {
        float: none;
        width: auto;
        margin: 0 0 15px 0;
    }
    
    th, td {
        font-size: 14px;
    }
}

/* Тёмная тема дополнительно */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0f1c;
    }
    
    .bodyline {
        background: linear-gradient(145deg, #111827 0%, #0a0f1c 100%);
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bodyline, .forumline, th, .maintitle {
    animation: fadeIn 0.5s ease-out;
}