﻿/* ===== РОМАНТИЧЕСКИЙ СТИЛЬ ДЛЯ ФОРУМА ВЛЮБЛЕННЫХ ===== */
/* Нежный дизайн для обсуждения отношений, чувств и любви */

/* ---- Фон страницы (нежный градиент заката) ---- */
BODY {
    FONT-SIZE: 14px;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    SCROLLBAR-FACE-COLOR: #ffd1dc;
    BACKGROUND: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 30%, #ffdde1 70%, #fff0f5 100%);
    PADDING-BOTTOM: 0px;
    MARGIN: 15px;
    FONT: 13px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
    SCROLLBAR-SHADOW-COLOR: #ffb6c1;
    COLOR: #6d4a5c;
    SCROLLBAR-3DLIGHT-COLOR: #ffb6c1;
    SCROLLBAR-ARROW-COLOR: #ff69b4;
    PADDING-TOP: 0px;
    SCROLLBAR-TRACK-COLOR: #ffe8f0;
    SCROLLBAR-DARKSHADOW-COLOR: #ff99aa;
    line-height: 1.7;
    background-attachment: fixed;
    /* Фоновый узор из микро-сердечек (опционально) */
    /* background-image: radial-gradient(circle at 1px 1px, rgba(255,182,193,0.2) 1px, transparent 1px);
    background-size: 20px 20px; */
}

/* ---- Романтичная типография ---- */
FONT, TH, TD { 
    FONT: 14px 'Segoe UI', 'Tahoma', 'Arial', sans-serif; 
    COLOR: #7d5a6d;
}
P { 
    FONT: 14px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.8;
    color: #6d4a5c;
}
.gensmall { 
    FONT-SIZE: 12px; 
    color: #b88ca7;
    font-style: italic;
}
TD.genmed, .genmed { 
    FONT-SIZE: 13px;
    font-weight: 500;
}
.explaintitle { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #ff6b9d;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

/* ---- Ссылки (как признания в любви) ---- */
A:link, A:active, A:visited, A.postlink { 
    COLOR: #d46a8c;
    TEXT-DECORATION: none;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 1px dotted #ffb6c1;
    transition: all 0.3s ease;
}
A:hover { 
    COLOR: #ff4081;
    TEXT-DECORATION: none;
    border-bottom: 2px solid #ff4081;
    text-shadow: 0 0 3px rgba(255,64,129,0.2);
}

/* ---- Заголовки тем (важные признания) ---- */
.topictitle { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 15px; 
    COLOR: #b85c7e;
    font-family: 'Georgia', 'Times New Roman', 'Palatino', serif;
    letter-spacing: 0.3px;
}
A.topictitle:link, A.topictitle:visited { 
    COLOR: #b85c7e;
    text-decoration: none;
}
A.topictitle:hover { 
    COLOR: #ff4081;
    text-shadow: 0 0 5px rgba(255,64,129,0.3);
}
.name { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #c97b9d;
}

/* ---- Разделители (романтичные линии) ---- */
HR { 
    BORDER: none; 
    HEIGHT: 3px; 
    BACKGROUND: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="3"><path d="M0,1.5 Q5,0 10,1.5 T20,1.5" stroke="%23ffb6c1" fill="none" stroke-width="2"/></svg>') repeat-x;
    MARGIN: 25px 0;
    opacity: 0.7;
}

/* ---- Стили для таблиц и категорий (сердечные разделы) ---- */
/* Шапки категорий - нежные градиенты с сердечками */
TD.cat, TD.catHead, TD.catSides, TD.catLeft, TD.catRight, TD.catBottom {
    FONT-WEIGHT: bold;
    BACKGROUND: linear-gradient(to bottom, #ffb6c1 0%, #ff8fab 50%, #ff6b9d 100%);
    COLOR: white;
    TEXT-INDENT: 12px;
    LETTER-SPACING: 0.5px;
    HEIGHT: 40px;
    font-size: 14px;
    border: none;
    border-radius: 15px 15px 0 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    box-shadow: 
        0 4px 10px rgba(255,107,157,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
    border-bottom: 3px solid #ff4081;
    position: relative;
    overflow: hidden;
}
/* Декоративные сердечки в шапках */
TD.cat:before, TD.catHead:before {
    content: "♥";
    position: absolute;
    right: 15px;
    color: rgba(255,255,255,0.3);
    font-size: 20px;
}

/* ---- Чередование строк (лепестки роз) ---- */
.row1 { 
    BACKGROUND: linear-gradient(to right, #ffffff, #fffafc);
    border-bottom: 1px solid #ffe8f0;
}
.row2 { 
    BACKGROUND: linear-gradient(to right, #fffafc, #fff5f9);
    border-bottom: 1px solid #ffe8f0;
}
.row3 { 
    BACKGROUND: linear-gradient(to right, #fff5f9, #fff0f5);
    border-bottom: 1px solid #ffe8f0;
}
.helpline { 
    BACKGROUND: #fff0f7;
    padding: 10px;
    border-radius: 10px;
    border-left: 5px solid #ffb6c1;
    font-style: italic;
    color: #b85c7e;
}
TD.spacerow { 
    BACKGROUND: transparent; 
    height: 15px; 
}
TD.rowpic { 
    BACKGROUND: #fff5fb;
    border-left: 5px solid #ff8fab;
}

/* ---- Заголовки колонок таблиц (милые сердечки) ---- */
TH {
    PADDING: 12px;
    FONT-WEIGHT: bold;
    FONT-SIZE: 13px;
    BACKGROUND: linear-gradient(to bottom, #ffccd5, #ffb6c1);
    COLOR: white;
    WHITE-SPACE: nowrap;
    HEIGHT: 36px;
    TEXT-ALIGN: center;
    border: none;
    border-radius: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    box-shadow: 
        0 3px 8px rgba(255,182,193,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
    margin: 5px;
    position: relative;
}
TH:before {
    content: "♥";
    margin-right: 8px;
    color: rgba(255,255,255,0.8);
}

/* ---- Основные контейнеры (любовные письма) ---- */
.bodyline {
    BORDER: 2px solid #ffccd5;
    BACKGROUND: linear-gradient(to bottom, #ffffff, #fffafc);
    border-radius: 20px;
    box-shadow: 
        0 8px 30px rgba(255,182,193,0.15),
        inset 0 1px 0 rgba(255,255,255,0.9);
    padding: 3px;
    margin: 15px auto;
    max-width: 1200px;
    position: relative;
}
.bodyline:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,20 Q25,0 50,20 T100,20" fill="%23ffccd5"/></svg>') no-repeat;
}
.forumline {
    BORDER: 2px solid #ffdde1;
    BACKGROUND: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* ---- Главные заголовки (признания) ---- */
.maintitle, H1 {
    FONT: bold 30px/130% 'Georgia', 'Times New Roman', 'Palatino', serif;
    COLOR: #ff6b9d;
    TEXT-DECORATION: none;
    text-shadow: 
        0 2px 4px rgba(255,107,157,0.15),
        0 1px 0 rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
    margin: 20px 0;
    position: relative;
    padding-left: 35px;
}
.maintitle:before, H1:before {
    content: "♥";
    position: absolute;
    left: 0;
    color: #ffb6c1;
    font-size: 28px;
}
H2, .subtitle {
    FONT: bold 24px/150% 'Georgia', 'Times New Roman', 'Palatino', serif;
    COLOR: #d46a8c;
    TEXT-DECORATION: none;
    border-bottom: 2px dotted #ffb6c1;
    padding-bottom: 10px;
    margin-top: 25px;
    padding-left: 30px;
}
H2:before, .subtitle:before {
    content: "❤";
    position: absolute;
    left: 0;
    margin-left: 10px;
    color: #ff8fab;
}

/* ---- Навигация и тело сообщения ---- */
.nav { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #c97b9d;
    font-family: 'Georgia', 'Times New Roman', serif;
}
.postbody { 
    FONT-SIZE: 14px; 
    LINE-HEIGHT: 1.8; 
    COLOR: #6d4a5c;
    padding: 20px;
    background: linear-gradient(to right, #fffafc, #ffffff);
    border-radius: 10px;
}
.postdetails { 
    FONT-SIZE: 12px; 
    COLOR: #b88ca7; 
    font-style: italic;
    border-top: 2px dotted #ffccd5;
    padding-top: 10px;
    margin-top: 15px;
}

/* ---- БЛОКИ ЦИТАТ и КОДА (любовные записки) ---- */
/* Общий стиль рамки для спец. блоков */
.code_table, .php_table, .q_table, .quote_table {
    BORDER: 2px solid #ffccd5 !important;
    WIDTH: 98% !important;
    FONT-FAMILY: inherit;
    BACKGROUND: linear-gradient(to bottom, #fffafc, #fff5f9) !important;
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(255,204,213,0.2),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-style: solid !important;
    position: relative;
}
.code_table:before, .quote_table:before {
    content: "“";
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 60px;
    color: #ffccd5;
    font-family: 'Georgia', serif;
    opacity: 0.3;
}
/* Стиль текста внутри ячеек этих блоков */
.code_td, .php_td, .q_td, .quote_td {
    FONT-SIZE: 13px !important;
    COLOR: #7d5a6d !important;
    FONT-FAMILY: 'Georgia', 'Times New Roman', 'Palatino', serif !important;
    padding: 18px !important;
    line-height: 1.7;
    background: transparent !important;
}

/* Уточненные стили для разных типов блоков */
.quote, .quote_table, .quote_td {
    border-left: 8px solid #ffb6c1 !important;
    background: linear-gradient(to right, #fffafc, #fff5f9) !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic;
    color: #8d6a7d !important;
}
.code, .php_table, .code_table, .code_td, .php_td {
    border-left: 8px solid #ff8fab !important;
    background: linear-gradient(to right, #fffafc, #fff0f7) !important;
    font-weight: bold;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
}
.q_table, .q_td {
    border-left: 8px solid #ff6b9d !important;
    background: linear-gradient(to right, #fffafc, #ffebf5) !important;
}

.errorline { 
    BORDER: 2px solid #ff6b6b !important; 
    BACKGROUND: linear-gradient(to bottom, #ffe6e6, #ffcccc) !important; 
    color: #cc5555;
    border-radius: 12px;
}

/* ---- Формы и элементы ввода (поля для любовных писем) ---- */
FORM { DISPLAY: inline; }
INPUT, SELECT {
    FONT: 13px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    padding: 10px 15px;
    border: 2px solid #ffccd5;
    border-radius: 12px;
    background: linear-gradient(to bottom, #ffffff, #fffafc);
    color: #7d5a6d;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
INPUT:focus, SELECT:focus, TEXTAREA:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255,107,157,0.2);
    outline: none;
}
INPUT.post, TEXTAREA.post {
    BORDER: 2px solid #ffb6c1;
    BACKGROUND: linear-gradient(to bottom, #ffffff, #fffafc);
    padding: 15px;
    FONT: 13px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    border-radius: 15px;
    color: #6d4a5c;
    box-shadow: 
        inset 0 2px 8px rgba(0,0,0,0.03),
        0 1px 0 rgba(255,255,255,0.9);
}
INPUT.button, INPUT.liteoption, .fakebut, INPUT.catbutton, INPUT.mainoption {
    BORDER: none;
    BACKGROUND: linear-gradient(to bottom, #ff8fab, #ff6b9d, #ff4081);
    FONT-SIZE: 14px;
    FONT-WEIGHT: bold;
    COLOR: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 
        0 5px 15px rgba(255,107,157,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
INPUT.button:hover, INPUT.liteoption:hover {
    BACKGROUND: linear-gradient(to bottom, #ff6b9d, #ff4081, #ff2d6d);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(255,64,129,0.5),
        inset 0 1px 0 rgba(255,255,255,0.3);
}
INPUT.button:after {
    content: "♥";
    position: absolute;
    right: 15px;
    opacity: 0.5;
}

/* ---- Дополнительные стили ---- */
A.but, A.but:visited, A.but:hover {
    COLOR: white;
    TEXT-DECORATION: none;
    background: linear-gradient(to bottom, #ffb6c1, #ff8fab);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255,182,193,0.4);
}
.topbkg { 
    BACKGROUND: linear-gradient(90deg, #ff6b9d, #ff8fab, #ff6b9d);
    height: 50px;
    border-bottom: 3px solid #ff4081;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}
.topbkg:after {
    content: "♥ ♡ ♥ ♡ ♥ ♡";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 20px;
    text-align: center;
    letter-spacing: 10px;
}
.topnav {
    BORDER-TOP: 3px solid #ff4081;
    BORDER-BOTTOM: 3px solid #ff4081;
    FONT-SIZE: 13px;
    BACKGROUND: linear-gradient(to bottom, #ffccd5, #ffb6c1);
    COLOR: white;
    HEIGHT: 35px;
    padding: 8px 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
}
.admin { COLOR: #ff9900; } /* Золотой для админов */
A.admin, A.admin:visited { COLOR: #ff9900; }
A.admin:hover { COLOR: #ffcc00; text-shadow: 0 0 8px #ff9900; }
.mod { COLOR: #6bcc99; } /* Мятный для модераторов */
A.mod, A.mod:visited { COLOR: #6bcc99; }
A.mod:hover { COLOR: #8bffcc; text-shadow: 0 0 8px #6bcc99; }
IMG { 
    BORDER: 3px solid white;
    border-radius: 12px;
    padding: 4px;
    background: white;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.1),
        0 0 0 1px #ffccd5;
}
.copyright {
    FONT-SIZE: 12px;
    COLOR: #b88ca7;
    FONT-FAMILY: 'Georgia', 'Times New Roman', serif;
    TEXT-ALIGN: center;
    padding: 25px;
    background: linear-gradient(to bottom, #fff5f9, #ffeef5);
    border-top: 3px solid #ffccd5;
    margin-top: 35px;
    border-radius: 0 0 20px 20px;
    position: relative;
}
.copyright:before {
    content: "С любовью для вас ♥";
    display: block;
    font-size: 14px;
    color: #ff6b9d;
    margin-bottom: 10px;
}
A.copyright { COLOR: #ff8fab; }
A.copyright:hover { COLOR: #ff6b9d; }

/* ===== СТИЛИ ДЛЯ WR-Forum Professional ===== */

/* 1) Стиль для ссылок-пагинации (сердечные кнопки) */
.pgbutt a {
    font-family: 'Georgia', 'Times New Roman', serif;
    padding: 10px 18px;
    text-decoration: none;
    border: none;
    background: linear-gradient(to bottom, #ffdde1, #ffccd5);
    color: #d46a8c;
    margin: 5px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    box-shadow: 
        0 4px 10px rgba(255,204,213,0.4),
        inset 0 1px 0 rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    position: relative;
}
.pgbutt a:hover {
    background: linear-gradient(to bottom, #ffb6c1, #ff8fab);
    color: white;
    transform: translateY(-3px);
    box-shadow: 
        0 6px 15px rgba(255,139,171,0.5),
        inset 0 1px 0 rgba(255,255,255,0.4);
}
.pgbutt a:after {
    content: "♥";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    color: #ff6b9d;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pgbutt a:hover:after {
    opacity: 1;
}

/* 2) QR-CODE в виде сердца */
#qr img {
    width: 50px; height: 50px;
    position: fixed; right: 25px; top: 25px;
    border: 3px solid #ff6b9d;
    padding: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 5px 20px rgba(255,107,157,0.4),
        0 0 0 3px white;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotate(0deg);
}
#qr img:hover { 
    width: 180px; height: 180px; 
    z-index: 1000;
    border: 4px solid #ff4081;
    border-radius: 20px;
    transform: rotate(5deg) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(255,64,129,0.5),
        0 0 0 4px white;
}

/* 3) Аватар-заглушка для гостя (розовое сердце) */
.guestavatar {
    width: 120px; height: 120px;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, #ffb6c1, #ff8fab, #ff6b9d);
    color: white;
    font-size: 56px;
    font-weight: bold;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    border: 4px solid white;
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.6),
        0 8px 25px rgba(255,107,157,0.4);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    overflow: hidden;
}
.guestavatar:before {
    content: "♥";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: rgba(255,255,255,0.3);
}

/* 4) Навигационное меню в админке (розовая лента с сердцами) */
#nav8, #nav8 ul, #nav8 li { margin: 0; padding: 0; border: 0; }
#nav8, #nav8 ul { 
    background: linear-gradient(to bottom, #ffccd5, #ffb6c1);
    border: 2px solid #ff8fab;
    border-radius: 15px;
}
#nav8 { width: 100%; }
#nav8 ul { 
    position: absolute; 
    display: none; 
    box-shadow: 0 10px 30px rgba(255,139,171,0.4);
    border-radius: 12px;
    min-width: 220px;
    border: 2px solid #ff8fab;
    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: 14px 30px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
}
#nav8 ul a { padding: 14px 35px; text-align: left; }
#nav8 td:hover, #nav8 li:hover { 
    background: linear-gradient(to right, #ff8fab, #ff6b9d); 
}
#nav8 td:hover a:before, #nav8 li:hover a:before {
    content: "♥";
    position: absolute;
    left: 10px;
    color: rgba(255,255,255,0.8);
}
#nav8 td { 
    text-align: center; 
    padding: 0; 
    border-right: 1px solid rgba(255,255,255,0.3);
}
#nav8 td:last-child { border-right: none; }

/* 5) Стиль для блока загрузки (пульсирующее сердце) */
#cssbar-wrapper { width: 350px; height: 30px; position: absolute; left: 50%; }
#cssbar-border {
    border: 3px solid #ffb6c1;
    height: 100%; width: 100%; position: relative; left: -50%; top: -50%;
    padding: 6px;
    border-radius: 60px;
    background: linear-gradient(to bottom, #fff5f9, #ffeef5);
    box-shadow: 
        inset 0 3px 10px rgba(255,182,193,0.3),
        0 4px 15px rgba(255,182,193,0.3);
}
#cssbar-whitespace { 
    overflow: hidden; 
    height: 100%; 
    width: 100%; 
    margin: 0 auto; 
    position: relative; 
    border-radius: 60px;
}
#cssbar-line {
    background: linear-gradient(90deg, 
        transparent, 
        #ffccd5, 
        #ffb6c1, 
        #ff8fab, 
        #ff6b9d, 
        #ff8fab,
        #ffb6c1,
        #ffccd5,
        transparent
    );
    position: absolute; 
    height: 100%; 
    width: 100%;
    animation: cssbar-slide 2s linear infinite;
    border-radius: 60px;
}
@keyframes cssbar-slide { 
    0% { transform: translateX(-100%); } 
    100% { transform: translateX(100%); } 
}