/* ==============================================
   ОБНОВЛЕННЫЙ СТИЛЬ ФОРУМА - СОВРЕМЕННЫЙ ДИЗАЙН
   ============================================== */

/* Основные стили body с градиентным фоном */
body { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    margin: 0px; 
    padding: 0px; 
    scrollbar-arrow-color: #3B88C5; 
    scrollbar-face-color: #FFFFFF; 
    scrollbar-track-color: #E0E0E0; 
    scrollbar-highlight-color: #FFFFFF; 
    scrollbar-3dlight-color: #C0C0C0; 
    scrollbar-shadow-color: #FFFFFF; 
    scrollbar-darkshadow-color: #B0B0B0;
    min-height: 100vh;
}

/* Обновленная типографика с Google Fonts стилем */
font, th, td, p { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    font-size: 14px; 
    line-height: 1.6;
}

/* Современные стили ссылок с анимацией */
a { 
    text-decoration: none; 
    color: #4A90E2; 
    transition: all 0.3s ease;
    position: relative;
}

a:visited { 
    color: #3A7BD5; 
}

a:hover, a:active { 
    color: #FF6B6B; 
    transform: translateY(-1px);
}

a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

/* Стильная горизонтальная линия */
hr { 
    height: 2px; 
    border: none;
    background: linear-gradient(90deg, #4ECDC4, #44A08D);
    border-radius: 1px;
    margin: 20px 0;
}

img { 
    border: 0px; 
    border-radius: 4px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

form { 
    display: inline; 
}

/* Обновленные стили таблиц с современными эффектами */
table.forumline { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

table.forumline:hover { 
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Стили строк с чередующимися цветами */
.row, .row1, .row2 { 
    background: rgba(255, 255, 255, 0.9);
    transition: background-color 0.3s ease;
}

.row:hover, .row1:hover, .row2:hover {
    background: rgba(255, 255, 255, 1);
}

.row3 { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Современные заголовки с градиентом */
th, td.th { 
    color: #FFFFFF; 
    font-size: 14px; 
    font-weight: 600; 
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    height: 35px; 
    border: none;
    border-radius: 8px 8px 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    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;
}

th:hover::before, td.th:hover::before {
    left: 100%;
}

/* Стили категорий с улучшенным дизайном */
td.cat, td.catHead, td.catLeft, td.rowpic, td.catSides, td.catRight, td.catBottom { 
    color: #2C3E50; 
    font-size: 14px; 
    font-weight: 500;
    background: linear-gradient(135deg, #ECF0F1 0%, #D5DBDB 100%);
    height: 35px; 
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Размеры шрифтов с улучшенной читаемостью */
.gen { 
    font-size: 14px; 
    line-height: 1.6;
}

.genmed { 
    font-size: 13px; 
    line-height: 1.5;
}

.gensmall { 
    font-size: 12px; 
    line-height: 1.4;
}

/* Стили навигации с современными эффектами */
.nav { 
    font-weight: 600; 
    font-size: 14px; 
    color: #FF6B6B;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav a, .nav a:visited { 
    text-decoration: none; 
    color: #4A90E2;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav a:hover, .nav a:active { 
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Обновленная таблица навигации */
table.nav { 
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    height: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

table.nav:hover { 
    border: 1px solid #4A90E2;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Стили ссылок форумов */
.forumlink { 
    font-weight: 600; 
    font-size: 15px;
    color: #2C3E50;
    transition: all 0.3s ease;
}

a.forumlink, a.forumlink:visited { 
    text-decoration: none;
    color: #2C3E50;
}

a.forumlink:hover, a.forumlink:active { 
    color: #E74C3C;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Современные стили форм */
input { 
    text-indent: 8px;
    transition: all 0.3s ease;
}

input, textarea, select { 
    color: #2C3E50; 
    font: normal 14px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 6px;
}

input.post, textarea.post, select { 
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #BDC3C7;
    padding: 10px;
    transition: all 0.3s ease;
}

input.post:focus, textarea.post:focus, select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

input.post { 
    height: 40px; 
}

/* Стильные кнопки с градиентом */
input.button { 
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #FFFFFF; 
    font-size: 14px; 
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

input.button:active {
    transform: translateY(0);
}

/* Стили опций */
input.mainoption { 
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    height: 38px;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.mainoption:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

input.liteoption { 
    background: rgba(255, 255, 255, 0.9);
    color: #2C3E50;
    font-weight: 500;
    border: 2px solid #BDC3C7;
    border-radius: 6px;
    height: 38px;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.liteoption:hover {
    border-color: #4A90E2;
    background: #FFFFFF;
}

/* Стили для селектов */
select optgroup { 
    background: linear-gradient(135deg, #ECF0F1 0%, #D5DBDB 100%);
    color: #2C3E50;
    font-weight: 600;
}

select option, select optgroup option { 
    background: #FFFFFF;
    color: #2C3E50;
    padding: 8px;
}

/* Стили блоков кода с улучшенным дизайном */
.code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #2C3E50;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: auto;
}

.code::before {
    content: 'CODE';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 10px;
    color: #6C757D;
    font-weight: 600;
}

/* Стили цитат с современным дизайном */
.quote {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    background: linear-gradient(135deg, #F1F3F4 0%, #E8EAED 100%);
    border-left: 4px solid #4A90E2;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 16px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 48px;
    color: #4A90E2;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Стили постов */
.postbody { 
    font-size: 14px; 
    color: #2C3E50;
    line-height: 1.7;
    padding: 16px;
}

.postbody a, .postbody a:visited { 
    color: #4A90E2;
    text-decoration: none;
    border-bottom: 1px dotted #4A90E2;
    transition: all 0.3s ease;
}

.postbody a:hover, .postbody a:active { 
    color: #E74C3C;
    border-bottom-color: #E74C3C;
}

/* Стили имен пользователей */
.name { 
    font-weight: 600; 
    font-size: 14px;
    color: #2C3E50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.name a, .name a:visited { 
    text-decoration: none;
    color: #E74C3C;
    transition: all 0.3s ease;
}

.name a:hover, .name a:active { 
    color: #C0392B;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Детали постов */
.postdetails { 
    color: #7F8C8D; 
    font-size: 12px;
    font-style: italic;
}

/* Разделительные строки */
td.spacerow { 
    background: linear-gradient(90deg, #ECF0F1, #D5DBDB, #ECF0F1);
    height: 3px; 
    padding: 0px;
    border-radius: 2px;
}

/* Заголовки категорий */
.cattitle { 
    font-weight: 600; 
    font-size: 15px; 
    letter-spacing: 0.5px; 
    color: #2C3E50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

a.cattitle { 
    text-decoration: none;
    color: #2C3E50;
    transition: all 0.3s ease;
}

a.cattitle:hover { 
    color: #E74C3C;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Главные заголовки */
.maintitle, h1, h2 {
    font-weight: 700; 
    font-size: 28px; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none; 
    line-height: 1.3; 
    color: #2C3E50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    text-align: center;
}

/* ==============================================
   СТИЛИ для скрипта форума WR-Forum Professional
   ============================================== */

/* Обновленные стили кнопок с современным дизайном */
.pgbutt a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 8px 16px;
    text-decoration: none;
    border: 2px solid #4A90E2;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    color: #4A90E2;
    margin: 8px 4px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pgbutt a:hover {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* Обновленные стили инпутов */
input, input.liteoption, .fakebut {
    border: 2px solid #BDC3C7;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

input:focus, input.liteoption:focus, .fakebut:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* QR-код с улучшенным дизайном */
#qr img {
    width: 40px;
    height: 40px;
    position: fixed;
    right: 20px;
    top: 20px;
    border: 2px solid #4A90E2;
    border-radius: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

#qr img:hover {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    padding: 8px;
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

/* Аватар гостя с градиентом */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    color: #FFFFFF;
    font-size: 48px;
    font-weight: 700;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.guestavatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Обновленное навигационное меню */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#nav8, #nav8 ul {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#nav8 {
    border-spacing: 0;
    position: relative;
    z-index: 100;
    width: 100%;
}

#nav8 ul {
    position: absolute;
    display: none;
    border-radius: 8px;
    margin-top: 4px;
}

#nav8 td:hover ul {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#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: #2C3E50;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

#nav8 ul a {
    text-align: left;
    padding: 12px 20px;
}

#nav8 td:hover, #nav8 li:hover {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

#nav8 td:hover a, #nav8 li:hover a {
    color: #FFFFFF;
}

#nav8 td {
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Обновленный стиль загрузки */
#cssbar-wrapper {
    width: 350px;
    height: 25px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

#cssbar-border {
    border: 3px solid #4A90E2;
    height: 100%;
    width: 100%;
    position: relative;
    border-radius: 15px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    background: #F8F9FA;
}

#cssbar-line {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    animation: cssbar-slide 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

@keyframes cssbar-slide {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Дополнительные улучшения */
* {
    box-sizing: border-box;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Улучшенная отзывчивость */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .maintitle, h1, h2 {
        font-size: 24px;
    }
    
    #qr img {
        width: 35px;
        height: 35px;
        right: 15px;
        top: 15px;
    }
    
    #qr img:hover {
        width: 180px;
        height: 180px;
    }
    
    .guestavatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
}