﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* SVG Background - Психологічна тематика */
BODY {
    FONT-SIZE: 14px;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    SCROLLBAR-FACE-COLOR: #e8f4f8;
    BACKGROUND: #f8fbfd;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='psychPattern' width='200' height='200' patternUnits='userSpaceOnUse'%3E%3Cpath d='M100,40 Q120,20 140,40 Q160,60 140,80 Q120,100 100,80 Q80,60 100,40Z' fill='none' stroke='%237a9ebf' stroke-width='0.7' opacity='0.15'/%3E%3Cpath d='M40,100 Q20,120 40,140 Q60,160 80,140 Q100,120 80,100 Q60,80 40,100Z' fill='none' stroke='%2398c9d6' stroke-width='0.7' opacity='0.15'/%3E%3Cpath d='M160,100 Q180,120 160,140 Q140,160 120,140 Q100,120 120,100 Q140,80 160,100Z' fill='none' stroke='%237a9ebf' stroke-width='0.7' opacity='0.15'/%3E%3Cpath d='M100,160 Q120,140 140,160 Q160,180 140,200 Q120,220 100,200 Q80,180 100,160Z' fill='none' stroke='%2398c9d6' stroke-width='0.7' opacity='0.15'/%3E%3Ccircle cx='100' cy='100' r='35' fill='none' stroke='%235a7c9c' stroke-width='0.5' opacity='0.1'/%3E%3Cline x1='50' y1='100' x2='150' y2='100' stroke='%2398c9d6' stroke-width='0.5' opacity='0.1'/%3E%3Cline x1='100' y1='50' x2='100' y2='150' stroke='%237a9ebf' stroke-width='0.5' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23psychPattern)'/%3E%3C/svg%3E");
    PADDING-BOTTOM: 0px;
    MARGIN: 0 auto;
    FONT: 14px 'Inter', 'Source Sans Pro', Verdana, Arial, Helvetica, sans-serif;
    SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
    SCROLLBAR-SHADOW-COLOR: #d1e7f0;
    COLOR: #3a4a5a;
    SCROLLBAR-3DLIGHT-COLOR: #b8d4e3;
    SCROLLBAR-ARROW-COLOR: #5a7c9c;
    PADDING-TOP: 0px;
    SCROLLBAR-TRACK-COLOR: #f8fbfd;
    SCROLLBAR-DARKSHADOW-COLOR: #a8c8d8;
    line-height: 1.6;
    max-width: 1200px;
}

/* Оверлей для фону */
BODY::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 251, 253, 0.95) 0%, rgba(232, 244, 248, 0.92) 100%);
    z-index: -1;
}

/* Основні елементи тексту */
FONT, TH, TD, P, DIV {
    FONT: 14px 'Inter', 'Source Sans Pro', Verdana, Arial, Helvetica, sans-serif;
    COLOR: #3a4a5a;
}

.gensmall {FONT-SIZE: 13px; font-family: 'Inter', sans-serif; color: #5a7c9c;}
TD.genmed {FONT-SIZE: 14px; font-family: 'Inter', sans-serif;}
.genmed {FONT-SIZE: 13px; font-family: 'Inter', sans-serif;}
.explaintitle {
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    COLOR: #5a7c9c;
    font-family: 'Merriweather', serif;
}

/* Посилання */
A:link {COLOR: #4a90e2; TEXT-DECORATION: none; transition: all 0.3s ease;}
A:active {COLOR: #357abd; TEXT-DECORATION: none;}
A:visited {COLOR: #6a8cc7; TEXT-DECORATION: none;}
A:hover {COLOR: #357abd; TEXT-DECORATION: underline; background-color: rgba(74, 144, 226, 0.08); padding: 2px 4px; border-radius: 4px;}

A.postlink {COLOR: #4a90e2; TEXT-DECORATION: none; font-weight: 500;}

.topictitle {
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    font-family: 'Merriweather', serif;
    color: #5a7c9c;
}
A.topictitle:visited {COLOR: #6a8cc7;}
A.topictitle:hover {COLOR: #357abd; background-color: rgba(90, 124, 156, 0.1);}

.name {
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    color: #5a7c9c;
    font-family: 'Merriweather', serif;
}

/* Роздільники */
HR {
    BORDER-RIGHT: #ffffff 0px solid;
    BORDER-TOP: #98c9d6 2px solid;
    BORDER-LEFT: #ffffff 0px solid;
    BORDER-BOTTOM: #ffffff 0px solid;
    HEIGHT: 0px;
    margin: 20px 0;
    opacity: 0.5;
}

/* Категорії */
TD.cat, TD.catHead, TD.catSides, TD.catLeft, TD.catRight, TD.catBottom {
    FONT-WEIGHT: 600;
    BACKGROUND: linear-gradient(135deg, #7a9ebf 0%, #5a7c9c 100%);
    TEXT-INDENT: 15px;
    LETTER-SPACING: 0.5px;
    HEIGHT: 42px;
    color: #ffffff;
    font-family: 'Merriweather', serif;
    font-size: 15px;
    border-radius: 10px 10px 0 0;
    border: none;
}

/* Ряди таблиць */
.row1 {BACKGROUND: #ffffff; transition: all 0.3s ease;}
.row2 {BACKGROUND: #f5f9fc; transition: all 0.3s ease;}
.row3 {BACKGROUND: #edf5fa; transition: all 0.3s ease;}

.row1:hover, .row2:hover, .row3:hover {
    background-color: #e8f4f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(90, 124, 156, 0.08);
}

.helpline {BACKGROUND: #e8f4f8;}

TD.spacerow {BACKGROUND: #d8e8f0;}
TD.rowpic {BACKGROUND: #f0f7fb;}

/* Заголовки таблиць */
TH {
    PADDING-RIGHT: 15px;
    PADDING-LEFT: 15px;
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    BACKGROUND: linear-gradient(135deg, #98c9d6 0%, #7a9ebf 100%);
    COLOR: #ffffff;
    WHITE-SPACE: nowrap;
    HEIGHT: 38px;
    TEXT-ALIGN: center;
    font-family: 'Merriweather', serif;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* Основні контейнери */
.bodyline {
    BORDER-RIGHT: #d1e7f0 2px solid;
    BORDER-TOP: #d1e7f0 2px solid;
    BACKGROUND: #ffffff;
    BORDER-LEFT: #d1e7f0 2px solid;
    BORDER-BOTTOM: #d1e7f0 2px solid;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(90, 124, 156, 0.08);
    padding: 20px;
    margin: 15px 0;
}

.forumline {
    BORDER-RIGHT: #d1e7f0 1px solid;
    BORDER-TOP: #d1e7f0 1px solid;
    BACKGROUND: #ffffff;
    BORDER-LEFT: #d1e7f0 1px solid;
    BORDER-BOTTOM: #d1e7f0 1px solid;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(90, 124, 156, 0.05);
}

/* Заголовки */
.maintitle, H1 {
    FONT: bold 28px/130% 'Merriweather', 'Inter', Verdana, Arial, Helvetica, sans-serif;
    COLOR: #5a7c9c;
    TEXT-DECORATION: none;
    text-align: center;
    margin: 25px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #98c9d6;
}

H2, .subtitle {
    FONT: bold 22px/150% 'Merriweather', 'Inter', Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    COLOR: #7a9ebf;
    margin-top: 20px;
}

/* Навігація та текст */
.nav {FONT-WEIGHT: 600; FONT-SIZE: 14px; color: #5a7c9c; font-family: 'Inter', sans-serif;}
.postbody {FONT-SIZE: 15px; LINE-HEIGHT: 1.7; color: #3a4a5a;}
.postdetails {FONT-SIZE: 13px; COLOR: #7a9ebf;}

/* Стилі для кодів та цитат */
.code_td, .php_td, .q_td, .quote_td {
    FONT-SIZE: 13px;
    COLOR: #3a4a5a;
    FONT-FAMILY: 'Courier New', monospace;
}

.code_table, .php_table, .q_table, .quote_table {
    BORDER-RIGHT: #98c9d6 2px solid;
    BORDER-TOP: #98c9d6 2px solid;
    FONT-SIZE: 13px;
    BORDER-LEFT: #98c9d6 2px solid;
    WIDTH: 98%;
    BORDER-BOTTOM: #98c9d6 2px solid;
    FONT-FAMILY: 'Courier New', monospace;
    background-color: #f8fbfd;
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(152, 201, 214, 0.1);
}

.quote {
    BORDER-RIGHT: #d1e7f0 1px solid;
    BORDER-TOP: #d1e7f0 1px solid;
    FONT-SIZE: 14px;
    BACKGROUND: #f8fbfd;
    BORDER-LEFT: #7a9ebf 4px solid;
    COLOR: #4a5a6a;
    LINE-HEIGHT: 1.6;
    BORDER-BOTTOM: #d1e7f0 1px solid;
    padding: 18px;
    margin: 18px 0;
    border-radius: 8px;
    position: relative;
    font-style: italic;
}

.quote::before {
    content: '💭 ЦИТАТА';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #7a9ebf;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: normal;
}

.code {
    BORDER-RIGHT: #b8d4e3 2px solid;
    BORDER-TOP: #b8d4e3 1px solid;
    PADDING-LEFT: 18px;
    BACKGROUND: #f0f7fb;
    PADDING-BOTTOM: 18px;
    FONT: 13px 'Courier New', monospace;
    BORDER-LEFT: #b8d4e3 1px solid;
    COLOR: #4a6a8c;
    PADDING-TOP: 18px;
    BORDER-BOTTOM: #b8d4e3 1px solid;
    border-radius: 10px;
    margin: 18px 0;
    position: relative;
}

.code::before {
    content: '🧠 КОД';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #98c9d6;
    color: #2a4a6a;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.errorline {
    BORDER-RIGHT: #ff9999 2px solid;
    BORDER-TOP: #ff9999 2px solid;
    BACKGROUND: #ffe6e6;
    BORDER-LEFT: #ff9999 2px solid;
    BORDER-BOTTOM: #ff9999 2px solid;
    padding: 18px;
    border-radius: 10px;
    color: #cc6666;
}

/* Форми та кнопки */
FORM {DISPLAY: inline;}
INPUT, SELECT, TEXTAREA {
    FONT: 13px 'Inter', 'Source Sans Pro', Verdana, Arial, Helvetica, sans-serif;
    padding: 9px 14px;
    border: 1px solid #b8d4e3;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    color: #3a4a5a;
}

INPUT:focus, SELECT:focus, TEXTAREA:focus {
    outline: none;
    border-color: #7a9ebf;
    box-shadow: 0 0 0 3px rgba(122, 158, 191, 0.2);
}

INPUT.post, TEXTAREA.post {
    BORDER-RIGHT: #b8d4e3 1px solid;
    BORDER-TOP: #b8d4e3 1px solid;
    PADDING-LEFT: 14px;
    BACKGROUND: #ffffff;
    PADDING-BOTTOM: 12px;
    FONT: 13px 'Inter', Verdana, Arial, Helvetica;
    BORDER-LEFT: #b8d4e3 1px solid;
    BORDER-BOTTOM: #b8d4e3 1px solid;
}

INPUT.button, INPUT.liteoption, .fakebut, INPUT.catbutton, INPUT.mainoption {
    BORDER: 1px solid #7a9ebf;
    FONT-SIZE: 14px;
    BACKGROUND: linear-gradient(135deg, #7a9ebf 0%, #5a7c9c 100%);
    font-weight: 600;
    padding: 10px 22px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

INPUT.button:hover, INPUT.liteoption:hover, .fakebut:hover, INPUT.catbutton:hover, INPUT.mainoption:hover {
    background: linear-gradient(135deg, #5a7c9c 0%, #7a9ebf 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 124, 156, 0.15);
}

/* Спеціальні класи */
A.but, A.but:hover, A.but:visited {
    COLOR: #7a9ebf;
    TEXT-DECORATION: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.helpline {BORDER: none; FONT-SIZE: 13px; background-color: #f0f7fb; padding: 12px; border-radius: 8px; color: #5a7c9c;}

.topbkg {BACKGROUND: linear-gradient(135deg, #d1e7f0 0%, #b8d4e3 100%);}
.topnav {
    BORDER-TOP: #98c9d6 2px solid;
    FONT-SIZE: 14px;
    BACKGROUND: #ffffff;
    COLOR: #5a7c9c;
    BORDER-BOTTOM: #98c9d6 2px solid;
    WHITE-SPACE: nowrap;
    HEIGHT: 28px;
    padding: 6px 0;
    font-weight: 500;
}

/* Адмін та модератори */
.admin {FONT-WEIGHT: 600; FONT-SIZE: 14px; COLOR: #ffa34f; font-family: 'Inter', sans-serif;}
A.admin, A.admin:visited {COLOR: #ffa34f;}
A.admin:hover {COLOR: #e6892e;}

.mod {FONT-WEIGHT: 600; FONT-SIZE: 14px; COLOR: #4CAF50;}
A.mod, A.mod:visited {COLOR: #4CAF50;}
A.mod:hover {COLOR: #388E3C;}

IMG {BORDER: none; max-width: 100%;}

.copyright {
    FONT-SIZE: 12px;
    COLOR: #7a9ebf;
    FONT-FAMILY: 'Inter', sans-serif;
    LETTER-SPACING: -0.5px;
    text-align: center;
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid #d1e7f0;
}
A.copyright {COLOR: #5a7c9c; TEXT-DECORATION: none; font-weight: 500;}
A.copyright:hover {COLOR: #4a90e2; TEXT-DECORATION: underline;}

/* СТИЛИ для скрипта форума WR-Forum Professional версии 2.2 */

/* 1) Стиль для посилань */
.pgbutt a {
    font-family: 'Inter', Verdana;
    padding-top: 5px;
    padding-bottom: 5px;
    text-decoration: none;
    border: 1px #b8d4e3 solid;
    background: #ffffff;
    padding: 7px 14px;
    margin: 5px 3px;
    color: #5a7c9c;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pgbutt a:hover {
    background: #e8f4f8;
    color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(90, 124, 156, 0.12);
    text-decoration: none;
    border-color: #7a9ebf;
}

/* 2) QR-CODE */
#qr img{
    width:42px;
    height:42px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    border: 2px solid #b8d4e3;
    padding: 4px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(90, 124, 156, 0.1);
}
#qr img:hover{
    width:200px;
    height:200px;
    z-index:100;
    padding: 6px;
    box-shadow: 0 5px 25px rgba(90, 124, 156, 0.2);
    border-color: #7a9ebf;
}

/* 3) Аватар для гостей */
.guestavatar{
    width:100px;
    height:100px;
    text-align:center;
    background: linear-gradient(135deg, #98c9d6 0%, #7a9ebf 100%);
    color: #ffffff;
    font-size: 36px;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* 4) навигационное меню в админке */
#nav8, #nav8 ul, #nav8 li {margin: 0;padding: 0;border: 0;}
#nav8, #nav8 ul {background: #f5f9fc;}
#nav8 {border-spacing: 0 0;position: relative;z-index: 50;width: 100%;}
#nav8 ul {position: absolute;display: none;border-radius: 10px;border: 1px solid #b8d4e3; box-shadow: 0 4px 15px rgba(90, 124, 156, 0.1);}
#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 18px;
    text-align: center;
    text-decoration: none;
    color: #5a7c9c;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
#nav8 ul a {padding: 9px 22px;text-align: left;}
#nav8 td:hover, #nav8 li:hover {background: #e8f4f8;}
#nav8 td {text-align: center;}

/* 5) Стиль для блока загрузки */
#cssbar-wrapper {width:300px; height:22px; position:absolute; left:50%;}
#cssbar-border {
    border:3px solid #b8d4e3;
    height:100%;
    width:100%;
    position:relative;
    left:-50%;
    top:-50%;
    padding:4px 3px;
    border-radius: 12px;
    background: #f8fbfd;
}
#cssbar-whitespace {overflow:hidden; height:100%; width:100%; margin:0 auto; overflow:hidden; position:relative; border-radius: 8px;}
#cssbar-line {
    background: linear-gradient(90deg, #98c9d6 0%, #7a9ebf 50%, #98c9d6 100%);
    position:absolute;
    height:100%;
    width:100%;
    animation:cssbar-slide 4s steps(40) infinite;
}
@keyframes cssbar-slide {0% {left:-100%;} 100% {left:100%;}}

/* Адаптивність */
@media (max-width: 768px) {
    BODY {
        max-width: 100%;
        padding: 12px;
        font-size: 13px;
    }
    
    .forumline {
        overflow-x: auto;
    }
    
    .maintitle, H1 {
        font-size: 22px;
    }
    
    H2, .subtitle {
        font-size: 18px;
    }
    
    .code, .quote {
        padding: 12px;
        font-size: 12px;
    }
    
    .code::before, .quote::before {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* Спеціальні іконки для тем */
.new-topic::after {
    content: ' 💡';
    font-size: 0.9em;
}

.hot-topic::before {
    content: '🔥 ';
    color: #ff9999;
}

.important-topic::before {
    content: '⭐ ';
    color: #ffcc66;
}

.psychological-topic::before {
    content: '🧠 ';
    color: #7a9ebf;
}

.support-topic::after {
    content: ' 🤝';
    color: #98c9d6;
}