/* ========================================
   НОВИЙ CSS СТИЛЬ ДЛЯ ФОРУМУ "Київський Колекціонер"
   ======================================== */

/* ===== SVG ФОНОВИЙ МАЛЮНОК В BASE64 ===== */
/* Динамічний SVG фон з мотивами монет, книг, антикваріату та дорогоцінних камнів */

/* ===== ОСНОВНІ СТИЛІ BODY ===== */
body {
    background-color: #f4efe4;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 900"><defs><radialGradient id="goldGrad" cx="40%%" cy="40%%"><stop offset="0%%" style="stop-color:%23ffd700;stop-opacity:0.3" /><stop offset="100%%" style="stop-color:%23b8860b;stop-opacity:0.1" /></radialGradient><pattern id="damask" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M50,10 Q60,25 50,40 Q40,25 50,10 M50,50 Q60,65 50,80 Q40,65 50,50" fill="%23d4af37" opacity="0.05"/></pattern></defs><rect width="1400" height="900" fill="%23f4efe4"/><rect width="1400" height="900" fill="url(%23damask)"/><circle cx="150" cy="150" r="80" fill="url(%23goldGrad)"/><circle cx="1250" cy="750" r="100" fill="url(%23goldGrad)"/><circle cx="700" cy="450" r="120" fill="url(%23goldGrad)" opacity="0.4"/><g opacity="0.08"><circle cx="250" cy="250" r="60" fill="%23a0522d" stroke="%23654321" stroke-width="2"/><circle cx="1100" cy="600" r="50" fill="%23a0522d" stroke="%23654321" stroke-width="2"/><rect x="100" y="700" width="80" height="120" fill="%238b7355" stroke="%23654321" stroke-width="1.5" rx="4"/><rect x="1200" y="200" width="100" height="150" fill="%238b7355" stroke="%23654321" stroke-width="1.5" rx="4"/><path d="M400,600 L450,650 L400,700 L350,650 Z" fill="%23c41e3a" stroke="%238b0000" stroke-width="1"/><path d="M1000,300 L1050,350 L1000,400 L950,350 Z" fill="%23c41e3a" stroke="%238b0000" stroke-width="1"/><path d="M300,100 Q330,80 360,100 Q330,130 300,100" fill="%23ffd700" opacity="0.4"/><path d="M1100,800 Q1130,780 1160,800 Q1130,830 1100,800" fill="%23ffd700" opacity="0.4"/></g><line x1="0" y1="0" x2="1400" y2="0" stroke="%23d4af37" stroke-width="3" opacity="0.3"/><line x1="0" y1="900" x2="1400" y2="900" stroke="%23d4af37" stroke-width="3" opacity="0.3"/></svg>');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    scrollbar-arrow-color: #8b4513;
    scrollbar-face-color: #f4efe4;
    scrollbar-track-color: #ede6d3;
    scrollbar-highlight-color: #ffffff;
    scrollbar-3dlight-color: #d4af37;
    scrollbar-shadow-color: #c9b99a;
    scrollbar-darkshadow-color: #8b7355;
}

/* ===== ОСНОВНІ ЕЛЕМЕНТИ ===== */
font, th, td, p {
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* ===== ПОСИЛАННЯ ===== */
a {
    text-decoration: none;
    color: #8b4513;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:visited {
    text-decoration: none;
    color: #654321;
}

a:hover, a:active {
    text-decoration: underline;
    color: #d4af37;
    font-weight: 600;
}

/* ===== ГОРИЗОНТАЛЬНА ЛІНІЯ ===== */
hr {
    height: 0px;
    border: solid 2px #d4af37;
    border-top-width: 2px;
    margin: 12px 0;
    opacity: 0.6;
}

/* ===== ЗОБРАЖЕННЯ ===== */
img {
    border: 0px;
    max-width: 100%;
    height: auto;
}

/* ===== ФОРМИ ===== */
form {
    display: inline;
    margin: 0;
}

/* ========== ТАБЛИЦІ ========== */

/* Основна таблиця форуму */
table.forumline {
    background-color: #ffffff;
    border: 3px solid #d4af37;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

table.forumline:hover {
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-color: #c9a961;
}

/* Навігаційна таблиця */
table.nav {
    background-color: #f9f5f0;
    background-image: none;
    border: 2px solid #d4af37;
    border-radius: 5px;
    height: 28px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(139, 69, 19, 0.1);
}

table.nav:hover {
    border: 2px solid #c9a961;
    background-color: #f5f0e8;
}

/* ===== РЯДКИ ТАБЛИЦІ ===== */
.row, .row1, .row2 {
    background-color: #ffffff;
    border-bottom: 1px solid #ede6d3;
    transition: background-color 0.2s ease;
}

.row:hover, .row1:hover, .row2:hover {
    background-color: #faf8f5;
}

.row3 {
    background-color: #f9f5f0;
    border-bottom: 1px solid #e8dcc8;
}

.row3:hover {
    background-color: #f5f0e8;
}

/* ===== ЗАГОЛОВКИ ТАБЛИЦІ ===== */
th, td.th {
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    background-color: #8b4513;
    background-image: linear-gradient(to bottom, #a0522d, #654321);
    height: 28px;
    padding: 6px 12px;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.8px;
}

/* ===== КАТЕГОРІЙНІ ЗАГОЛОВКИ ===== */
td.cat, td.catHead, td.catLeft, td.rowpic, td.catSides, td.catRight, td.catBottom {
    color: #8b4513;
    font-size: 13px;
    font-weight: bold;
    background-color: #ede6d3;
    background-image: linear-gradient(to bottom, #f5f0e8, #e8dcc8);
    height: 26px;
    padding: 6px 12px;
    border: 2px solid #d4af37;
    border-radius: 3px;
}

/* ===== РОЗМІРИ ШРИФТУ ===== */
.gen {
    font-size: 14px;
    color: #333333;
    font-family: 'Georgia', serif;
}

.genmed {
    font-size: 13px;
    color: #555555;
    font-family: 'Georgia', serif;
}

.gensmall {
    font-size: 12px;
    color: #777777;
    font-family: 'Georgia', serif;
}

/* ===== НАВІГАЦІЙНІ СТИЛІ ===== */
.nav {
    font-weight: bold;
    font-size: 13px;
    color: #8b4513;
    font-family: 'Georgia', serif;
}

.nav a, .nav a:visited {
    text-decoration: none;
    color: #8b4513;
    font-weight: 500;
}

.nav a:hover, .nav a:active {
    text-decoration: underline;
    color: #d4af37;
}

/* ===== ПОСИЛАННЯ ФОРУМУ ===== */
.forumlink {
    font-weight: bold;
    font-size: 14px;
    color: #654321;
    font-family: 'Georgia', serif;
}

a.forumlink, a.forumlink:visited {
    text-decoration: none;
    color: #654321;
    transition: all 0.3s ease;
}

a.forumlink:hover, a.forumlink:active {
    text-decoration: underline;
    color: #d4af37;
    font-size: 14.3px;
}

/* ===== ФОРМИ ВВОДУ ===== */
input {
    text-indent: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

input, textarea, select {
    color: #333333;
    font: normal 14px 'Georgia', 'Garamond', serif;
}

input.post, textarea.post, select {
    background-color: #ffffff;
    border: 2px solid #d4af37;
    color: #333333;
    padding: 6px 8px;
}

input.post:focus, textarea.post:focus, select:focus {
    border-color: #8b4513;
    background-color: #faf8f5;
    box-shadow: 0 0 6px rgba(139, 69, 19, 0.3);
}

input.post {
    height: 24px;
}

/* ===== КНОПКИ ===== */
input.button {
    background-color: #8b4513;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Georgia', serif;
    border: 2px solid #654321;
    border-radius: 4px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

input.button:hover {
    background-color: #a0522d;
    border-color: #8b4513;
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

input.button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== ОСНОВНІ І ЛЕГШІ ОПЦІЇ ===== */
input.mainoption {
    background-color: #ffffff;
    font-weight: bold;
    border: 2px solid #8b4513;
    color: #8b4513;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

input.mainoption:hover {
    background-color: #ede6d3;
    border-color: #654321;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.15);
}

input.liteoption {
    background-color: #ffffff;
    font-weight: normal;
    border: 1px solid #d4af37;
    color: #555555;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

input.liteoption:hover {
    background-color: #f9f5f0;
    border-color: #8b4513;
}

/* ===== SELECT ОПЦІЇ ===== */
select optgroup {
    background-color: #ede6d3;
    color: #8b4513;
    font-weight: bold;
}

select option, select optgroup option {
    background-color: #ffffff;
    color: #333333;
}

select option:checked {
    background-color: #8b4513;
    color: #ffffff;
}

/* ===== КОД ===== */
.code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #654321;
    background-color: #f9f5f0;
    border: 2px solid #d4af37;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    line-height: 1.5;
}

/* ===== ЦИТАТИ ===== */
.quote {
    font-family: 'Georgia', serif;
    font-size: 13px;
    color: #654321;
    line-height: 1.6;
    background-color: #f5f0e8;
    border-left: 5px solid #d4af37;
    border: 2px solid #ede6d3;
    border-left: 5px solid #d4af37;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
    font-style: italic;
}

/* ===== ТІЛО ПОСТУ ===== */
.postbody {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

.postbody a, .postbody a:visited {
    text-decoration: underline;
    color: #8b4513;
}

.postbody a:hover, .postbody a:active {
    text-decoration: underline;
    color: #d4af37;
}

/* ===== ІМЯ КОРИСТУВАЧА ===== */
.name {
    font-weight: bold;
    font-size: 13px;
    color: #654321;
    font-family: 'Georgia', serif;
}

.name a, .name a:visited {
    text-decoration: none;
    color: #654321;
}

.name a:hover, .name a:active {
    text-decoration: underline;
    color: #d4af37;
}

/* ===== ДЕТАЛІ ПОСТУ ===== */
.postdetails {
    color: #999999;
    font-size: 11px;
    line-height: 1.5;
    font-family: 'Georgia', serif;
}

/* ===== РЯДОК ПРОСТОРУ ===== */
td.spacerow {
    background-color: #ede6d3;
    background-image: none;
    height: 4px;
    padding: 0px;
    border: none;
}

/* ===== ЗАГОЛОВКИ КАТЕГОРІЙ ===== */
.cattitle {
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 1px;
    color: #654321;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
}

a.cattitle {
    text-decoration: none;
    color: #654321;
}

a.cattitle:hover {
    text-decoration: underline;
    color: #d4af37;
}

/* ===== ОСНОВНІ ЗАГОЛОВКИ ===== */
.maintitle, h1, h2 {
    font-weight: bold;
    font-size: 24px;
    font-family: 'Georgia', 'Garamond', serif;
    text-decoration: none;
    line-height: 120%;
    color: #654321;
    margin: 10px 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

/* ===== СПЕЦІАЛЬНІ СТИЛІ ДЛЯ WR-FORUM ===== */

/* Кнопки навігації */
.pgbutt a {
    font-family: 'Georgia', serif;
    padding: 6px 14px;
    text-decoration: none;
    border: 2px solid #8b4513;
    background: linear-gradient(to bottom, #f5f0e8, #ede6d3);
    color: #654321;
    font-weight: 600;
    margin: 5px 3px 0 0;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.15);
}

.pgbutt a:hover {
    background: linear-gradient(to bottom, #8b4513, #654321);
    color: #ffffff;
    border-color: #654321;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.25);
    transform: translateY(-2px);
}

/* Фальшива кнопка */
.fakebut {
    border: 2px solid #8b4513;
    font-size: 13px;
    font-weight: bold;
    background-color: #f9f5f0;
    color: #654321;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.fakebut:hover {
    background-color: #8b4513;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.2);
}

/* QR-CODE */
#qr img {
    width: 35px;
    height: 35px;
    position: fixed;
    right: 15px;
    top: 15px;
    border: 3px solid #8b4513;
    padding: 3px;
    background-color: white;
    border-radius: 6px;
    transition: all 0.4s ease;
    z-index: 99;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.2);
}

#qr img:hover {
    width: 240px;
    height: 240px;
    z-index: 100;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
    border-color: #d4af37;
}

/* Аватар за замовчуванням */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #d4af37, #c9a961);
    color: #654321;
    font-size: 48px;
    font-weight: bold;
    display: table-cell;
    border-radius: 10px;
    position: relative;
    vertical-align: middle;
    border: 3px solid #8b4513;
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    font-family: 'Georgia', serif;
}

/* Навігаційне МЕНЮ В АДМИНЦІ */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#nav8, #nav8 ul {
    background: #f9f5f0;
}

#nav8 {
    border-spacing: 0 0;
    position: relative;
    z-index: 50;
    width: 100%;
    border-radius: 5px;
    border: 2px solid #d4af37;
}

#nav8 ul {
    position: absolute;
    display: none;
    border: 2px solid #d4af37;
    border-radius: 5px;
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.2);
}

#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: 8px 0;
    text-align: center;
    text-decoration: none;
    color: #654321;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

#nav8 ul a {
    padding: 8px 20px;
    text-align: left;
}

#nav8 td:hover, #nav8 li:hover {
    background: #ede6d3;
    border-radius: 5px;
}

#nav8 td {
    text-align: center;
}

#nav8 a:hover {
    color: #d4af37;
    font-weight: bold;
}

/* Стиль для блока завантаження */
#cssbar-wrapper {
    width: 300px;
    height: 22px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 3px solid #8b4513;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px 3px;
    border-radius: 5px;
    background-color: #f5f0e8;
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 3px;
}

#cssbar-line {
    background: linear-gradient(to right, #8b4513, #d4af37, #8b4513);
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 4s steps(40) infinite;
    border-radius: 3px;
    -o-animation: cssbar-slide 4s steps(40) infinite;
    -ms-animation: cssbar-slide 4s steps(40) infinite;
    -webkit-animation: cssbar-slide 4s steps(40) infinite;
    -moz-animation: cssbar-slide 4s steps(40) infinite;
}

@keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@-o-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@-ms-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@-webkit-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@-moz-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== АДАПТИВНІСТЬ ===== */
@media (max-width: 768px) {
    font, th, td, p {
        font-size: 13px;
    }

    .maintitle, h1, h2 {
        font-size: 20px;
    }

    th, td.th {
        font-size: 12px;
        height: 24px;
        padding: 5px 8px;
    }

    .postbody {
        font-size: 13px;
    }

    input, textarea, select {
        font-size: 13px;
    }

    input.button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .guestavatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .maintitle, h1, h2 {
        font-size: 18px;
    }

    table.forumline {
        border-radius: 4px;
        border-width: 2px;
    }

    th, td.th {
        font-size: 11px;
        padding: 4px 6px;
    }

    .postbody {
        font-size: 12px;
    }

    input.button {
        padding: 5px 10px;
        font-size: 11px;
    }

    .guestavatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    #qr img:hover {
        width: 180px;
        height: 180px;
    }
}