/*
Theme Name: Weblut theme
Theme URI: https://weblut.pro/
Author: WebLut
Author URI: https://weblut.pro/
Description: Weblut is a futuristic, dark-mode WordPress theme designed with a high-contrast Cyberpunk aesthetic. It features a unique horizontal card layout for blog posts simulating a digital interface with neon glow effects. The theme is fully responsive and includes extensive customization options via the WordPress Customizer: global color controls, typography settings, layout spacing, and visibility toggles for breadcrumbs and page titles. Key features include AJAX "Load More" post navigation, a stylish "Back to Top" button, and a flexible grid system. Ideal for technology news, gaming blogs, and creative portfolios.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weblut-theme
Tags: blog, right-sidebar, custom-background, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, photography, portfolio
*/

/* @import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;800&display=swap'); перенесено в functions.php */

:root {
    --bg-dark: #151e2e;          
    --bg-panel: rgba(30, 45, 65, 0.8); 
    --primary: #00f3ff;          
    --primary-glow: rgba(0, 243, 255, 0.3);
    --accent: #7000ff;           
    --text-main: #c0d4f5;        
    --text-bright: #ffffff;      
    --border-glow: 1px solid rgba(0, 243, 255, 0.3);
    
    /* Дефолтні налаштування (перебиваються кастомайзером) */
    --wp-admin-offset: 0px; 
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-size-base: 16px;
    --main-padding: 10px;
    --header-gap: 5px;
}

body.admin-bar { --wp-admin-offset: 32px; }
@media screen and (max-width: 782px) { body.admin-bar { --wp-admin-offset: 46px; } } /* Поправил высоту админ-бара для мобильных */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; width: 100%; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    
    /* ШРИФТИ (Змінні) */
    font-family: var(--font-body); 
    font-size: var(--font-size-base);
    
    overflow-x: hidden; 
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { 
    color: var(--text-bright); 
    margin-top: 0; 
    text-transform: uppercase;
    font-family: var(--font-heading);
}

button, input, textarea, select, .button {
    font-family: var(--font-heading);
}

button, input[type="submit"], .button {
    background: transparent; border: 2px solid var(--primary); color: var(--primary);
    padding: 12px 24px; text-transform: uppercase; font-weight: 700;
    cursor: pointer; transition: 0.3s;
}
button:hover, input[type="submit"]:hover, .button:hover { 
    background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); 
}

#cyber-grid {
    z-index: -9999; pointer-events: none;
    background: radial-gradient(circle at center, transparent 20%, #0d121c 100%);
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
}

/* ============================================================
   03. СТРУКТУРА
   ============================================================ */
.site { 
    width: 100%; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    padding: var(--main-padding); 
    position: relative; 
}

/* ФІКС ВІДСТУПІВ ДЛЯ МОБІЛЬНИХ */
@media screen and (max-width: 600px) {
    .site {
        padding: 5px !important;
    }
}

.site-content {
    width: 100%; flex: 1; margin-top: var(--header-gap); margin-bottom: 0;
    position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between;
}

.entry-content, .site-main, article, .entry-header { max-width: 100% !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* САЙДБАРИ */
@media screen and (min-width: 900px) {
    body.sidebar-pos-left .site-main, body.sidebar-pos-right .site-main { width: 70% !important; flex: 0 0 70% !important; max-width: 70% !important; }
    body.sidebar-pos-left .widget-area, body.sidebar-pos-right .widget-area { width: 28% !important; flex: 0 0 28% !important; max-width: 28% !important; }
    body.sidebar-pos-right .site-content { flex-direction: row; }
    body.sidebar-pos-left .site-content { flex-direction: row-reverse; }
}
body.sidebar-pos-bottom .site-main, body.sidebar-pos-none .site-main { width: 100% !important; flex: 0 0 100% !important; }
body.sidebar-pos-bottom .site-content { flex-direction: column; }

@media screen and (max-width: 899px) {
    .site-content { flex-direction: column !important; }
    .site-main, .widget-area { width: 100% !important; }
    .widget-area { order: 2; margin-top: 30px; }
}

/* ============================================================
   04. ШАПКА
   ============================================================ */
.site-header {
    background: #111825; border-bottom: 2px solid var(--primary); box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    height: 80px; width: 100%; position: sticky; z-index: 9999; top: var(--wp-admin-offset);
    transition: height 0.3s ease; margin: 0; padding: 0;
}

.header-container {
    width: 100%; height: 100%; display: flex; align-items: center;
    padding-left: 20px; padding-right: 20px; gap: 20px;
    justify-content: space-between; /* Важливо для мобільного */
}

.site-branding { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.site-title { margin: 0 !important; padding: 0 !important; line-height: 1 !important; font-family: var(--font-heading); }
.site-title a { color: var(--primary); font-size: 2rem; font-weight: 800; text-transform: uppercase; text-decoration: none; letter-spacing: 2px; text-shadow: 0 0 10px var(--primary); }

/* МЕНЮ ПК */
@media screen and (min-width: 801px) {
    .menu-toggle { display: none; } 
    .main-navigation { flex-grow: 1; }
    .main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 30px; align-items: center; }
    .main-navigation li { position: relative; }
    .main-navigation a { color: var(--text-main); text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 14px; padding: 28px 0; transition: 0.3s; display: block; font-family: var(--font-heading); }
    .main-navigation a:hover { color: var(--text-bright); text-shadow: 0 0 8px var(--primary); }
    
    .main-navigation ul ul { display: none; position: absolute; top: 100%; left: 0; background: #111825; min-width: 220px; border: 1px solid var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.8); flex-direction: column; padding: 10px 0; z-index: 10000; gap: 0; }
    .main-navigation li:hover > ul { display: flex; animation: fadeIn 0.3s ease; }
    .main-navigation ul ul a { padding: 12px 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-navigation ul ul a:hover { background: rgba(0, 243, 255, 0.15); color: var(--primary); }
}

/* МЕНЮ МОБІЛЬНЕ */
@media screen and (max-width: 800px) {
    .site-header { height: 70px; } /* Трохи менша висота для мобільного */
    .header-container { padding-left: 15px; padding-right: 15px; gap: 10px; } /* Менші відступи */
    
    .site-title a { font-size: 1.5rem; } /* Менший логотип */

    .menu-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; position: relative; z-index: 10001; }
    .menu-toggle .icon-bar { width: 100%; height: 3px; background-color: var(--primary); border-radius: 2px; transition: 0.3s; }
    .menu-toggle[aria-expanded="true"] { position: fixed; top: 25px; right: 20px; } /* Фікс положення хрестика */
    .menu-toggle[aria-expanded="true"] .icon-bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); background-color: #ff0055; box-shadow: 0 0 10px #ff0055; }
    .menu-toggle[aria-expanded="true"] .icon-bar:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] .icon-bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); background-color: #ff0055; box-shadow: 0 0 10px #ff0055; }
    
    .main-navigation { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #0d121c; border-left: 2px solid var(--primary); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 10000; overflow-y: auto; padding-top: 80px; }
    .main-navigation.toggled { transform: translateX(0); }
    .main-navigation ul { flex-direction: column; padding: 0; margin: 0; list-style: none; }
    .main-navigation li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .main-navigation a { display: block; padding: 15px 25px; color: #fff; font-size: 16px; text-transform: uppercase; text-decoration: none; text-align: right; font-family: var(--font-heading); }
    
    .main-navigation li.menu-item-has-children > a::after, .main-navigation li.page_item_has_children > a::after { content: '▼'; display: inline-block; margin-left: 10px; font-size: 0.7em; color: var(--accent); transition: transform 0.3s ease; }
    .main-navigation li.active > a::after { transform: rotate(180deg); color: var(--primary); }
    .main-navigation ul ul { display: none; background: rgba(0,0,0,0.4); padding-right: 0; border-top: 1px solid rgba(0, 243, 255, 0.2); }
    .main-navigation ul ul.toggled-on { display: block; }
    .main-navigation ul ul a { font-size: 14px; padding: 12px 35px 12px 25px; color: var(--primary); }
    .main-navigation ul ul a::after { display: none; }
}

/* ============================================================
   05. КОМПОНЕНТИ
   ============================================================ */
.post, .page, .widget { background: var(--bg-panel); border: var(--border-glow); padding: 0px; margin-bottom: 40px; border-radius: 6px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); width: 100%; }
@media screen and (max-width: 600px) { .post, .page, .widget { padding: 5px; } }
article.post, article.page, article.type-post, .search-results article { background-color: var(--bg-panel); border: var(--border-glow); padding: 40px; margin-bottom: 40px; border-radius: 6px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); max-width: 100%; overflow: hidden; position: relative; }
@media screen and (max-width: 600px) { article.post, article.page { padding: 15px; } }

/* ----------------------------------------------------- */
/* КІБЕР-КАРТКИ (ВИПРАВЛЕНИЙ БЛОК)                      */
/* ----------------------------------------------------- */

.weblut-display-grid { 
    display: grid; 
    /* 290px дозволяє карткам ставати по 2 в ряд на планшетах і по 1 на телефонах */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 25px; 
    align-items: start; 
}

article.cyber-card { 
    position: relative; 
    height: 220px; 
    background: var(--bg-panel); 
    border: 1px solid var(--primary); 
    border-radius: 15px; 
    padding: 0 !important; 
    margin-bottom: 25px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: row !important; /* ЗАВЖДИ РЯДОК, НІКОЛИ КОЛОНКА */
    transition: all 0.3s ease; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}

.weblut-display-grid article.cyber-card { margin-bottom: 0; }
article.cyber-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 0 20px var(--primary-glow); border-color: var(--text-bright); }

/* Картинка зліва */
article.cyber-card .post-thumbnail { 
    width: 40% !important; 
    height: 100% !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    flex-shrink: 0; 
    border-right: 1px solid rgba(0, 243, 255, 0.2); 
    overflow: hidden; 
    display: block !important; 
}
article.cyber-card .post-thumbnail img, article.cyber-card .post-thumbnail a img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

/* Текст справа */
article.cyber-card .entry-header { 
    width: 60%; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    background: transparent !important; 
    position: relative;
}

/* Назва посту */
article.cyber-card .entry-title { 
    font-size: 1.1rem !important; 
    margin: 0 0 10px 0 !important; 
    line-height: 1.3; 
    text-transform: none; 
    font-family: var(--font-heading); 
}
article.cyber-card .entry-title a { color: var(--text-bright); text-decoration: none; }

/* META: ВИПРАВЛЕНО РОЗМІР (БУЛО ВЕЛИКЕ) */
article.cyber-card .entry-meta {
    font-size: 0.75rem !important; /* Зменшено */
    font-family: monospace;
    color: var(--primary) !important;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 5px !important;
}
article.cyber-card .entry-meta a { font-size: 0.75rem !important; color: var(--primary) !important; }

.weblut-display-grid article.cyber-card .entry-content, .weblut-display-grid article.cyber-card .entry-footer, .weblut-display-grid article.cyber-card .more-link { display: none !important; }

/* Золотий чіп Visa (знизу справа) */
article.cyber-card::after { 
    content: ""; position: absolute; bottom: 15px; right: 15px; 
    width: 35px; height: 25px; 
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%); 
    border-radius: 4px; opacity: 0.5; z-index: 5; 
}

/* КАТЕГОРІЯ: ПЕРЕМІЩЕНО ВНИЗ ВЛІВО (щоб не налізала на заголовок) */
article.cyber-card .card-category { 
    position: absolute; 
    bottom: 15px; /* Притиснуто до низу */
    left: 15px;   /* Притиснуто до лівого краю текстового блоку */
    top: auto;    /* Скидаємо верхню позицію */
    z-index: 10; 
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; 
    color: var(--primary); 
    border: 1px solid var(--primary); 
    padding: 2px 8px; 
    background: rgba(0, 0, 0, 0.8); 
    box-shadow: 0 0 10px var(--primary-glow); 
}
.card-category a { color: var(--primary) !important; text-decoration: none !important; transition: 0.3s; }
.card-category a:hover { color: var(--text-bright) !important; text-shadow: 0 0 8px var(--primary); }

/* --- МЕДІА ЗАПИТ: ПЛАНШЕТИ ТА МОБІЛЬНІ (менше 768px) --- */
@media screen and (max-width: 768px) { 
    .weblut-display-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }

    article.cyber-card { 
        flex-direction: row !important; /* ЗАВЖДИ РЯДОК, НІКОЛИ КОЛОНКА */
        height: auto; /* Висота підлаштовується під контент */
    }

    article.cyber-card .post-thumbnail {
        width: 35% !important;
        height: 100% !important; 
        border-right: 1px solid var(--border-glow);
        border-bottom: none;
    }

    article.cyber-card .entry-header {
        width: 65%;
        padding: 10px;
    }
    
    article.cyber-card .entry-title {
        font-size: 0.95rem !important; /* Трохи менший шрифт заголовка */
        margin-bottom: 5px !important;
    }
    
    /* Ховаємо чіп на дуже малих екранах, щоб не заважав, або зменшуємо */
    article.cyber-card::after {
        width: 25px; height: 18px; bottom: 10px; right: 10px;
    }
    
    article.cyber-card .card-category {
        bottom: 10px; left: 10px;
        font-size: 0.6rem;
        padding: 1px 5px;
    }
}

/* ----------------------------------------------------- */

.blog .entry-title, .archive .entry-title, .search-results .entry-title { font-size: 2rem; margin-bottom: 15px; line-height: 1.3; font-family: var(--font-heading); }
.blog .entry-title a, .archive .entry-title a, .search-results .entry-title a { color: var(--text-bright); text-decoration: none; transition: 0.3s; border-bottom: 2px solid transparent; }
.blog .entry-title a:hover, .archive .entry-title a:hover, .search-results .entry-title a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); border-bottom-color: var(--primary); }
.single .entry-title { font-size: 2.5rem; color: var(--primary); text-transform: uppercase; margin-bottom: 20px; text-shadow: 0 0 15px rgba(0, 243, 255, 0.4); font-family: var(--font-heading); }
.entry-content { font-size: 1.1rem; color: var(--text-main); line-height: 1.8; }
.entry-content img { max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.entry-content p { margin-bottom: 1.5em; }
.entry-content a { color: var(--accent); text-decoration: underline; transition: 0.3s; }
.entry-content a:hover { color: var(--text-bright); text-shadow: 0 0 8px var(--accent); }
.entry-meta { font-size: 0.9rem; color: #8899a6; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.entry-meta a { color: var(--primary); text-decoration: none; font-weight: 600; transition: 0.3s; }
.entry-meta a:hover { color: var(--text-bright); text-shadow: 0 0 5px var(--primary); }
.posted-on::before, .byline::before { color: var(--accent); margin-right: 5px; }
.entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 15px; }
.cat-links a, .tags-links a { background: rgba(0, 243, 255, 0.1); padding: 2px 8px; border-radius: 4px; color: var(--text-main); text-decoration: none; border: 1px solid rgba(0, 243, 255, 0.2); transition: 0.3s; }
.cat-links a:hover, .tags-links a:hover { background: var(--primary); color: #000; box-shadow: 0 0 10px var(--primary); border-color: var(--primary); }
.comments-link a { color: var(--accent); font-weight: bold; text-decoration: none; }
.comments-link a:hover { color: var(--text-bright); text-shadow: 0 0 5px var(--accent); }
.edit-link a { color: #ff0055; font-size: 0.8rem; text-transform: uppercase; text-decoration: none; border: 1px solid #ff0055; padding: 2px 6px; border-radius: 3px; }
.edit-link a:hover { background: #ff0055; color: #fff; box-shadow: 0 0 8px #ff0055; }
.page .entry-header .entry-title { font-size: 2.5rem; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid rgba(0, 243, 255, 0.1); text-shadow: 0 0 15px rgba(0, 243, 255, 0.4); font-family: var(--font-heading); }
.page .post-thumbnail { margin-bottom: 30px; border: 1px solid var(--border-glow); box-shadow: 0 0 15px rgba(0, 243, 255, 0.1); overflow: hidden; border-radius: 4px; }
.page .post-thumbnail img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.page .post-thumbnail:hover img { transform: scale(1.02); }
.single-post-container article.cyber-card { display: block; height: auto; padding: 40px !important; border-radius: 10px; }
.single-post-container article.cyber-card::after { display: none; }
.single-post-container .post-thumbnail { width: 100% !important; height: auto !important; max-height: 500px; margin-bottom: 30px !important; border-right: none; float: none; }
.single-post-container .post-thumbnail img { width: 100% !important; height: auto !important; object-fit: contain !important; }
.single-post-container .entry-header, .single-post-container .entry-content { width: 100% !important; padding: 0 !important; display: block !important; }
.single-post-container .entry-title { font-size: 2.5rem !important; color: var(--primary); margin-bottom: 20px !important; font-family: var(--font-heading); }
.single-post-container .entry-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-main); }
.single-post-container .entry-content p { margin-bottom: 25px; }
.more-link { display: inline-block; margin-top: 20px; padding: 10px 25px; border: 2px solid var(--primary); color: var(--primary); text-transform: uppercase; font-weight: 700; text-decoration: none !important; font-family: var(--font-heading); transition: all 0.3s ease; border-radius: 4px; background: rgba(0, 0, 0, 0.2); }
.more-link:hover { background: var(--primary); color: #000; box-shadow: 0 0 20px var(--primary); transform: translateY(-2px); }
.posts-navigation { margin-top: 40px; padding-top: 20px; padding-bottom: 20px; margin-bottom: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.posts-navigation .nav-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.posts-navigation a { display: inline-block; padding: 12px 25px; border: 1px solid var(--primary); color: var(--text-bright); text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.9rem; transition: 0.3s; background: rgba(0, 0, 0, 0.3); }
.posts-navigation a:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); }
.nav-next { margin-left: auto; }
.page-links { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-main); font-weight: bold; }
.post-page-numbers { display: inline-block; padding: 5px 12px; margin: 0 5px; border: 1px solid var(--primary); color: var(--primary); text-decoration: none; transition: 0.3s; }
.post-page-numbers:hover, .post-page-numbers.current { background: var(--primary); color: #000; box-shadow: 0 0 10px var(--primary); }
.navigation.post-navigation { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.navigation.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.navigation.post-navigation .nav-previous, .navigation.post-navigation .nav-next { width: 48%; flex-grow: 1; }
.navigation.post-navigation a { display: flex; flex-direction: column; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 243, 255, 0.3); padding: 20px; text-decoration: none; transition: all 0.3s ease; height: 100%; border-radius: 4px; position: relative; overflow: hidden; }
.navigation.post-navigation a:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-5px); }
.nav-subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #8899a6; margin-bottom: 8px; display: block; font-weight: 700; }
.navigation.post-navigation a:hover .nav-subtitle { color: rgba(0,0,0, 0.7); }
.nav-title { font-size: 1.1rem; color: var(--text-bright); font-weight: 600; line-height: 1.4; transition: 0.3s; }
.navigation.post-navigation a:hover .nav-title { color: #000; text-shadow: none; }
.nav-previous a { text-align: left; border-left: 4px solid var(--accent); }
.nav-next a { text-align: right; border-right: 4px solid var(--accent); }
.nav-previous .nav-subtitle::before { content: '« '; color: var(--accent); font-size: 1.2em; }
.nav-next .nav-subtitle::after { content: ' »'; color: var(--accent); font-size: 1.2em; }
@media screen and (max-width: 768px) { .navigation.post-navigation .nav-links { flex-direction: column; } .navigation.post-navigation .nav-previous, .navigation.post-navigation .nav-next { width: 100%; } .nav-next a { text-align: left; border-right: 1px solid rgba(0, 243, 255, 0.3); border-left: 4px solid var(--accent); } }

/* КНОПКА LOAD MORE (FIXED) */
.weblut-ajax-nav { 
    text-align: center; 
    margin: 40px 0; 
    position: relative; 
    z-index: 20; /* Щоб була зверху */
    clear: both; /* Щоб нічого не заважало збоку */
    width: 100%;
}

.cyber-button {
    padding: 12px 30px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-heading);
}

.cyber-button:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

.widget { background: var(--bg-panel); border: 1px solid var(--primary); padding: 25px; margin-bottom: 30px; border-radius: 6px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); position: relative; overflow: hidden; }
.widget::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.widget-title { color: var(--primary); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid rgba(0, 243, 255, 0.3); padding-bottom: 15px; margin-bottom: 20px; text-shadow: 0 0 5px var(--primary-glow); font-family: var(--font-heading); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: relative; transition: 0.3s; display: flex; justify-content: space-between; align-items: center; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: 0.3s; display: block; width: 100%; }
.widget ul li:hover a { color: var(--primary); padding-left: 10px; text-shadow: 0 0 8px var(--primary); }
.widget ul li a::before { content: '>'; color: var(--accent); margin-right: 5px; opacity: 0; transition: 0.3s; }
.widget ul li:hover a::before { opacity: 1; }
.widget .count { background: rgba(0, 243, 255, 0.1); color: var(--primary); font-size: 0.8rem; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(0, 243, 255, 0.3); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tagcloud a { font-size: 0.8rem !important; color: var(--text-bright); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--accent); padding: 6px 12px; text-decoration: none; text-transform: uppercase; border-radius: 4px; transition: 0.3s; }
.tagcloud a:hover { background: var(--accent); color: #fff; box-shadow: 0 0 15px var(--accent); transform: translateY(-2px); }
.widget_calendar table { width: 100%; border-collapse: collapse; color: var(--text-main); }
.widget_calendar th { background: rgba(0, 243, 255, 0.1); color: var(--primary); padding: 10px 0; }
.widget_calendar td { padding: 10px 0; text-align: center; border: 1px solid rgba(255, 255, 255, 0.05); }
.widget_calendar td#today { background: var(--primary); color: #000; font-weight: bold; box-shadow: 0 0 10px var(--primary); }
.widget .search-form { margin-top: 0; }
.comments-area { margin-top: 50px; padding-top: 20px; }
.comments-title { font-size: 1.5rem; color: var(--primary); border-bottom: 2px solid rgba(0, 243, 255, 0.2); padding-bottom: 15px; margin-bottom: 30px; text-transform: uppercase; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05); padding: 20px; margin-bottom: 20px; border-radius: 6px; position: relative; display: flex; gap: 20px; transition: 0.3s; }
.comment-body:hover { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 243, 255, 0.1); }
.comment-list .avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--primary); box-shadow: 0 0 10px var(--primary-glow); background: #000; }
.comment-meta { margin-bottom: 10px; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; }
.fn { font-style: normal; font-weight: bold; color: var(--text-bright); font-size: 1.1rem; text-transform: uppercase; }
.fn a { color: var(--text-bright); text-decoration: none; }
.comment-metadata a { color: #8899a6; text-decoration: none; font-size: 0.8rem; }
.comment-metadata a:hover { color: var(--primary); }
.comment-content p { margin-bottom: 10px; color: var(--text-main); line-height: 1.6; }
.reply { text-align: right; }
.comment-reply-link { display: inline-block; font-size: 0.8rem; text-transform: uppercase; color: var(--primary); border: 1px solid var(--primary); padding: 5px 15px; border-radius: 3px; text-decoration: none; transition: 0.3s; }
.comment-reply-link:hover { background: var(--primary); color: #000; box-shadow: 0 0 10px var(--primary); }
.children { list-style: none; padding-left: 0; margin-left: 20px; border-left: 2px solid var(--accent); position: relative; }
.children .comment-body { margin-left: 20px; background: rgba(112, 0, 255, 0.05); }
.children .comment-body::before { content: ''; position: absolute; top: 30px; left: -22px; width: 20px; height: 2px; background: var(--accent); }
.logged-in-as { font-family: 'Courier New', monospace; font-size: 0.9rem; color: #8899a6; background: rgba(0, 0, 0, 0.4); padding: 15px 20px; border-left: 3px solid var(--primary); margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.logged-in-as::before { content: '> SYSTEM USER:'; color: var(--primary); font-weight: bold; margin-right: 5px; }
.logged-in-as a { color: var(--accent); text-decoration: none; text-transform: uppercase; font-weight: 800; border-bottom: 1px dashed var(--accent); transition: 0.3s; }
.logged-in-as a:hover { color: #fff; border-bottom-style: solid; text-shadow: 0 0 10px var(--accent); }
.comment-respond { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; margin-top: 40px; border-radius: 6px; }
.comment-reply-title { font-size: 1.8rem; color: var(--text-bright); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; display: block; text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
.comment-reply-title #cancel-comment-reply-link { font-size: 0.8rem; color: #ff0055; margin-left: 20px; text-decoration: none; border: 1px solid #ff0055; padding: 5px 10px; border-radius: 4px; transition: 0.3s; }
.comment-reply-title #cancel-comment-reply-link:hover { background: #ff0055; color: #fff; box-shadow: 0 0 10px #ff0055; }
.comment-notes { font-size: 0.75rem; color: #556677; margin-bottom: 20px; display: block; font-style: italic; }
.required { color: #ff0055; font-weight: bold; font-size: 1.2em; }
.comment-form label { display: block; color: var(--primary); font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; background: #0d121c; border: 1px solid #2a3b55; color: #fff; padding: 12px; margin-bottom: 20px; font-family: var(--font-heading); outline: none; transition: 0.3s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; }
.comment-form-cookies-consent input { width: auto !important; margin: 0; }
.form-submit .submit { background: transparent; border: 2px solid var(--accent); color: var(--accent); padding: 12px 30px; text-transform: uppercase; font-weight: 800; cursor: pointer; transition: 0.3s; }
.form-submit .submit:hover { background: var(--accent); color: #fff; box-shadow: 0 0 20px var(--accent); }
.archive .page-header { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 2px solid var(--primary); background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, transparent 100%); padding: 20px; border-left: 5px solid var(--primary); }
.archive .page-title { color: var(--primary); font-size: 2.2rem; text-transform: uppercase; margin: 0; text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
.archive-description { margin-top: 15px; font-size: 1.1rem; color: #c0d4f5; max-width: 800px; }
.no-results, .not-found { text-align: center; padding: 20px; }
.no-results .page-title, .error-404 .page-title { color: #ff0055; font-size: 2.5rem; text-shadow: 0 0 10px rgba(255, 0, 85, 0.5); margin-bottom: 20px; }
.page-content p { font-size: 1.1rem; color: var(--text-main); }
.search-form { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.search-form label { width: 100%; max-width: 400px; }
.search-field { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--primary); color: #fff; padding: 12px 20px; font-family: var(--font-heading); font-size: 1rem; outline: none; transition: 0.3s; border-radius: 4px; }
.search-field:focus { background: rgba(0, 243, 255, 0.05); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); border-color: #fff; }
.search-submit { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 12px 24px; text-transform: uppercase; font-weight: 700; font-family: var(--font-heading); cursor: pointer; transition: 0.3s; border-radius: 4px; }
.search-submit:hover { background: var(--primary); color: #000; box-shadow: 0 0 20px var(--primary); }
.search-results .entry-title { font-size: 1.8rem; margin-bottom: 15px; line-height: 1.3; }
.search-results .entry-title a { color: var(--primary); text-decoration: none; transition: color 0.3s ease, text-shadow 0.3s ease; }
.search-results .entry-title a:hover { color: var(--text-bright); text-shadow: 0 0 10px var(--primary); }
.entry-summary { margin-top: 15px; margin-bottom: 15px; color: #c0d4f5; font-size: 1rem; line-height: 1.6; }
.entry-summary p { margin-bottom: 0; }
.search-header-cyber { background: rgba(21, 30, 46, 0.8); border: 1px solid var(--primary); padding: 30px; margin-bottom: 40px; border-radius: 6px; position: relative; box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); overflow: hidden; }
.search-header-cyber::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: cyberScan 3s infinite linear; }
.search-label { display: block; font-size: 0.85rem; color: #8899a6; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 5px; }
.search-query { color: var(--text-bright); text-shadow: 0 0 10px var(--primary); font-weight: 800; }
.search-meta-data { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-family: monospace; color: var(--primary); }
.count-val { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 2px; font-weight: bold; }
.site-footer { border-top: 2px solid var(--primary); margin-top: 20px; position: relative; z-index: 10; width: 100%; }
.footer-widgets-wrapper { display: grid; gap: 30px; padding: 20px 20px; max-width: 100%; margin: 0 auto; }
.footer-cols-1 { grid-template-columns: 1fr; }
.footer-cols-2 { grid-template-columns: 1fr 1fr; }
.footer-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.footer-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.site-footer .widget { background: transparent; border: none; box-shadow: none; padding: 0; margin-bottom: 20px; }
.site-footer .widget::before { display: none; } 
.site-footer .widget-title { color: #fff; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 20px; }
.site-info { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: #8899a6; }
.site-info-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 0 20px; }
.site-name { color: #fff; font-weight: 600; }
.rights-reserved { opacity: 0.7; }
.developer-credit { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.dev-name { color: var(--primary); font-weight: bold; }
.site-info .copyright { color: #8899a6; font-size: 0.9rem; }
.dev-link { color: var(--primary); font-weight: bold; text-decoration: none; transition: 0.3s; text-transform: uppercase; }
.dev-link:hover { color: #fff; text-shadow: 0 0 10px var(--primary); }
@media screen and (max-width: 800px) { .footer-widgets-wrapper { grid-template-columns: 1fr !important; gap: 40px; } .site-footer { text-align: center; } .site-footer .widget-title { display: inline-block; } }
@media screen and (max-width: 600px) { .site-info-inner { justify-content: center; text-align: center; flex-direction: column; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cyberScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.header-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; margin-right: 20px; }
.header-btn { display: flex; align-items: center; gap: 8px; padding: 8px 20px; border: 2px solid transparent; text-transform: uppercase; font-weight: 700; font-size: 0.85rem; text-decoration: none; border-radius: 4px; transition: 0.3s; line-height: 1; }
.header-btn img.btn-icon { width: 18px; height: 18px; object-fit: contain; display: block; }
.header-btn.icon-only { padding: 8px; border-radius: 50%; width: 40px; height: 40px; justify-content: center; }
.header-search-toggle { background: transparent; border: none; color: var(--primary); cursor: pointer; padding: 5px; transition: 0.3s; }
.header-search-toggle:hover { transform: scale(1.1); text-shadow: 0 0 10px var(--primary); }
.search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.9); z-index: 20000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.search-modal.active { opacity: 1; pointer-events: auto; }
.search-modal-inner { width: 100%; max-width: 600px; padding: 20px; position: relative; }
.search-modal .search-field { background: transparent; border: none; border-bottom: 2px solid var(--primary); font-size: 2rem; }
.close-search { position: absolute; top: -50px; right: 0; font-size: 2rem; background: transparent; border: none; color: #fff; cursor: pointer; }
@media screen and (max-width: 800px) { .header-actions { margin-right: 60px; } .header-btn .btn-text { display: none; } .header-btn { padding: 8px; width: 35px; height: 35px; justify-content: center; border-radius: 50%; } .header-btn img.btn-icon { margin: 0; } }
.breadcrumbs-container { padding: 15px var(--main-padding, 10px); width: 100%; margin: 0 auto; }
.weblut-breadcrumbs { font-size: 0.85rem; color: #8899a6; text-transform: uppercase; font-weight: 600; }
.weblut-breadcrumbs a { color: var(--text-main); text-decoration: none; transition: 0.3s; }
.weblut-breadcrumbs a:hover { color: var(--primary); text-shadow: 0 0 5px var(--primary); }
.weblut-breadcrumbs .sep { color: var(--accent); margin: 0 5px; }
.weblut-breadcrumbs { color: rgba(255,255,255,0.5); }
/* ============================================================
   15. BACK TO TOP BUTTON (FIXED: PERFECT CIRCLE)
   ============================================================ */
#weblut-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    
    /* Жорсткі розміри */
    width: 50px;
    height: 50px;
    min-width: 50px; /* Захист від сплющування на мобільному */
    min-height: 50px;
    
    /* ВАЖЛИВО: Прибираємо стандартні відступи браузера */
    padding: 0;
    margin: 0;
    
    /* Центрування стрілки */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Дизайн */
    background-color: var(--bg-panel); 
    color: var(--primary); 
    border: 2px solid var(--primary);
    border-radius: 50%; /* Робить ідеальне коло */
    
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Стиль самої стрілки */
#weblut-scroll-top svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor; /* Бере колір тексту кнопки */
}

/* Активний стан */
#weblut-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ховер */
#weblut-scroll-top:hover {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-5px);
}

/* Мобільна адаптація */
@media screen and (max-width: 600px) {
    #weblut-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
}
/* ============================================================
   16. WORDPRESS STANDARD CLASSES (REQUIRED)
   ============================================================ */
.aligncenter { display: block; margin: 0 auto; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.wp-caption { max-width: 100%; margin-bottom: 1.5em; border: 1px solid var(--border-glow); background: rgba(0,0,0,0.2); padding: 5px; border-radius: 4px; }
.wp-caption img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.wp-caption-text { text-align: center; font-size: 0.8em; color: #8899a6; margin-top: 0.5em; }
.gallery-caption { font-size: 0.8em; color: #8899a6; }
.sticky { border-color: var(--accent); box-shadow: 0 0 15px rgba(112, 0, 255, 0.2); }
.bypostauthor { border-left: 3px solid var(--primary); padding-left: 10px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; clip-path: none; color: #21759b; display: block; font-size: 14px; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
