/* ============================================================
   НОВИЙ УНІКАЛЬНИЙ СТИЛЬ ДЛЯ ФОРУМУ «КРАСА УКРАЇНИ»
   Тема: природа, подорожі, архітектура, патріотизм
   ============================================================ */

/* --- ЗАГАЛЬНІ НАЛАШТУВАННЯ --- */
body {
    max-width: 82%;
    margin: 20px auto;
    font-family: 'Segoe UI', 'Exo 2', 'Verdana', 'Arial', 'Helvetica', sans-serif;
    font-size: 15px;
    background-color: #0a2a1a;
    padding: 0;
    cursor: auto;
    color: #2c2418;
    scrollbar-face-color: #f5a623;
    scrollbar-highlight-color: #ffdd99;
    scrollbar-3dlight-color: #d4a017;
    scrollbar-shadow-color: #c4901a;
    scrollbar-darkshadow-color: #8b6914;
    scrollbar-track-color: #1a3a2a;
    scrollbar-arrow-color: #ffd966;
    position: relative;
}

/* --- Фонове SVG зображення (український пейзаж) --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpattern id='ukraine-pattern' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Crect width='100' height='100' fill='%231a5c3a'/%3E%3Cpath d='M0 50 Q25 30 50 50 T100 50' stroke='%23f5c542' stroke-width='2' fill='none'/%3E%3Ccircle cx='20' cy='70' r='3' fill='%23f5c542'/%3E%3Ccircle cx='50' cy='65' r='2.5' fill='%23f5c542'/%3E%3Ccircle cx='80' cy='72' r='3' fill='%23f5c542'/%3E%3Crect x='5' y='80' width='90' height='2' fill='%233d8f4a' opacity='0.5'/%3E%3Crect x='10' y='88' width='80' height='1.5' fill='%233d8f4a' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.3;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(26,92,58,0.85) 0%, rgba(21,67,43,0.9) 50%, rgba(15,50,30,0.95) 100%);
}

/* --- ТАБЛИЦІ --- */
TABLE {
    border-collapse: collapse;
    border-color: #f5c542;
}

/* --- ШРИФТИ ТА КОЛІР ТЕКСТУ --- */
font, th, td, p {
    font-family: 'Segoe UI', 'Exo 2', 'Verdana', 'Arial', 'Helvetica', sans-serif;
    font-size: 14px;
    color: #fef5e0;
}

/* --- ПОСИЛАННЯ --- */
a:link, a:active {
    text-decoration: underline;
    color: #f5c542;
    transition: all 0.2s ease;
}
a:visited {
    text-decoration: underline;
    color: #d4a017;
}
a:hover {
    text-decoration: none;
    color: #ffdd99;
}

/* --- ФОРМИ ТА ПОЛЯ --- */
form {
    display: inline;
    margin: 2px;
    padding: 0;
    border: 0;
}
input, textarea, select {
    vertical-align: middle;
    font-size: 13px;
    font-family: 'Segoe UI', 'Verdana', 'Arial', sans-serif;
    background: #2a4535;
    border: 1px solid #f5c542;
    color: #fef5e0;
    border-radius: 10px;
    padding: 6px 10px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ffdd99;
    box-shadow: 0 0 0 2px rgba(245,197,66,0.3);
}
td, body {
    font-family: 'Segoe UI', 'Exo 2', 'Verdana', 'Arial', sans-serif;
    font-size: 14px;
    color: #fef5e0;
}

/* --- ЛІНІЇ --- */
hr {
    height: 0;
    border: solid #f5c542 0;
    border-top-width: 2px;
    margin: 15px 0;
}

/* --- ОСНОВНІ КОНТЕЙНЕРИ --- */
.bodyline {
    font-family: 'Segoe UI', 'Exo 2', 'Verdana', 'Arial', sans-serif;
    font-size: 14px;
    color: #fef5e0;
    background: rgba(20, 45, 30, 0.75);
    border-radius: 24px;
    padding: 8px;
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.forum-track_01 {
    background-color: #f5c542;
    border: 1px solid #d4a017;
    border-radius: 20px;
    overflow: hidden;
}

/* --- РЯДКИ ТАБЛИЦЬ --- */
.row_stream1 {
    padding: 8px;
    background: rgba(30, 65, 45, 0.7);
    border-bottom: 1px solid #f5c542;
}
.row_beta {
    padding: 8px;
    background: rgba(25, 55, 38, 0.7);
    border-bottom: 1px solid #f5c542;
}
.threadStripe3 {
    padding: 8px;
    background: rgba(20, 45, 30, 0.7);
    border-bottom: 1px solid #d4a017;
}
td.rowpic {
    padding: 10px;
    height: 50px;
    background: linear-gradient(90deg, #1a5c3a, #2a7a4a);
    font-family: 'Segoe UI', 'Exo 2', sans-serif;
    color: #f5c542;
    font-size: 15px;
    font-weight: bold;
    padding-left: 25px;
    padding-top: 18px;
    border-radius: 16px 16px 0 0;
}

/* --- ЗАГОЛОВКИ ТАБЛИЦЬ (TH) --- */
th {
    color: #1a5c3a;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(135deg, #f5c542, #ffdd99);
    height: 32px;
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- КАТЕГОРІЇ --- */
td.cat, td.catSides, td.sectionRightBlock, td.catBottom {
    background: linear-gradient(90deg, #2a7a4a, #1a5c3a);
    border: 1px solid #f5c542;
    height: 32px;
    color: #fef5e0;
    font-weight: bold;
    padding: 0 8px;
}
td.category_leftflow, td.category_title_bar {
    padding: 8px;
    background: linear-gradient(135deg, #1a5c3a, #2a7a4a);
    font-family: 'Segoe UI', 'Exo 2', sans-serif;
    color: #f5c542;
    font-size: 15px;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
}
td.cat, td.category_title_bar, td.catBottom {
    height: 34px;
    border-width: 0;
}

/* --- СПЕЦІАЛЬНІ ЗАГОЛОВКИ TH --- */
th.corner_tl_table {
    background: linear-gradient(135deg, #f5c542, #ffdd99);
    height: 28px;
    color: #1a5c3a;
    border-radius: 16px 0 0 0;
}
th.table_header_section, th.thSides, th.thLeftCellWrap, th.table_rightflag, th.thBottom, th.thCornerLast {
    padding: 8px;
    height: 45px;
    background: linear-gradient(135deg, #1a5c3a, #0e3822);
    font-family: 'Segoe UI', 'Exo 2', sans-serif;
    color: #f5c542;
    font-size: 15px;
    font-weight: bold;
    padding-left: 22px;
    padding-top: 18px;
}
th.table_header_section {
    background: #1a5c3a;
    color: #f5c542;
    font-size: 16px;
}
td.threadStripe3Right, td.blankLine {
    background-color: #2a7a4a;
    border: 1px solid #f5c542;
}
td.blankLine {
    background-color: #0e3822;
}

/* --- ГРАНИЦІ ЗАГОЛОВКІВ --- */
th.table_header_section, td.category_title_bar { border-width: 1px 1px 0 1px; }
th.thSides, td.catSides, td.blankLine { border-width: 0 1px 0 1px; }
th.table_rightflag, td.sectionRightBlock, td.threadStripe3Right { border-width: 0 1px 0 0; }
th.thLeftCellWrap, td.category_leftflow { border-width: 0 0 0 1px; }
th.thBottom, td.catBottom { border-width: 0 1px 1px 1px; }
th.top_section_header {
    border-width: 1px 0 0 0;
    background: linear-gradient(135deg, #f5c542, #ffdd99);
    color: #1a5c3a;
}
th.corner_tl_table {
    border-width: 1px 0 0 1px;
    background: linear-gradient(135deg, #f5c542, #ffdd99);
    color: #1a5c3a;
}
th.thCornerLast {
    border-width: 1px 1px 0 0;
    background: linear-gradient(135deg, #f5c542, #ffdd99);
    color: #1a5c3a;
}

/* --- НАЗВА ФОРУМУ --- */
.maintitle, h1, h2 {
    font-weight: bold;
    font-size: 28px;
    font-family: 'Exo 2', 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
    text-decoration: none;
    line-height: 120%;
    color: #f5c542;
    text-shadow: 2px 2px 4px #0a2a1a;
    letter-spacing: 1px;
}

/* --- ТЕКСТОВІ КЛАСИ --- */
.gen { font-size: 14px; }
.mediumMetaInfo { font-size: 13px; }
.txt_lowkey { font-size: 12px; }
.gen, .mediumMetaInfo, .txt_lowkey { color: #fef5e0; }
a.gen, a.mediumMetaInfo, a.txt_lowkey {
    color: #f5c542;
    text-decoration: none;
}
a.gen:hover, a.mediumMetaInfo:hover, a.txt_lowkey:hover {
    color: #ffdd99;
    text-decoration: underline;
}

/* --- ГОЛОВНЕ МЕНЮ --- */
.menu_primary_nav {
    font-size: 14px;
    color: #f5c542;
    font-weight: bold;
}
a.menu_primary_nav {
    text-decoration: none;
    color: #f5c542;
}
a.menu_primary_nav:hover {
    text-decoration: underline;
    color: #ffdd99;
}

/* --- НАЗВИ КАТЕГОРІЙ --- */
.cat_title_headline {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    color: #f5c542;
}
a.cat_title_headline {
    text-decoration: none;
    color: #f5c542;
}
a.cat_title_headline:hover {
    text-decoration: underline;
    color: #ffdd99;
}

/* --- ПОСИЛАННЯ ФОРУМІВ --- */
.forum_golink {
    font-weight: bold;
    font-size: 15px;
    color: #f5c542;
}
a.forum_golink {
    text-decoration: none;
    color: #f5c542;
}
a.forum_golink:hover {
    text-decoration: underline;
    color: #ffdd99;
}

/* --- НАВІГАЦІЯ --- */
.navigationBar {
    font-weight: bold;
    font-size: 13px;
    color: #ffdd99;
}
a.navigationBar {
    text-decoration: none;
    color: #f5c542;
}
a.navigationBar:hover {
    text-decoration: underline;
    color: #ffdd99;
}

/* --- ТЕМИ ПОВІДОМЛЕНЬ --- */
.topictitle {
    font-weight: bold;
    font-size: 14px;
    color: #f5c542;
}
a.topictitle:link {
    text-decoration: none;
    color: #f5c542;
}
a.topictitle:visited {
    text-decoration: none;
    color: #d4a017;
}
a.topictitle:hover {
    text-decoration: underline;
    color: #ffdd99;
}

/* --- ІМ'Я КОРИСТУВАЧА ТА ДЕТАЛІ --- */
.display_name {
    font-size: 13px;
    color: #ffdd99;
    font-weight: bold;
}
.post_infomatrix {
    font-size: 12px;
    color: #c0d0b0;
}

/* --- ТІЛО ПОВІДОМЛЕННЯ --- */
.commentMainBody {
    font-size: 14px;
    line-height: 1.5;
    color: #fef5e0;
}
a.postlink:link {
    text-decoration: none;
    color: #f5c542;
}
a.postlink:visited {
    text-decoration: none;
    color: #d4a017;
}
a.postlink:hover {
    text-decoration: underline;
    color: #ffdd99;
}

/* --- ЦИТАТИ ТА КОД --- */
.codePre {
    font-family: 'Courier New', 'Fira Code', Courier, monospace;
    font-size: 13px;
    color: #ffdd99;
    background-color: #0e2a1a;
    border: 1px solid #f5c542;
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0;
}
.blockquoteMain {
    font-family: 'Segoe UI', Verdana, Arial, sans-serif;
    font-size: 13px;
    color: #fef5e0;
    line-height: 130%;
    background-color: #1a4530;
    border-left: 4px solid #f5c542;
    border-radius: 0 12px 12px 0;
    padding: 10px 14px;
    margin: 10px 0;
}

/* --- КОПІРАЙТ --- */
.copyright {
    font-size: 11px;
    font-family: Verdana, Arial, sans-serif;
    color: #a0b890;
    letter-spacing: 0;
}
a.copyright {
    color: #a0b890;
    text-decoration: none;
}
a.copyright:hover {
    color: #f5c542;
    text-decoration: underline;
}

/* --- КНОПКИ --- */
input.clickableBtn, input.post, textarea.post, input, textarea, select {
    color: #fef5e0;
    font: normal 13px 'Segoe UI', Verdana, Arial, sans-serif;
    text-decoration: none;
    border: 1px solid #f5c542;
    background-color: #1a4530;
    border-radius: 10px;
}
input {
    text-indent: 4px;
}
input.liteoption, input.selectMain {
    background-color: #1a4530;
    color: #fef5e0;
    font-weight: bold;
    font-size: 13px;
    font-family: 'Segoe UI', Verdana, Arial, sans-serif;
    border-radius: 10px;
    padding: 6px 14px;
    cursor: pointer;
}
input.clickableBtn:hover, input.selectMain:hover, input.liteoption:hover {
    background-color: #f5c542;
    color: #1a5c3a;
    border-color: #d4a017;
}

/* --- ХЕЛПЛІНІЯ --- */
.helpline {
    background-color: #2a5a3a;
    border-style: none;
    color: #a0d0a0;
}

/* --- НАВІГАЦІЙНІ КНОПКИ СТОРІНОК (PG BUTT) --- */
.pageNavButton a {
    font-family: 'Segoe UI', Verdana, sans-serif;
    padding: 4px 12px;
    text-decoration: none;
    border: 1px solid #f5c542;
    background: #1a4530;
    margin: 0 3px;
    border-radius: 20px;
    color: #f5c542;
    transition: 0.2s;
}
.pageNavButton a:hover {
    background: #f5c542;
    color: #1a5c3a;
    border-color: #d4a017;
    text-decoration: none;
}

/* --- QR-CODE --- */
#qr img {
    width: 40px;
    height: 40px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    top: auto;
    border: 2px solid #f5c542;
    padding: 3px;
    background: #1a5c3a;
    border-radius: 16px;
    transition: 0.2s;
}
#qr img:hover {
    width: 200px;
    height: 200px;
    z-index: 100;
    border-radius: 20px;
    right: 10px;
    bottom: 10px;
}

/* --- АВАТАР ГОСТЯ --- */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(145deg, #f5c542, #d4a017);
    color: #1a5c3a;
    font-size: 52px;
    display: table-cell;
    border-radius: 30px;
    position: relative;
    vertical-align: middle;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border: 2px solid #ffdd99;
}

/* --- МЕНЮ АДМІНКИ (NAV8) --- */
#navigationBar8, #navigationBar8 ul {
    background: #1a4530;
    border-radius: 16px;
}
#navigationBar8 a {
    display: block;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: #f5c542;
    font-weight: bold;
}
#navigationBar8 td:hover, #navigationBar8 li:hover {
    background: #2a7a4a;
}
#navigationBar8 ul a {
    padding: 8px 15px;
    text-align: left;
}

/* --- АНІМАЦІЯ ЗАВАНТАЖЕННЯ --- */
#cssbar-wrapper { width: 300px; height: 19px; position: absolute; left: 50%; }
#cssbar-border {
    border: 3px solid #f5c542;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px 3px;
    border-radius: 20px;
}
#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
}
#cssbar-line {
    background-color: #f5c542;
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    animation: cssbar-slide 4s steps(40) infinite;
}
@keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 900px) {
    body { max-width: 96%; margin: 10px auto; }
    .maintitle { font-size: 22px; }
    th, td { font-size: 13px; }
}