﻿@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600;700&family=Open+Sans:wght@400;500;600&family=Montserrat:wght@500;600;700&display=swap');

/* SVG Background - Тема новобудов України */
BODY {
    FONT-SIZE: 14px;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    SCROLLBAR-FACE-COLOR: #e3f2fd;
    BACKGROUND: #f5f9ff;
    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='constructionPattern' width='200' height='200' patternUnits='userSpaceOnUse'%3E%3Crect x='40' y='40' width='40' height='60' fill='none' stroke='%230055cc' stroke-width='1' opacity='0.15'/%3E%3Crect x='100' y='60' width='40' height='80' fill='none' stroke='%230055cc' stroke-width='1' opacity='0.15'/%3E%3Crect x='20' y='100' width='50' height='50' fill='none' stroke='%230055cc' stroke-width='1' opacity='0.15'/%3E%3Cline x1='60' y1='100' x2='60' y2='40' stroke='%23ff6b35' stroke-width='1' opacity='0.2'/%3E%3Cline x1='120' y1='140' x2='120' y2='60' stroke='%23ff6b35' stroke-width='1' opacity='0.2'/%3E%3Cpolygon points='30,150 50,130 70,150' fill='none' stroke='%2327ae60' stroke-width='1' opacity='0.2'/%3E%3Cpolygon points='130,150 150,130 170,150' fill='none' stroke='%2327ae60' stroke-width='1' opacity='0.2'/%3E%3Ccircle cx='160' cy='50' r='10' fill='none' stroke='%23ffd700' stroke-width='0.8' opacity='0.2'/%3E%3Ccircle cx='40' cy='160' r='10' fill='none' stroke='%23ffd700' stroke-width='0.8' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23constructionPattern)'/%3E%3C/svg%3E");
    PADDING-BOTTOM: 0px;
    MARGIN: 0 auto;
    FONT: 14px 'Open Sans', 'Roboto Slab', Verdana, Arial, Helvetica, sans-serif;
    SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
    SCROLLBAR-SHADOW-COLOR: #bbdefb;
    COLOR: #2c3e50;
    SCROLLBAR-3DLIGHT-COLOR: #90caf9;
    SCROLLBAR-ARROW-COLOR: #0055cc;
    PADDING-TOP: 0px;
    SCROLLBAR-TRACK-COLOR: #f5f9ff;
    SCROLLBAR-DARKSHADOW-COLOR: #64b5f6;
    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(245, 249, 255, 0.96) 0%, rgba(227, 242, 253, 0.93) 100%);
    z-index: -1;
}

/* Основні елементи тексту */
FONT, TH, TD, P, DIV {
    FONT: 14px 'Open Sans', 'Roboto Slab', Verdana, Arial, Helvetica, sans-serif;
    COLOR: #2c3e50;
}

.gensmall {FONT-SIZE: 13px; font-family: 'Open Sans', sans-serif; color: #0055cc;}
TD.genmed {FONT-SIZE: 14px; font-family: 'Open Sans', sans-serif;}
.genmed {FONT-SIZE: 13px; font-family: 'Open Sans', sans-serif;}
.explaintitle {
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    COLOR: #0055cc;
    font-family: 'Montserrat', sans-serif;
}

/* Посилання */
A:link {COLOR: #0055cc; TEXT-DECORATION: none; transition: all 0.3s ease;}
A:active {COLOR: #003399; TEXT-DECORATION: none;}
A:visited {COLOR: #6a1b9a; TEXT-DECORATION: none;}
A:hover {COLOR: #003399; TEXT-DECORATION: underline; background-color: rgba(0, 85, 204, 0.08); padding: 2px 4px; border-radius: 4px;}

A.postlink {COLOR: #0055cc; TEXT-DECORATION: none; font-weight: 500;}

.topictitle {
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #0055cc;
}
A.topictitle:visited {COLOR: #6a1b9a;}
A.topictitle:hover {COLOR: #003399; background-color: rgba(0, 85, 204, 0.1);}

.name {
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    color: #0055cc;
    font-family: 'Montserrat', sans-serif;
}

/* Роздільники */
HR {
    BORDER-RIGHT: #ffffff 0px solid;
    BORDER-TOP: #ff6b35 2px solid;
    BORDER-LEFT: #ffffff 0px solid;
    BORDER-BOTTOM: #ffffff 0px solid;
    HEIGHT: 0px;
    margin: 20px 0;
    opacity: 0.6;
}

/* Категорії */
TD.cat, TD.catHead, TD.catSides, TD.catLeft, TD.catRight, TD.catBottom {
    FONT-WEIGHT: 600;
    BACKGROUND: linear-gradient(135deg, #0055cc 0%, #003399 100%);
    TEXT-INDENT: 15px;
    LETTER-SPACING: 0.5px;
    HEIGHT: 42px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    border-radius: 10px 10px 0 0;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 85, 204, 0.2);
}

/* Ряди таблиць */
.row1 {BACKGROUND: #ffffff; transition: all 0.3s ease;}
.row2 {BACKGROUND: #f5f9ff; transition: all 0.3s ease;}
.row3 {BACKGROUND: #e8f0fe; transition: all 0.3s ease;}

.row1:hover, .row2:hover, .row3:hover {
    background-color: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 85, 204, 0.08);
}

.helpline {BACKGROUND: #e3f2fd;}

TD.spacerow {BACKGROUND: #bbdefb;}
TD.rowpic {BACKGROUND: #e8f0fe;}

/* Заголовки таблиць */
TH {
    PADDING-RIGHT: 15px;
    PADDING-LEFT: 15px;
    FONT-WEIGHT: 600;
    FONT-SIZE: 14px;
    BACKGROUND: linear-gradient(135deg, #1e88e5 0%, #0055cc 100%);
    COLOR: #ffffff;
    WHITE-SPACE: nowrap;
    HEIGHT: 38px;
    TEXT-ALIGN: center;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.2);
}

/* Основні контейнери */
.bodyline {
    BORDER-RIGHT: #bbdefb 2px solid;
    BORDER-TOP: #bbdefb 2px solid;
    BACKGROUND: #ffffff;
    BORDER-LEFT: #bbdefb 2px solid;
    BORDER-BOTTOM: #bbdefb 2px solid;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 85, 204, 0.08);
    padding: 20px;
    margin: 15px 0;
}

.forumline {
    BORDER-RIGHT: #bbdefb 1px solid;
    BORDER-TOP: #bbdefb 1px solid;
    BACKGROUND: #ffffff;
    BORDER-LEFT: #bbdefb 1px solid;
    BORDER-BOTTOM: #bbdefb 1px solid;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 85, 204, 0.05);
}

/* Заголовки */
.maintitle, H1 {
    FONT: bold 28px/130% 'Montserrat', 'Roboto Slab', Verdana, Arial, Helvetica, sans-serif;
    COLOR: #0055cc;
    TEXT-DECORATION: none;
    text-align: center;
    margin: 25px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6b35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

H2, .subtitle {
    FONT: bold 22px/150% 'Montserrat', 'Roboto Slab', Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    COLOR: #1e88e5;
    margin-top: 20px;
}

/* Навігація та текст */
.nav {FONT-WEIGHT: 600; FONT-SIZE: 14px; color: #0055cc; font-family: 'Roboto Slab', serif;}
.postbody {FONT-SIZE: 15px; LINE-HEIGHT: 1.7; color: #2c3e50;}
.postdetails {FONT-SIZE: 13px; COLOR: #546e7a;}

/* Стилі для кодів та цитат */
.code_td, .php_td, .q_td, .quote_td {
    FONT-SIZE: 13px;
    COLOR: #2c3e50;
    FONT-FAMILY: 'Courier New', monospace;
}

.code_table, .php_table, .q_table, .quote_table {
    BORDER-RIGHT: #90caf9 2px solid;
    BORDER-TOP: #90caf9 2px solid;
    FONT-SIZE: 13px;
    BORDER-LEFT: #90caf9 2px solid;
    WIDTH: 98%;
    BORDER-BOTTOM: #90caf9 2px solid;
    FONT-FAMILY: 'Courier New', monospace;
    background-color: #f5f9ff;
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(144, 202, 249, 0.1);
}

.quote {
    BORDER-RIGHT: #bbdefb 1px solid;
    BORDER-TOP: #bbdefb 1px solid;
    FONT-SIZE: 14px;
    BACKGROUND: #f5f9ff;
    BORDER-LEFT: #0055cc 4px solid;
    COLOR: #37474f;
    LINE-HEIGHT: 1.6;
    BORDER-BOTTOM: #bbdefb 1px solid;
    padding: 18px;
    margin: 18px 0;
    border-radius: 8px;
    position: relative;
}

.quote::before {
    content: '🏗️ ЦИТАТА';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #0055cc;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.code {
    BORDER-RIGHT: #90caf9 2px solid;
    BORDER-TOP: #90caf9 1px solid;
    PADDING-LEFT: 18px;
    BACKGROUND: #e8f0fe;
    PADDING-BOTTOM: 18px;
    FONT: 13px 'Courier New', monospace;
    BORDER-LEFT: #90caf9 1px solid;
    COLOR: #2c517c;
    PADDING-TOP: 18px;
    BORDER-BOTTOM: #90caf9 1px solid;
    border-radius: 10px;
    margin: 18px 0;
    position: relative;
}

.code::before {
    content: '📐 КОД';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #ff6b35;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.errorline {
    BORDER-RIGHT: #d32f2f 2px solid;
    BORDER-TOP: #d32f2f 2px solid;
    BACKGROUND: #ffebee;
    BORDER-LEFT: #d32f2f 2px solid;
    BORDER-BOTTOM: #d32f2f 2px solid;
    padding: 18px;
    border-radius: 10px;
    color: #b71c1c;
}

/* Форми та кнопки */
FORM {DISPLAY: inline;}
INPUT, SELECT, TEXTAREA {
    FONT: 13px 'Open Sans', 'Roboto Slab', Verdana, Arial, Helvetica, sans-serif;
    padding: 9px 14px;
    border: 1px solid #90caf9;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    color: #2c3e50;
}

INPUT:focus, SELECT:focus, TEXTAREA:focus {
    outline: none;
    border-color: #0055cc;
    box-shadow: 0 0 0 3px rgba(0, 85, 204, 0.2);
}

INPUT.post, TEXTAREA.post {
    BORDER-RIGHT: #90caf9 1px solid;
    BORDER-TOP: #90caf9 1px solid;
    PADDING-LEFT: 14px;
    BACKGROUND: #ffffff;
    PADDING-BOTTOM: 12px;
    FONT: 13px 'Open Sans', Verdana, Arial, Helvetica;
    BORDER-LEFT: #90caf9 1px solid;
    BORDER-BOTTOM: #90caf9 1px solid;
}

INPUT.button, INPUT.liteoption, .fakebut, INPUT.catbutton, INPUT.mainoption {
    BORDER: 1px solid #0055cc;
    FONT-SIZE: 14px;
    BACKGROUND: linear-gradient(135deg, #0055cc 0%, #003399 100%);
    font-weight: 600;
    padding: 10px 22px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

INPUT.button:hover, INPUT.liteoption:hover, .fakebut:hover, INPUT.catbutton:hover, INPUT.mainoption:hover {
    background: linear-gradient(135deg, #003399 0%, #0055cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 204, 0.2);
}

/* Спеціальні класи */
A.but, A.but:hover, A.but:visited {
    COLOR: #0055cc;
    TEXT-DECORATION: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.helpline {BORDER: none; FONT-SIZE: 13px; background-color: #e8f0fe; padding: 12px; border-radius: 8px; color: #0055cc;}

.topbkg {BACKGROUND: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);}
.topnav {
    BORDER-TOP: #0055cc 2px solid;
    FONT-SIZE: 14px;
    BACKGROUND: #ffffff;
    COLOR: #0055cc;
    BORDER-BOTTOM: #0055cc 2px solid;
    WHITE-SPACE: nowrap;
    HEIGHT: 28px;
    padding: 6px 0;
    font-weight: 500;
    font-family: 'Roboto Slab', serif;
}

/* Адмін та модератори */
.admin {FONT-WEIGHT: 600; FONT-SIZE: 14px; COLOR: #ff6b35; font-family: 'Montserrat', sans-serif;}
A.admin, A.admin:visited {COLOR: #ff6b35;}
A.admin:hover {COLOR: #e64a19;}

.mod {FONT-WEIGHT: 600; FONT-SIZE: 14px; COLOR: #27ae60;}
A.mod, A.mod:visited {COLOR: #27ae60;}
A.mod:hover {COLOR: #219653;}

IMG {BORDER: none; max-width: 100%;}

.copyright {
    FONT-SIZE: 12px;
    COLOR: #546e7a;
    FONT-FAMILY: 'Open Sans', sans-serif;
    LETTER-SPACING: -0.5px;
    text-align: center;
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid #bbdefb;
}
A.copyright {COLOR: #0055cc; TEXT-DECORATION: none; font-weight: 500;}
A.copyright:hover {COLOR: #003399; TEXT-DECORATION: underline;}

/* СТИЛИ для скрипта форума WR-Forum Professional версии 2.2 */

/* 1) Стиль для посилань */
.pgbutt a {
    font-family: 'Roboto Slab', Verdana;
    padding-top: 5px;
    padding-bottom: 5px;
    text-decoration: none;
    border: 1px #90caf9 solid;
    background: #ffffff;
    padding: 7px 14px;
    margin: 5px 3px;
    color: #0055cc;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pgbutt a:hover {
    background: #e3f2fd;
    color: #003399;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 85, 204, 0.12);
    text-decoration: none;
    border-color: #0055cc;
}

/* 2) QR-CODE */
#qr img{
    width:42px;
    height:42px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    border: 2px solid #90caf9;
    padding: 4px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 85, 204, 0.1);
}
#qr img:hover{
    width:200px;
    height:200px;
    z-index:100;
    padding: 6px;
    box-shadow: 0 5px 25px rgba(0, 85, 204, 0.2);
    border-color: #0055cc;
}

/* 3) Аватар для гостей */
.guestavatar{
    width:100px;
    height:100px;
    text-align:center;
    background: linear-gradient(135deg, #0055cc 0%, #003399 100%);
    color: #ffffff;
    font-size: 36px;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 3px 6px rgba(0, 85, 204, 0.3);
}

/* 4) навигационное меню в админке */
#nav8, #nav8 ul, #nav8 li {margin: 0;padding: 0;border: 0;}
#nav8, #nav8 ul {background: #f5f9ff;}
#nav8 {border-spacing: 0 0;position: relative;z-index: 50;width: 100%;}
#nav8 ul {position: absolute;display: none;border-radius: 10px;border: 1px solid #90caf9; box-shadow: 0 4px 15px rgba(0, 85, 204, 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: #0055cc;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Roboto Slab', serif;
}
#nav8 ul a {padding: 9px 22px;text-align: left;}
#nav8 td:hover, #nav8 li:hover {background: #e3f2fd;}
#nav8 td {text-align: center;}

/* 5) Стиль для блока загрузки */
#cssbar-wrapper {width:300px; height:22px; position:absolute; left:50%;}
#cssbar-border {
    border:3px solid #90caf9;
    height:100%;
    width:100%;
    position:relative;
    left:-50%;
    top:-50%;
    padding:4px 3px;
    border-radius: 12px;
    background: #f5f9ff;
}
#cssbar-whitespace {overflow:hidden; height:100%; width:100%; margin:0 auto; overflow:hidden; position:relative; border-radius: 8px;}
#cssbar-line {
    background: linear-gradient(90deg, #1e88e5 0%, #0055cc 50%, #1e88e5 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: #ff6b35;
}

.important-topic::before {
    content: '⭐ ';
    color: #ffd700;
}

.construction-topic::after {
    content: ' 🏗️';
    color: #0055cc;
}

.completed-topic::before {
    content: '✅ ';
    color: #27ae60;
}

.planning-topic::before {
    content: '📋 ';
    color: #9c27b0;
}

/* Блоки для новобудов */
.building-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border: 2px solid #bbdefb;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 85, 204, 0.1);
    transition: all 0.3s ease;
}

.building-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 85, 204, 0.15);
}

.building-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-planning {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.status-construction {
    background: linear-gradient(135deg, #ff6b35 0%, #e64a19 100%);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
}

/* Карта України для навігації */
.ua-map-nav {
    background: linear-gradient(135deg, #f5f9ff 0%, #e3f2fd 100%);
    border: 2px solid #0055cc;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.ua-region {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: #ffffff;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    color: #0055cc;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ua-region:hover {
    background: #0055cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 85, 204, 0.2);
}

/* Українські національні кольори */
.ua-flag {
    background: linear-gradient(to right, #0055cc 0%, #0055cc 50%, #ffd700 50%, #ffd700 100%);
    height: 3px;
    margin: 10px 0;
    border-radius: 2px;
}

/* Інформаційні блоки */
.info-box {
    background: linear-gradient(135deg, #e8f0fe 0%, #bbdefb 100%);
    border-left: 4px solid #0055cc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.info-title {
    color: #0055cc;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}