/* ===============================================
   FORUM SPEED - ULTIMATE RACING THEME
   Стиль: Carbon Fiber Racing
   Цветовая гамма: Карбон + Неон (синий/голубой)
   =============================================== */

/* SVG Background Pattern - Carbon Fiber with Speed Lines */
body { 
    margin: 0; 
    padding: 0; 
    background-color: #0a0c0f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='carbon' patternUnits='userSpaceOnUse' width='20' height='20'%3E%3Cpath d='M0 0 L20 0 L20 20 L0 20 Z' fill='%2315181d'/%3E%3Cpath d='M0 0 L4 0 L4 4 L0 4 Z' fill='%2321252b'/%3E%3Cpath d='M10 0 L14 0 L14 4 L10 4 Z' fill='%2321252b'/%3E%3Cpath d='M0 10 L4 10 L4 14 L0 14 Z' fill='%2321252b'/%3E%3Cpath d='M10 10 L14 10 L14 14 L10 14 Z' fill='%2321252b'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23carbon)'/%3E%3Cpath d='M0 70 L100 30 M0 80 L100 40 M0 90 L100 50' stroke='%2300aaff' stroke-width='0.5' opacity='0.15' stroke-dasharray='5 5'/%3E%3C/svg%3E");
    scrollbar-arrow-color: #00aaff;
    scrollbar-face-color: #15181d;
    scrollbar-track-color: #0a0c0f;
    scrollbar-highlight-color: #00aaff;
    scrollbar-3dlight-color: #2a2e35;
    scrollbar-shadow-color: #15181d;
    scrollbar-darkshadow-color: #000000;
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Основная типографика */
font, th, td, p { 
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif; 
    font-size: 14px; 
    line-height: 1.5;
    color: #e0e5ec;
}

/* Ссылки с эффектом неонового свечения */
a { 
    text-decoration: none; 
    color: #4dc3ff;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:visited { 
    color: #2b95c9; 
}

a:hover, a:active { 
    color: #ffffff;
    text-shadow: 0 0 8px #00aaff;
    border-bottom-color: #00aaff;
}

hr { 
    height: 2px; 
    border: none;
    background: linear-gradient(90deg, transparent, #00aaff, transparent);
    margin: 15px 0;
}

img { 
    border: 0px;
    border-radius: 8px;
}

form { 
    display: inline; 
}

/* Таблицы форума с эффектом карбона */
table.forumline { 
    background: linear-gradient(145deg, #1e2229, #15181d);
    border: 1px solid #2a2e35;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

table.forumline:hover { 
    background: linear-gradient(145deg, #23272f, #1a1e25);
    border-color: #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
}

/* Строки таблиц */
.row, .row1, .row2 { 
    background-color: rgba(26, 30, 37, 0.8);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid #2a2e35;
}

.row3 { 
    background-color: rgba(32, 37, 46, 0.9);
    border-bottom: 2px solid #00aaff;
}

/* Заголовки таблиц - стиль "speedometer" */
th, td.th { 
    color: #ffffff; 
    font-size: 15px; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(180deg, #00aaff, #0066aa);
    height: 35px; 
    border: none;
    position: relative;
    overflow: hidden;
}

th::before, td.th::before {
    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.5s ease;
}

th:hover::before, td.th:hover::before {
    left: 100%;
}

/* Категории - стиль "carbon fiber" */
td.cat, td.catHead, td.catLeft, td.rowpic, td.catSides, td.catRight, td.catBottom { 
    color: #ffffff; 
    font-size: 15px; 
    font-weight: 600;
    text-transform: uppercase;
    background: #1e2229;
    background-image: repeating-linear-gradient(45deg, rgba(0,170,255,0.05) 0px, rgba(0,170,255,0.05) 2px, transparent 2px, transparent 4px);
    height: 30px; 
    padding: 8px 12px;
    border-bottom: 2px solid #00aaff;
}

/* Размеры текста */
.gen { 
    font-size: 14px; 
    color: #e0e5ec;
}

.genmed { 
    font-size: 13px; 
    color: #b0b5c0;
}

.gensmall { 
    font-size: 12px; 
    color: #8a8f99;
}

/* Навигация - стиль "checkered flag" */
.nav { 
    font-weight: 700; 
    font-size: 14px; 
    color: #ffffff;
    text-transform: uppercase;
}

.nav a, .nav a:visited { 
    color: #4dc3ff;
    border-bottom: 1px dashed #00aaff;
}

.nav a:hover, .nav a:active { 
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

table.nav { 
    background: linear-gradient(90deg, #1a1e25, #23272f);
    border: 1px solid #00aaff;
    border-radius: 20px;
    height: 35px;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.2);
}

table.nav:hover { 
    border-color: #ffffff;
    box-shadow: 0 0 15px #00aaff;
}

/* Ссылки форума */
.forumlink { 
    font-weight: 600; 
    font-size: 16px; 
    color: #4dc3ff;
}

a.forumlink, a.forumlink:visited { 
    text-decoration: none;
    color: #4dc3ff;
}

a.forumlink:hover, a.forumlink:active { 
    color: #ffffff;
    text-shadow: 0 0 8px #00aaff;
}

/* Поля ввода - стиль "racing cockpit" */
input { 
    text-indent: 8px; 
    border-radius: 4px;
}

input, textarea, select { 
    color: #ffffff; 
    font: normal 14px 'Segoe UI', 'Roboto', Arial, sans-serif;
    background-color: #1a1e25;
    border: 2px solid #2a2e35;
    transition: all 0.3s ease;
}

input.post, textarea.post, select { 
    background-color: #1a1e25;
    border: 2px solid #2a2e35;
    border-radius: 6px;
    padding: 6px 8px;
}

input.post:focus, textarea.post:focus, select:focus {
    border-color: #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    outline: none;
}

input.post { 
    height: 30px; 
}

/* Кнопки - стиль "start engine" */
input.button { 
    background: linear-gradient(180deg, #2a2e35, #1a1e25);
    color: #ffffff; 
    font-size: 14px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #00aaff;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.button:hover {
    background: linear-gradient(180deg, #00aaff, #0066aa);
    border-color: #ffffff;
    box-shadow: 0 0 20px #00aaff;
    transform: translateY(-2px);
}

input.mainoption { 
    background: linear-gradient(180deg, #00aaff, #0066aa);
    font-weight: 700; 
    border: 2px solid #ffffff;
    border-radius: 20px;
    height: 35px;
    padding: 0 20px;
    color: #ffffff;
    text-transform: uppercase;
}

input.liteoption { 
    background: linear-gradient(180deg, #2a2e35, #1a1e25);
    font-weight: 500; 
    border: 2px solid #4dc3ff;
    border-radius: 20px;
    height: 30px;
    color: #ffffff;
}

/* Выпадающие списки */
select optgroup { 
    background-color: #1a1e25; 
    color: #00aaff;
    font-weight: 700;
}

select option, select optgroup option { 
    background-color: #1a1e25; 
    color: #ffffff;
    padding: 5px;
}

/* Блоки кода - стиль "digital display" */
.code {
    font-family: 'Fira Code', 'Courier New', monospace; 
    font-size: 13px; 
    color: #00ffaa;
    background-color: #0f1217;
    border: 2px solid #00aaff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(0, 170, 255, 0.1);
    line-height: 1.6;
}

/* Блоки цитат */
.quote {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif; 
    font-size: 14px; 
    color: #c0c5d0; 
    line-height: 1.6;
    background: linear-gradient(145deg, #1a1e25, #15181d);
    border-left: 4px solid #00aaff;
    border-radius: 0 8px 8px 0;
    padding: 15px 20px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Тело сообщения */
.postbody { 
    font-size: 15px; 
    color: #e0e5ec;
    line-height: 1.7;
}

.postbody a, .postbody a:visited { 
    color: #4dc3ff;
    border-bottom: 1px dotted #00aaff;
}

.postbody a:hover, .postbody a:active { 
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* Имена пользователей */
.name { 
    font-weight: 700; 
    font-size: 15px; 
    color: #00aaff;
    text-transform: uppercase;
}

.name a, .name a:visited { 
    color: #00aaff;
}

.name a:hover, a.name a:active { 
    color: #ffffff;
}

/* Детали постов */
.postdetails { 
    color: #8a8f99; 
    font-size: 12px; 
    letter-spacing: 0.3px;
}

/* Разделитель */
td.spacerow { 
    background: linear-gradient(90deg, transparent, #00aaff, transparent);
    height: 2px; 
    padding: 0px; 
}

/* Заголовки категорий */
.cattitle { 
    font-weight: 700; 
    font-size: 16px; 
    letter-spacing: 1px; 
    color: #ffffff;
    text-transform: uppercase;
}

a.cattitle { 
    color: #4dc3ff;
}

a.cattitle:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #00aaff;
}

/* Главный заголовок */
.maintitle, h1, h2 {
    font-weight: 800; 
    font-size: 28px; 
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    line-height: 1.3;
}

/* ===============================================
   WR-Forum Professional Специфические стили
   =============================================== */

/* 1) Пагинация - стиль "racing numbers" */
.pgbutt a {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 600;
    text-decoration: none; 
    border: 2px solid #00aaff;
    background: linear-gradient(145deg, #1a1e25, #15181d);
    color: #ffffff;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.pgbutt a:hover {
    background: #00aaff;
    border-color: #ffffff;
    box-shadow: 0 0 15px #00aaff;
    transform: scale(1.1);
}

input, input.liteoption, .fakebut {
    border: 2px solid #2a2e35;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #1a1e25;
    color: #ffffff;
}

/* 2) QR-код с эффектом */
#qr img {
    width: 40px;
    height: 40px;
    position: fixed;
    right: 20px;
    top: 20px;
    border: 2px solid #00aaff;
    padding: 3px;
    background-color: #15181d;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
}

#qr img:hover {
    width: 200px;
    height: 200px;
    z-index: 1001;
    padding: 5px;
    border-color: #ffffff;
    box-shadow: 0 0 30px #00aaff;
    transform: rotate(5deg);
}

/* 3) Аватар-плейсхолдер */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #00aaff, #0066aa);
    color: #ffffff;
    font-size: 60px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.5);
    border: 3px solid #ffffff;
    text-transform: uppercase;
}

.guestavatar::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
}

/* 4) Навигационное меню в админке - стиль "pit stop" */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#nav8, #nav8 ul {
    background: linear-gradient(180deg, #1e2229, #15181d);
}

#nav8 {
    border-spacing: 0;
    position: relative;
    z-index: 50;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid #00aaff;
}

#nav8 ul {
    position: absolute;
    display: none;
    background: #1e2229;
    border: 2px solid #00aaff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 100;
}

#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: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

#nav8 ul a {
    padding: 10px 25px;
    text-align: left;
    font-size: 13px;
}

#nav8 td:hover, #nav8 li:hover {
    background: linear-gradient(180deg, #00aaff, #0066aa);
}

#nav8 td:hover a, #nav8 li:hover a {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

#nav8 td {
    text-align: center;
    border-right: 1px solid #2a2e35;
}

#nav8 td:last-child {
    border-right: none;
}

/* 5) Стиль для блока загрузки - "speed meter" */
#cssbar-wrapper {
    width: 400px;
    height: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#cssbar-border {
    border: 3px solid #00aaff;
    border-radius: 15px;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 4px 3px;
    background: #15181d;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

#cssbar-line {
    background: linear-gradient(90deg, #00aaff, #ffffff, #00aaff);
    position: absolute;
    height: 100%;
    width: 100%;
    background-size: 200% 100%;
    animation: cssbar-slide 2s linear infinite;
    box-shadow: 0 0 10px #00aaff;
}

@keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Дополнительные элементы в стиле "racing" */
/* Полоска прогресса как в гоночных играх */
.progress-bar {
    height: 5px;
    background: linear-gradient(90deg, #00aaff, #00ffaa);
    border-radius: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Стиль для спойлеров и сворачиваемых блоков */
.spoiler {
    background: #1a1e25;
    border: 2px solid #00aaff;
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
}

.spoiler-header {
    background: linear-gradient(90deg, #00aaff, #0066aa);
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    table.forumline {
        border-radius: 8px;
    }
    
    th, td.th {
        font-size: 13px;
        height: 30px;
    }
    
    .maintitle, h1, h2 {
        font-size: 22px;
    }
}