/* ========================================
   НОВИЙ CSS СТИЛЬ ДЛЯ ФОРУМУ "Форум про IPTV телебачення"
   ======================================== */

/* ===== SVG ФОНОВИЙ МАЛЮНОК В BASE64 ===== */
/* Динамічний SVG фон з мотивами IPTV, телебачення та потокового контенту */

/* ===== ОСНОВНІ СТИЛІ BODY ===== */
body {
    background-color: #0f172a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 900"><defs><linearGradient id="tvGrad" x1="0%%" y1="0%%" x2="100%%" y2="100%%"><stop offset="0%%" style="stop-color:%23ff0080;stop-opacity:0.25" /><stop offset="100%%" style="stop-color:%230080ff;stop-opacity:0.15" /></linearGradient><radialGradient id="screenGlow" cx="50%%" cy="50%%"><stop offset="0%%" style="stop-color:%23ff006e;stop-opacity:0.2" /><stop offset="100%%" style="stop-color:%230080ff;stop-opacity:0.05" /></radialGradient></defs><rect width="1400" height="900" fill="%230f172a"/><rect width="1400" height="900" fill="url(%23tvGrad)"/><g opacity="0.08"><rect x="150" y="120" width="280" height="420" rx="20" fill="none" stroke="%23ff006e" stroke-width="3"/><rect x="170" y="140" width="240" height="320" fill="%230080ff" opacity="0.1"/><line x1="170" y1="170" x2="410" y2="170" stroke="%23ff006e" stroke-width="2"/><line x1="170" y1="200" x2="410" y2="200" stroke="%23ff006e" stroke-width="1.5"/><line x1="170" y1="230" x2="410" y2="230" stroke="%230080ff" stroke-width="1.5"/><line x1="170" y1="260" x2="410" y2="260" stroke="%230080ff" stroke-width="1.5"/><circle cx="290" cy="420" r="15" fill="%23ff006e" opacity="0.3"/><rect x="970" y="350" width="280" height="420" rx="20" fill="none" stroke="%230080ff" stroke-width="3"/><rect x="990" y="370" width="240" height="320" fill="%23ff006e" opacity="0.1"/><line x1="990" y1="400" x2="1230" y2="400" stroke="%230080ff" stroke-width="2"/><line x1="990" y1="430" x2="1230" y2="430" stroke="%230080ff" stroke-width="1.5"/><line x1="990" y1="460" x2="1230" y2="460" stroke="%23ff006e" stroke-width="1.5"/></g><g opacity="0.06"><circle cx="300" cy="700" r="80" fill="%23ff006e"/><circle cx="1100" cy="300" r="100" fill="%230080ff"/><circle cx="700" cy="450" r="120" fill="url(%23screenGlow)"/></g><g opacity="0.1"><path d="M 400 600 L 500 550 L 600 600 Z" fill="%23ff006e"/><path d="M 1000 150 L 1100 100 L 1200 150 Z" fill="%230080ff"/><rect x="50" y="50" width="150" height="100" fill="%23ff006e" opacity="0.15" rx="8"/><rect x="1200" y="750" width="150" height="100" fill="%230080ff" opacity="0.15" rx="8"/></g></svg>');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    scrollbar-arrow-color: #ff006e;
    scrollbar-face-color: #1e293b;
    scrollbar-track-color: #0f172a;
    scrollbar-highlight-color: #ff006e;
    scrollbar-3dlight-color: #0080ff;
    scrollbar-shadow-color: #ff006e;
    scrollbar-darkshadow-color: #0080ff;
}

/* ===== ОСНОВНІ ЕЛЕМЕНТИ ===== */
font, th, td, p {
    font-family: 'Inter', 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ===== ПОСИЛАННЯ ===== */
a {
    text-decoration: none;
    color: #0080ff;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:visited {
    text-decoration: none;
    color: #0066cc;
}

a:hover, a:active {
    text-decoration: underline;
    color: #ff006e;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.5);
}

/* ===== ГОРИЗОНТАЛЬНА ЛІНІЯ ===== */
hr {
    height: 0px;
    border: solid 2px #0080ff;
    border-top-width: 1px;
    margin: 12px 0;
    opacity: 0.5;
    box-shadow: 0 0 8px rgba(0, 128, 255, 0.3);
}

/* ===== ЗОБРАЖЕННЯ ===== */
img {
    border: 0px;
    max-width: 100%;
    height: auto;
}

/* ===== ФОРМИ ===== */
form {
    display: inline;
    margin: 0;
}

/* ========== ТАБЛИЦІ ========== */

/* Основна таблиця форуму */
table.lineDock-x8 {
    background-color: #1e293b;
    border: 2px solid #0080ff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

table.lineDock-x8:hover {
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: #ff006e;
}

/* Навігаційна таблиця */
table.navigation_links {
    background-color: #0f172a;
    background-image: none;
    border: 2px solid #0080ff;
    border-radius: 8px;
    height: 28px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 128, 255, 0.15);
}

table.navigation_links:hover {
    border: 2px solid #ff006e;
    background-color: #1e293b;
}

/* ===== РЯДКИ ТАБЛИЦІ ===== */
.row, .segmentAlpha, .beta_row {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    transition: background-color 0.2s ease;
}

.row:hover, .segmentAlpha:hover, .beta_row:hover {
    background-color: #0f172a;
    box-shadow: inset 0 0 10px rgba(0, 128, 255, 0.1);
}

.threadStripe3 {
    background-color: #0f172a;
    border-bottom: 1px solid #475569;
}

.threadStripe3:hover {
    background-color: #1a2332;
}

/* ===== ЗАГОЛОВКИ ТАБЛИЦІ ===== */
th, td.th {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff006e 0%, #0080ff 100%);
    height: 28px;
    padding: 6px 12px;
    border: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* ===== КАТЕГОРІЙНІ ЗАГОЛОВКИ ===== */
td.cat, td.cat_banner_main, td.category_leftfocus, td.rowpic, td.catSides, td.cat_right_column, td.catBottom {
    color: #0080ff;
    font-size: 13px;
    font-weight: 700;
    background-color: #1e293b;
    background-image: linear-gradient(to bottom, #0f172a, #1e293b);
    height: 26px;
    padding: 6px 12px;
    border: 2px solid #0080ff;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 128, 255, 0.15);
}

/* ===== РОЗМІРИ ШРИФТУ ===== */
.gen {
    font-size: 14px;
    color: #ffffff;
}

.txt_midstage {
    font-size: 13px;
    color: #ffffff;
}

.txt_microblock {
    font-size: 12px;
    color: #ffffff;
}

/* ===== НАВІГАЦІЙНІ СТИЛІ ===== */
.navigation_links {
    font-weight: 700;
    font-size: 13px;
    color: #0080ff;
}

.navigation_links a, .navigation_links a:visited {
    text-decoration: none;
    color: #0080ff;
    font-weight: 600;
}

.navigation_links a:hover, .navigation_links a:active {
    text-decoration: underline;
    color: #ff006e;
    text-shadow: 0 0 6px rgba(255, 0, 110, 0.4);
}

/* ===== ПОСИЛАННЯ ФОРУМУ ===== */
.forum_reference {
    font-weight: 700;
    font-size: 14px;
    color: #0080ff;
}

a.forum_reference, a.forum_reference:visited {
    text-decoration: none;
    color: #0080ff;
    transition: all 0.3s ease;
}

a.forum_reference:hover, a.forum_reference:active {
    text-decoration: underline;
    color: #ff006e;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.4);
    font-size: 14.2px;
}

/* ===== ФОРМИ ВВОДУ ===== */
input {
    text-indent: 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

input, textarea, select {
    color: #ffffff;
    font: normal 14px 'Inter', 'Segoe UI', Verdana, Arial, sans-serif;
    background-color: #0f172a;
}

input.post, textarea.post, select {
    background-color: #1e293b;
    border: 2px solid #0080ff;
    color: #ffffff;
    padding: 8px 12px;
}

input.post:focus, textarea.post:focus, select:focus {
    border-color: #ff006e;
    background-color: #334155;
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.3);
    outline: none;
}

input.post {
    height: 24px;
}

/* ===== КНОПКИ ===== */
input.ui_keybtn {
    background: linear-gradient(135deg, #ff006e, #0080ff);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', 'Segoe UI', Verdana, Arial, sans-serif;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input.ui_keybtn:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.5);
    transform: translateY(-2px);
}

input.ui_keybtn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3);
}

/* ===== ОСНОВНІ І ЛЕГШІ ОПЦІЇ ===== */
input.primaryPreference {
    background-color: #1e293b;
    font-weight: 700;
    border: 2px solid #0080ff;
    color: #0080ff;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.primaryPreference:hover {
    background-color: #0f172a;
    border-color: #ff006e;
    color: #ff006e;
    box-shadow: 0 0 8px rgba(255, 0, 110, 0.2);
}

input.liteoption {
    background-color: #1e293b;
    font-weight: normal;
    border: 1px solid #475569;
    color: #cbd5e1;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.liteoption:hover {
    background-color: #0f172a;
    border-color: #0080ff;
    color: #0080ff;
}

/* ===== SELECT ОПЦІЇ ===== */
select optgroup {
    background-color: #1e293b;
    color: #0080ff;
    font-weight: 700;
}

select option, select optgroup option {
    background-color: #1e293b;
    color: #e2e8f0;
}

select option:checked {
    background: linear-gradient(#0080ff, #0080ff);
    color: #ffffff;
}

/* ===== КОД ===== */
.code_stampbox {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #00ff88;
    background-color: #0f172a;
    border: 2px solid #0080ff;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    line-height: 1.5;
    box-shadow: inset 0 0 8px rgba(0, 128, 255, 0.1);
}

/* ===== ЦИТАТИ ===== */
.quotation {
    font-family: 'Inter', 'Segoe UI', Verdana, Arial, sans-serif;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.6;
    background-color: #1e293b;
    border-left: 4px solid #ff006e;
    border: 2px solid #475569;
    border-left: 4px solid #ff006e;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    font-style: italic;
    box-shadow: inset 0 0 8px rgba(255, 0, 110, 0.05);
}

/* ===== ТІЛО ПОСТУ ===== */
.post_bodyroot {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
}

.post_bodyroot a, .post_bodyroot a:visited {
    text-decoration: underline;
    color: #0080ff;
}

.post_bodyroot a:hover, .post_bodyroot a:active {
    text-decoration: underline;
    color: #ff006e;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.3);
}

/* ===== ІМЯ КОРИСТУВАЧА ===== */
.profileNameText {
    font-weight: 700;
    font-size: 13px;
    color: #0080ff;
}

.profileNameText a, .profileNameText a:visited {
    text-decoration: none;
    color: #0080ff;
}

.profileNameText a:hover, .profileNameText a:active {
    text-decoration: underline;
    color: #ff006e;
    text-shadow: 0 0 6px rgba(255, 0, 110, 0.4);
}

/* ===== ДЕТАЛІ ПОСТУ ===== */
.post_infoframe {
    color: #ffffff;
    font-size: 11px;
    line-height: 1.5;
}

/* ===== РЯДОК ПРОСТОРУ ===== */
td.spacerow {
    background-color: #0f172a;
    background-image: none;
    height: 4px;
    padding: 0px;
    border: none;
    box-shadow: inset 0 0 4px rgba(0, 128, 255, 0.1);
}

/* ===== ЗАГОЛОВКИ КАТЕГОРІЙ ===== */
.cat_title_focus {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    color: #0080ff;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 128, 255, 0.2);
}

a.cat_title_focus {
    text-decoration: none;
    color: #0080ff;
}

a.cat_title_focus:hover {
    text-decoration: underline;
    color: #ff006e;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
}

/* ===== ОСНОВНІ ЗАГОЛОВКИ ===== */
.maintitle, h1, h2 {
    font-weight: 800;
    font-size: 24px;
    font-family: 'Inter', 'Segoe UI', 'Roboto', Verdana, Arial, sans-serif;
    text-decoration: none;
    line-height: 120%;
    background: linear-gradient(90deg, #0080ff, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
    filter: drop-shadow(0 0 4px rgba(0, 128, 255, 0.2));
}

/* ===== СПЕЦІАЛЬНІ СТИЛІ ДЛЯ WR-FORUM ===== */

/* Кнопки навігації */
.pgLink a {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    padding: 7px 16px;
    text-decoration: none;
    border: 2px solid #0080ff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #0080ff;
    font-weight: 700;
    margin: 5px 3px 0 0;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    box-shadow: 0 0 8px rgba(0, 128, 255, 0.2);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.pgLink a:hover {
    background: linear-gradient(135deg, #ff006e, #0080ff);
    color: #ffffff;
    border-color: #ff006e;
    box-shadow: 0 0 16px rgba(255, 0, 110, 0.4);
    transform: translateY(-2px);
}

/* Фальшива кнопка */
.fakebut {
    border: 2px solid #0080ff;
    font-size: 13px;
    font-weight: 700;
    background-color: #1e293b;
    color: #0080ff;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fakebut:hover {
    background: linear-gradient(135deg, #ff006e, #0080ff);
    color: #ffffff;
    border-color: #ff006e;
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.3);
}

/* QR-CODE */
#qr img {
    width: 35px;
    height: 35px;
    position: fixed;
    right: 15px;
    top: 15px;
    border: 3px solid #0080ff;
    padding: 3px;
    background-color: #0f172a;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 128, 255, 0.3);
}

#qr img:hover {
    width: 260px;
    height: 260px;
    z-index: 100;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4);
    border-color: #ff006e;
}

/* Аватар за замовчуванням */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #ff006e, #0080ff);
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    display: table-cell;
    border-radius: 14px;
    position: relative;
    vertical-align: middle;
    border: 3px solid #0080ff;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Навігаційне МЕНЮ В АДМИНЦІ */
#navigation_links8, #navigation_links8 ul, #navigation_links8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#navigation_links8, #navigation_links8 ul {
    background: #1e293b;
}

#navigation_links8 {
    border-spacing: 0 0;
    position: relative;
    z-index: 50;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #0080ff;
}

#navigation_links8 ul {
    position: absolute;
    display: none;
    border: 2px solid #0080ff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
}

#navigation_links8 td:hover ul {
    display: block;
}

#navigation_links8 ul li {
    list-style: none;
}

#navigation_links8 .right {
    direction: rtl;
}

#navigation_links8 .right ul {
    right: 0;
}

#navigation_links8 .right li {
    direction: ltr;
}

#navigation_links8 a {
    display: block;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: #0080ff;
    transition: all 0.3s ease;
}

#navigation_links8 ul a {
    padding: 8px 20px;
    text-align: left;
}

#navigation_links8 td:hover, #navigation_links8 li:hover {
    background: #0f172a;
    border-radius: 8px;
    box-shadow: inset 0 0 8px rgba(0, 128, 255, 0.2);
}

#navigation_links8 td {
    text-align: center;
}

#navigation_links8 a:hover {
    color: #ff006e;
    font-weight: 800;
    text-shadow: 0 0 6px rgba(255, 0, 110, 0.3);
}

/* Стиль для блока завантаження */
#cssbar-wrapper {
    width: 300px;
    height: 22px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 3px solid #0080ff;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px 3px;
    border-radius: 6px;
    background-color: #0f172a;
    box-shadow: inset 0 0 8px rgba(0, 128, 255, 0.2);
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 4px;
}

#cssbar-line {
    background: linear-gradient(90deg, #ff006e, #0080ff, #ff006e);
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 4s steps(40) infinite;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 0, 110, 0.4);
    -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;
    }

    .post_bodyroot {
        font-size: 13px;
    }

    input, textarea, select {
        font-size: 13px;
    }

    input.ui_keybtn {
        padding: 7px 14px;
        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.lineDock-x8 {
        border-radius: 8px;
        border-width: 2px;
    }

    th, td.th {
        font-size: 11px;
        padding: 4px 6px;
    }

    .post_bodyroot {
        font-size: 12px;
    }

    input.ui_keybtn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .guestavatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    #qr img:hover {
        width: 200px;
        height: 200px;
    }

    table.lineDock-x8 {
        border-radius: 8px;
    }
}
