﻿/* ===== ТЕМА "БИСЕРНАЯ ВЫШИВКА" ДЛЯ ФОРУМА ===== */
/* Фон-канва: можно использовать текстуру canvas.png или однотонный глубокий цвет */

/* ---- Основная канва (фон страницы) ---- */
BODY {
    FONT-SIZE: 14px;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    SCROLLBAR-FACE-COLOR: #a892b5; /* Сливовый */
    BACKGROUND: #1a0f23; /* Глубокий темно-фиолетовый, как бархатная основа */
    /* Альтернатива: BACKGROUND: #f9f5f7 url('images/velvet_bg.jpg') fixed; */
    PADDING-BOTTOM: 0px;
    MARGIN: 10px;
    FONT: 13px 'Georgia', 'Palatino Linotype', 'Times New Roman', serif;
    SCROLLBAR-HIGHLIGHT-COLOR: #e6d5f0;
    SCROLLBAR-SHADOW-COLOR: #7a5c8a;
    COLOR: #3d2c4d; /* Темно-сливовый для текста */
    SCROLLBAR-3DLIGHT-COLOR: #5d4a6d;
    SCROLLBAR-ARROW-COLOR: #d4c2e0;
    PADDING-TOP: 0px;
    SCROLLBAR-TRACK-COLOR: #2d1b3a;
    SCROLLBAR-DARKSHADOW-COLOR: #4a3659;
    line-height: 1.6;
}

/* ---- Общие стили текста (шелковые нити) ---- */
FONT, TH, TD, P { 
    FONT: 14px 'Segoe UI', 'Tahoma', 'Arial', sans-serif; 
    COLOR: #4a3659;
}
P { FONT-SIZE: 14px; line-height: 1.7; }
.gensmall { FONT-SIZE: 12px; color: #7a5c8a; font-style: italic; }
TD.genmed, .genmed { FONT-SIZE: 13px; }
.explaintitle { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #b8860b; /* Золотистый, как металлик бисера */
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* ---- Ссылки-бусины ---- */
A:link, A:active, A:visited, A.postlink { 
    COLOR: #2e5984; /* Сапфировый бисер */
    TEXT-DECORATION: none;
    font-weight: 600;
    padding-bottom: 1px;
    border-bottom: 1px dotted #2e5984;
}
A:hover { 
    COLOR: #da70d6; /* Сиреневый перелив */
    TEXT-DECORATION: none;
    border-bottom: 2px solid #da70d6;
}

/* ---- Заголовки тем (как названия работ) ---- */
.topictitle { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 15px; 
    COLOR: #5d4a6d;
    font-family: 'Palatino Linotype', 'Book Antiqua', serif;
}
A.topictitle:link, A.topictitle:visited { 
    COLOR: #5d4a6d;
    text-decoration: none;
}
A.topictitle:hover { 
    COLOR: #b8860b; /* Золото */
    text-shadow: 0 0 5px rgba(184, 134, 11, 0.3);
}
.name { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #8b7355; /* Бронзовый бисер */
}

/* ---- Разделители (как контур рисунка) ---- */
HR { 
    BORDER: none; 
    HEIGHT: 2px; 
    BACKGROUND: linear-gradient(to right, 
        transparent, 
        #b8860b, /* Золотая нить */
        #8a2be2, /* Фиолетовая нить */
        #b8860b, 
        transparent
    );
    MARGIN: 20px 0;
}

/* ---- Стили для таблиц и категорий (основные вышитые области) ---- */
/* Шапки категорий - как заголовки разделов в рамке */
TD.cat, TD.catHead, TD.catSides, TD.catLeft, TD.catRight, TD.catBottom {
    FONT-WEIGHT: bold;
    BACKGROUND: linear-gradient(135deg, #6a5acd, #8a2be2, #6a5acd); /* Сине-фиолетовый градиент */
    COLOR: #ffebcd; /* Миндальный, светлый */
    TEXT-INDENT: 10px;
    LETTER-SPACING: 1px;
    HEIGHT: 36px;
    font-size: 14px;
    border: 2px solid #4b0082; /* Индиго */
    border-radius: 8px 8px 0 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* ---- Чередование строк (фон для бисеринок-сообщений) ---- */
.row1 { 
    BACKGROUND: #f8f4ff; /* Очень светлый лавандовый */
    border-bottom: 1px dotted #d8c8ff;
}
.row2 { 
    BACKGROUND: #f0e8ff; /* Светлый лавандовый */
    border-bottom: 1px dotted #d8c8ff;
}
.row3 { 
    BACKGROUND: #e8dcff;
    border-bottom: 1px dotted #d8c8ff;
}
.helpline { 
    BACKGROUND: #e0d0ff;
    font-style: italic;
    padding: 5px;
    border-radius: 4px;
}
TD.spacerow { 
    BACKGROUND: transparent; 
    height: 10px; 
}
TD.rowpic { 
    BACKGROUND: #f5f0ff; 
    border-left: 3px double #9370db;
}

/* ---- Заголовки колонок таблиц ---- */
TH {
    PADDING: 10px;
    FONT-WEIGHT: bold;
    FONT-SIZE: 13px;
    BACKGROUND: linear-gradient(to bottom, #9370db, #8a2be2); /* Фиолетовый градиент */
    COLOR: #fffaf0; /* Цвет слоновой кости */
    WHITE-SPACE: nowrap;
    HEIGHT: 32px;
    TEXT-ALIGN: center;
    border: 2px solid #4b0082;
    border-radius: 6px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

/* ---- Основные контейнеры (рамки для вышивки) ---- */
.bodyline {
    BORDER: 3px double #9370db; /* Двойная рамка */
    BACKGROUND: #fffaf0; /* Фон слоновой кости, как канва */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    padding: 1px;
    background-image: 
        linear-gradient(90deg, transparent 95%, rgba(147, 112, 219, 0.1) 100%),
        linear-gradient(0deg, transparent 95%, rgba(147, 112, 219, 0.1) 100%);
    background-size: 20px 20px;
}
.forumline {
    BORDER: 2px solid #d8bfd8; /* Чертополох */
    BACKGROUND: #fffaf0;
    border-radius: 8px;
}

/* ---- Главные заголовки (как вышитые названия) ---- */
.maintitle, H1 {
    FONT: bold 26px/130% 'Palatino Linotype', 'Book Antiqua', serif;
    COLOR: #8a2be2; /* Синий фиолетовый */
    TEXT-DECORATION: none;
    text-shadow: 2px 2px 4px rgba(138, 43, 226, 0.2);
    letter-spacing: 1px;
}
H2, .subtitle {
    FONT: bold 20px/150% 'Palatino Linotype', 'Book Antiqua', serif;
    COLOR: #5d4a6d; /* Сливовый */
    TEXT-DECORATION: none;
    border-bottom: 2px dotted #b8860b;
    padding-bottom: 5px;
}

/* ---- Навигация и тело сообщения ---- */
.nav { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #8b7355;
    font-family: 'Georgia', serif;
}
.postbody { 
    FONT-SIZE: 14px; 
    LINE-HEIGHT: 1.7; 
    COLOR: #4a3659;
    padding: 10px;
}
.postdetails { 
    FONT-SIZE: 12px; 
    COLOR: #7a5c8a; 
    font-style: italic;
    border-top: 1px dotted #d8bfd8;
    padding-top: 5px;
}

/* ---- БЛОКИ ЦИТАТ и КОДА (как вставленные мини-вышивки) ---- */
/* Общий стиль рамки для спец. блоков - как вышитая рамка */
.code_table, .php_table, .q_table, .quote_table {
    BORDER: 2px solid #da70d6 !important; /* Орхидея */
    WIDTH: 98% !important;
    FONT-FAMILY: inherit;
    BACKGROUND: #fffaf0 !important; /* Слоновая кость */
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(218, 112, 214, 0.2);
    border-style: double !important;
    border-width: 4px !important;
}
/* Стиль текста внутри ячеек этих блоков */
.code_td, .php_td, .q_td, .quote_td {
    FONT-SIZE: 13px !important;
    COLOR: #5d4a6d !important;
    FONT-FAMILY: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    padding: 12px !important;
    line-height: 1.5;
    background: linear-gradient(90deg, #fffaf0, #f8f4ff, #fffaf0) !important;
}

/* Уточненные стили для разных типов блоков */
.quote, .quote_table, .quote_td {
    border-left: 6px solid #b8860b !important; /* Золотая акцентная полоса */
    background-color: #fff8dc !important; /* Цвет светлого бисера */
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic;
}
.code, .php_table, .code_table, .code_td, .php_td {
    border-left: 6px solid #2e8b57 !important; /* Морская волна */
    background-color: #f0fff8 !important;
    font-weight: bold;
}
.q_table, .q_td {
    border-left: 6px solid #ff69b4 !important; /* Ярко-розовый */
    background-color: #fff0f5 !important; /* Розовый лавандовый */
}

.errorline { 
    BORDER: 2px solid #dc143c !important; 
    BACKGROUND: #ffebee !important; 
    color: #b22222;
}

/* ---- Формы и элементы ввода (как места для новых стежков) ---- */
FORM { DISPLAY: inline; }
INPUT, SELECT {
    FONT: 13px 'Segoe UI', Tahoma, sans-serif;
    padding: 6px 8px;
    border: 2px solid #9370db;
    border-radius: 6px;
    background: #fffaf0;
    color: #4b0082;
}
INPUT.post, TEXTAREA.post {
    BORDER: 2px solid #9370db;
    BACKGROUND: #fffaf0;
    padding: 10px;
    FONT: 13px 'Segoe UI', Tahoma, sans-serif;
    border-radius: 8px;
    color: #4b0082;
}
INPUT.button, INPUT.liteoption, .fakebut, INPUT.catbutton, INPUT.mainoption {
    BORDER: 2px solid #8b7355;
    BACKGROUND: linear-gradient(to bottom, #daa520, #b8860b); /* Золотой градиент */
    FONT-SIZE: 13px;
    FONT-WEIGHT: bold;
    COLOR: #fffaf0;
    padding: 8px 16px;
    border-radius: 50px; /* Овальная форма как бусина */
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}
INPUT.button:hover, INPUT.liteoption:hover {
    BACKGROUND: linear-gradient(to bottom, #ffd700, #daa520); /* Ярче при наведении */
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0,0,0,0.3);
}

/* ---- Дополнительные стили ---- */
A.but, A.but:visited, A.but:hover {
    COLOR: #fffaf0;
    TEXT-DECORATION: none;
    background: #8a2be2;
    padding: 5px 10px;
    border-radius: 50px;
}
.topbkg { 
    BACKGROUND: linear-gradient(90deg, #1a0f23, #2d1b3a, #1a0f23); 
    height: 40px;
    border-bottom: 2px solid #b8860b;
}
.topnav {
    BORDER-TOP: 2px solid #b8860b;
    BORDER-BOTTOM: 2px solid #b8860b;
    FONT-SIZE: 13px;
    BACKGROUND: linear-gradient(to bottom, #2d1b3a, #1a0f23);
    COLOR: #d8bfd8;
    HEIGHT: 28px;
    padding: 4px 0;
    font-family: 'Georgia', serif;
}
.admin { COLOR: #ff4500; } /* Оранжево-красный для админов */
A.admin, A.admin:visited { COLOR: #ff4500; }
A.admin:hover { COLOR: #ff6347; text-shadow: 0 0 8px #ff4500; }
.mod { COLOR: #32cd32; } /* Лаймовый для модераторов */
A.mod, A.mod:visited { COLOR: #32cd32; }
A.mod:hover { COLOR: #7cfc00; text-shadow: 0 0 8px #32cd32; }
IMG { 
    BORDER: 2px solid #9370db; 
    border-radius: 6px;
    padding: 2px;
    background: #fffaf0;
}
.copyright {
    FONT-SIZE: 11px;
    COLOR: #d8bfd8;
    FONT-FAMILY: 'Georgia', serif;
    TEXT-ALIGN: center;
    padding: 15px;
    background: #2d1b3a;
    border-top: 1px solid #b8860b;
    margin-top: 20px;
    border-radius: 0 0 8px 8px;
}
A.copyright { COLOR: #da70d6; }
A.copyright:hover { COLOR: #ff69b4; }

/* ===== СТИЛИ ДЛЯ WR-Forum Professional ===== */

/* 1) Стиль для ссылок-пагинации (бусины-кнопочки) */
.pgbutt a {
    font-family: 'Georgia', serif;
    padding: 6px 12px;
    text-decoration: none;
    border: 2px solid #9370db;
    background: linear-gradient(to bottom, #e6e6fa, #d8bfd8);
    color: #4b0082;
    margin: 3px;
    border-radius: 50px;
    font-size: 13px;
    display: inline-block;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.pgbutt a:hover {
    background: linear-gradient(to bottom, #da70d6, #ba55d3);
    color: #fffaf0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 2) QR-CODE в стиле вышитой метки */
#qr img {
    width: 40px; height: 40px;
    position: fixed; right: 15px; top: 15px;
    border: 2px solid #b8860b;
    padding: 3px;
    background-color: #fffaf0;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
#qr img:hover { 
    width: 180px; height: 180px; 
    z-index: 1000;
    border: 3px solid #da70d6;
    border-radius: 12px;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* 3) Аватар-заглушка для гостя (бусина с буквой) */
.guestavatar {
    width: 100px; height: 100px;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, #9370db, #8a2be2, #4b0082); /* Переливающаяся бусина */
    color: #ffebcd;
    font-size: 48px;
    font-weight: bold;
    display: table-cell;
    border-radius: 50%; /* Идеальная бусина */
    position: relative;
    vertical-align: middle;
    border: 3px solid #b8860b;
    box-shadow: 
        inset 0 0 10px rgba(255,255,255,0.3),
        0 5px 15px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 4) Навигационное меню в админке (бисерная нить) */
#nav8, #nav8 ul, #nav8 li { margin: 0; padding: 0; border: 0; }
#nav8, #nav8 ul { 
    background: linear-gradient(to bottom, #2d1b3a, #4a3659);
    border: 2px solid #b8860b;
    border-radius: 8px;
}
#nav8 { width: 100%; }
#nav8 ul { 
    position: absolute; 
    display: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border-radius: 6px;
    min-width: 180px;
}
#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: 10px 20px;
    text-decoration: none;
    color: #e6d5f0;
    white-space: nowrap;
    border-bottom: 1px dotted #7a5c8a;
}
#nav8 ul a { padding: 10px 25px; text-align: left; }
#nav8 td:hover, #nav8 li:hover { 
    background: linear-gradient(to right, #8a2be2, #9370db); 
}
#nav8 td { 
    text-align: center; 
    padding: 0; 
    border-right: 1px dotted #7a5c8a;
}
#nav8 td:last-child { border-right: none; }

/* 5) Стиль для блока загрузки (бисерная нить в движении) */
#cssbar-wrapper { width: 300px; height: 24px; position: absolute; left: 50%; }
#cssbar-border {
    border: 2px solid #b8860b;
    height: 100%; width: 100%; position: relative; left: -50%; top: -50%;
    padding: 4px;
    border-radius: 50px;
    background: #2d1b3a;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
#cssbar-whitespace { 
    overflow: hidden; 
    height: 100%; 
    width: 100%; 
    margin: 0 auto; 
    position: relative; 
    border-radius: 50px;
}
#cssbar-line {
    background: linear-gradient(90deg, 
        transparent, 
        #da70d6, /* Орхидея */
        #ff69b4, /* Ярко-розовый */
        #9370db, /* Средний фиолетовый */
        #da70d6,
        transparent
    );
    position: absolute; 
    height: 100%; 
    width: 100%;
    animation: cssbar-slide 1.5s linear infinite;
    border-radius: 50px;
}
@keyframes cssbar-slide { 
    0% { transform: translateX(-100%); } 
    100% { transform: translateX(100%); } 
}