/*
Theme Name: Weekend Kyiv
Theme URI: https://weekend.kiev.ua
Author: Weekend Kyiv
Author URI: https://weekend.kiev.ua
Description: Сучасний новинний портал weekend.kiev.ua — актуальні новини Києва та України
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expressnews
Tags: news, blog, ukrainian, kyiv
*/

/* ========== VARIABLES ========== */
:root {
    --red: #e8002d;
    --dark: #111111;
    --gray: #5a5a5a;
    --light-gray: #f5f5f5;
    --border: #e2e2e2;
    --white: #ffffff;
    --bg: #f2f2f2;
    --container: 1240px;
    --font-head: 'Oswald', 'Impact', sans-serif;
    --font-body: 'Rubik', 'Arial', sans-serif;
    --font-article: 'Lora', Georgia, serif;
    --shadow: 0 4px 20px rgba(0,0,0,.10);
    --radius: 8px;
}

/* DARK MODE */
[data-theme="dark"] {
    --dark: #f0f0f0;
    --gray: #aaaaaa;
    --light-gray: #1e1e1e;
    --border: #333333;
    --white: #181818;
    --bg: #111111;
}
[data-theme="dark"] body { background: var(--bg); color: var(--dark); }
[data-theme="dark"] .site-header { background: #181818; }
[data-theme="dark"] .topbar { background: #0a0a0a; }
[data-theme="dark"] .news-card { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .widget { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .post-article { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .breaking-bar { background: #181818; border-color: #333; }
[data-theme="dark"] .hero-sub-item { background: #222; }
[data-theme="dark"] .search-overlay { background: rgba(0,0,0,.95); }

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.65;
    transition: background 0.25s, color 0.25s;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6,
.section-heading h2,
.post-title,
.hero-title,
.cat-page-header h1,
.widget-title,
.news-card-title,
.recent-title {
    font-family: var(--font-head);
    letter-spacing: 0.3px;
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========== READING PROGRESS BAR ========== */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #e8002d, #ff6b6b);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(232,0,45,.35);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: #c40025; }

/* ========== DARK MODE TOGGLE ========== */
.dark-toggle {
    background: transparent;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    color: #aaa;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.dark-toggle:hover { border-color: var(--red); color: var(--red); }
[data-theme="dark"] .dark-toggle-sun { display: inline; }
[data-theme="dark"] .dark-toggle-moon { display: none; }
[data-theme="light"] .dark-toggle-sun,
:root:not([data-theme="dark"]) .dark-toggle-sun { display: none; }
[data-theme="light"] .dark-toggle-moon,
:root:not([data-theme="dark"]) .dark-toggle-moon { display: inline; }

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-inner {
    width: min(640px, 92vw);
    position: relative;
    padding: 20px 0;
}
.search-overlay-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}
.search-overlay-close:hover { color: white; }
.search-overlay-form {
    display: flex;
    border-bottom: 2px solid #555;
    transition: border-color 0.2s;
}
.search-overlay-form:focus-within { border-bottom-color: var(--red); }
.search-overlay-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 26px;
    font-family: var(--font-body);
    padding: 10px 0;
    outline: none;
}
.search-overlay-form input::placeholder { color: #555; }
.search-overlay-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}
.search-overlay-btn:hover { color: var(--red); }
.search-hint { color: #555; font-size: 13px; margin-top: 12px; font-family: var(--font-body); }

/* ========== MOBILE BURGER ========== */
.mobile-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.mobile-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== CONTAINER ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== CONTAINER ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== TOPBAR ========== */
.topbar {
    background: #111;
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-date { color: #aaa; }
/* КУРС ВАЛЮТ */
.topbar-currency {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid #333;
    padding-left: 14px;
    margin-left: 4px;
}
.currency-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.currency-item {
    display: flex;
    align-items: center;
    gap: 3px;
}
.currency-code {
    font-size: 10px;
    color: #777;
    font-weight: 600;
}
.currency-rate {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}
.currency-sign {
    font-size: 10px;
    color: #666;
}
.currency-date {
    font-size: 10px;
    color: #555;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar-social {
    display: flex;
    gap: 10px;
    align-items: center;
}
.topbar-social-link {
    color: #777;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.topbar-social-link:hover { color: var(--red); }

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform 0.3s, box-shadow 0.3s, background 0.25s;
}
.site-header.scrolled { box-shadow: 0 3px 20px rgba(0,0,0,.15); }
.site-header.header-up { transform: translateY(-100%); }
.header-inner {
    display: flex;
    align-items: center;
    height: 62px;
    gap: 20px;
}

/* ── Logo ── */
.site-logo-wrap { flex-shrink: 0; }
.site-logo-link { display: flex; align-items: center; }
.site-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

/* ── Header search icon button ── */
.header-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.header-search-btn:hover { color: var(--red); background: #fff0f3; }

/* ========== NAVIGATION ========== */
.main-nav { flex: 1; overflow: hidden; }
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav ul li a {
    display: block;
    padding: 7px 13px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    background: var(--red);
    color: white;
}

/* ========== BREAKING NEWS TICKER ========== */
.breaking-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
    overflow: hidden;
}
.breaking-bar .container {
    display: flex;
    align-items: center;
    gap: 14px;
}
.breaking-label {
    background: var(--red);
    color: white;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.breaking-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}
.breaking-ticker {
    overflow: hidden;
    flex: 1;
    display: flex;
}
.breaking-ticker-inner {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: ticker-move 40s linear infinite;
}
.breaking-ticker:hover .breaking-ticker-inner { animation-play-state: paused; }
.breaking-item {
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--dark);
}
.breaking-item a:hover { color: var(--red); }
.breaking-item::before {
    content: '●';
    color: var(--red);
    margin-right: 10px;
    font-size: 8px;
    vertical-align: middle;
}
@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    margin-bottom: 32px;
}
.hero-main {
    position: relative;
    height: 480px;
    overflow: hidden;
}
.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 24px 24px;
    color: white;
}
.hero-category-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: white;
}
.hero-title a { color: white; }
.hero-title a:hover { color: #ffcdd2; }
.hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Hero sub-posts */
.hero-sub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #333;
}
.hero-sub-item {
    background: #222;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    transition: background 0.2s;
}
.hero-sub-item:hover { background: #2a2a2a; }
.hero-sub-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
}
.hero-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-sub-info { flex: 1; }
.hero-sub-cat {
    font-size: 10px;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.hero-sub-title {
    font-size: 13px;
    color: #ddd;
    line-height: 1.4;
    font-weight: 500;
}
.hero-sub-title a { color: #ddd; }
.hero-sub-title a:hover { color: #fff; }

/* ========== MAIN CONTENT LAYOUT ========== */
.content-area {
    padding-bottom: 40px;
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* ========== SECTION HEADING ========== */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--red);
    padding-bottom: 10px;
}
.section-heading h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
}
.section-heading h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--red);
    margin-top: 4px;
}
.section-heading .all-link {
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
    border: 1px solid var(--red);
    padding: 4px 12px;
    border-radius: 3px;
    transition: all 0.2s;
}
.section-heading .all-link:hover {
    background: var(--red);
    color: white;
}

/* ========== NEWS GRID ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.news-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid var(--border);
}
.news-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.news-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-card-body { padding: 14px 16px 16px; }
.news-card-cat {
    font-size: 11px;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.news-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--dark);
}
.news-card-title a:hover { color: var(--red); }
.news-card-excerpt {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    font-size: 12px;
    color: #aaa;
    display: flex;
    gap: 10px;
    align-items: center;
}
.news-card-meta .dot::before { content: '•'; }

/* Featured news card (first) */
.news-grid .news-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
}
.news-grid .news-card:first-child .news-card-thumb {
    aspect-ratio: auto;
    height: 220px;
}

/* ========== SIDEBAR ========== */
.sidebar { position: sticky; top: 72px; }

.widget {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}
.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    padding: 13px 16px;
    border-bottom: 3px solid var(--red);
    background: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======= ОСТАННІ ПУБЛІКАЦІЇ (стиль kyivcitynews) ======= */
.recent-list { padding: 0; }
.recent-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.15s;
    align-items: flex-start;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: #fafafa; }

.recent-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 68px;
    border-radius: 5px;
    overflow: hidden;
    display: block;
}
.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.recent-item:hover .recent-thumb img { transform: scale(1.05); }

.recent-info { flex: 1; min-width: 0; }
.recent-cat {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--red);
    background: #fff0f3;
    border: 1px solid #ffd6dc;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 5px;
}
.recent-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-title a:hover { color: var(--red); }
.recent-date {
    font-size: 11px;
    color: #bbb;
    font-family: 'Inter', sans-serif;
}

/* ======= РУБРИКИ ======= */
.widget-cats .widget-title { }
.cats-list { padding: 8px 0; }
.cats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.15s;
}
.cats-item:last-child { border-bottom: none; }
.cats-item:hover { background: #fafafa; }
.cats-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cats-link::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}
.cats-link:hover { color: var(--red); }
.cats-count {
    font-size: 11px;
    background: #f4f4f4;
    color: #999;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ======= ПОПУЛЯРНЕ ======= */
.popular-list { }
.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f4;
    align-items: flex-start;
    transition: background 0.15s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: #fafafa; }
.popular-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #ebebeb;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.popular-body { flex: 1; }
.popular-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 4px;
}
.popular-title a:hover { color: var(--red); }
.popular-date {
    font-size: 11px;
    color: #bbb;
    font-family: 'Inter', sans-serif;
}

/* Ticker (for home page sidebar) */
.ticker-list { }
.ticker-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.15s;
}
.ticker-item:last-child { border-bottom: none; }
.ticker-item:hover { background: #fafafa; }
.ticker-item-time {
    font-size: 11px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}
.ticker-item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark);
}
.ticker-item-title a:hover { color: var(--red); }

/* ========== CATEGORY SECTION ========== */
.category-section { margin-bottom: 36px; }

/* ========== SINGLE POST ========== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 24px 0 48px;
}
.post-article {
    background: white;
    border-radius: 8px;
    padding: 32px 36px;
    border: 1px solid var(--border);
}

/* Header */
.post-header { margin-bottom: 28px; }
.post-category-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

/* ВЕЛИКИЙ ЗАГОЛОВОК у стилі Oswald */
.post-title {
    font-family: var(--font-head);
    font-size: clamp(26px, 3.8vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Лід-абзац */
.post-lead {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--gray);
    border-left: 4px solid var(--red);
    padding: 12px 20px;
    background: var(--light-gray);
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    font-style: italic;
}

/* Мета-рядок */
.post-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--gray);
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    font-family: var(--font-body);
}
.post-meta svg { vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.post-meta-author {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-reading { display: flex; align-items: center; gap: 4px; }

/* SHARE BUTTONS */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.share-bar--bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.share-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-body);
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    color: white;
    transition: opacity 0.2s, transform 0.15s;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
}
.share-btn:hover { opacity: 0.9; transform: translateY(-1px); color: white; }
.share-fb { background: #1877f2; }
.share-tg { background: #26a5e4; }
.share-tw { background: #111; }
.share-vb { background: #7360f2; }
.share-copy { background: #555; }
.share-btn svg { flex-shrink: 0; }

/* Головне фото статті */
.post-featured-image {
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.post-img-caption {
    font-size: 12px;
    color: #999;
    padding: 8px 12px;
    background: #fafafa;
    font-style: italic;
    text-align: center;
}

/* Текст статті — Lora для кращої читабельності */
.post-content {
    font-family: var(--font-article);
    font-size: 17px;
    line-height: 1.88;
    color: var(--dark);
}
.post-content p { margin-bottom: 24px; }
.post-content h2 {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    margin: 38px 0 14px;
    color: var(--dark);
    line-height: 1.2;
    text-transform: uppercase;
}
.post-content h3 {
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--dark);
    text-transform: uppercase;
}
.post-content blockquote {
    border-left: 5px solid var(--red);
    padding: 18px 26px;
    background: var(--light-gray);
    margin: 30px 0;
    font-style: italic;
    color: var(--gray);
    border-radius: 0 8px 8px 0;
    font-size: 18px;
    line-height: 1.72;
}
.post-content a { color: var(--red); text-decoration: underline; }
.post-content ul, .post-content ol {
    margin: 0 0 24px 28px;
}
.post-content li { margin-bottom: 10px; }
.post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* FLOATING SHARE BAR */
#floating-share {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-50%) translateX(-20px);
}
#floating-share.fs-visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) translateX(0);
}
.fs-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.fs-btn:hover { transform: scale(1.12); box-shadow: 0 5px 18px rgba(0,0,0,.3); color: white; }
.fs-btn--fb  { background: #1877f2; }
.fs-btn--tg  { background: #26a5e4; }
.fs-btn--tw  { background: #000; }
.fs-btn--vb  { background: #7360f2; }
.fs-btn--copy { background: #555; cursor: pointer; border: none; font-size: 14px; }

/* Теги */
.post-tags {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.post-tags-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-tag {
    background: var(--light-gray);
    color: var(--gray);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.post-tag:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* Related posts */
.related-posts { margin-top: 36px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ========== CATEGORY PAGE ========== */
.cat-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 28px 0;
}
.cat-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--red);
}
.cat-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}
.cat-page-header .cat-badge {
    background: var(--red);
    color: white;
    width: 8px;
    height: 30px;
    border-radius: 2px;
    display: inline-block;
}
.cat-posts-list { display: flex; flex-direction: column; gap: 20px; }
.cat-post-card {
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.cat-post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.cat-post-thumb { overflow: hidden; }
.cat-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-post-body { padding: 16px 20px; }
.cat-post-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 8px;
}
.cat-post-title a:hover { color: var(--red); }
.cat-post-excerpt {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-post-meta { font-size: 12px; color: #aaa; }
.read-more-btn {
    display: inline-block;
    margin-top: 12px;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 3px;
    transition: background 0.2s;
}
.read-more-btn:hover { background: #c40025; color: white; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 28px 0 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
    transition: all 0.2s;
}
.pagination .current,
.pagination a:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* ========== 404 ========== */
.error-404-page {
    text-align: center;
    padding: 80px 20px;
}
.error-404-page h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}
.error-404-page h2 { font-size: 28px; margin-bottom: 12px; }
.error-404-page p { font-size: 16px; color: var(--gray); margin-bottom: 24px; }
.btn-home {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
}
.btn-home:hover { background: #c40025; color: white; }

/* ========== SEARCH PAGE ========== */
.search-header {
    margin-bottom: 24px;
    padding: 20px 0;
    border-bottom: 3px solid var(--red);
}
.search-header h1 { font-size: 22px; font-weight: 800; }
.search-header span { color: var(--red); }

/* ========== FOOTER ========== */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 40px 0 0;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #333;
}
.footer-logo {
    background: var(--red);
    color: white;
    font-size: 20px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 14px;
}
.footer-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    background: #222;
    color: #aaa;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--red); color: white; }
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
    font-size: 13px;
    color: #888;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #555;
}
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: #888; }

/* ========== NO THUMBNAIL ========== */
.no-thumb {
    background: linear-gradient(135deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 40px;
    width: 100%;
    height: 100%;
    min-height: 160px;
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    font-size: 13px;
    color: var(--gray);
    padding: 10px 0;
    display: flex;
    gap: 6px;
    align-items: center;
}
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: #ccc; }
.breadcrumbs .current { color: var(--dark); font-weight: 600; }

/* ========== FOOTER LOGO ========== */
.footer-logo-img {
    height: 38px;
    width: auto;
    display: block;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ========== IMG FADE-IN ========== */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s; }
img[loading="lazy"].img-loaded { opacity: 1; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .content-grid,
    .single-layout,
    .cat-page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    #floating-share { display: none; }
}
@media (max-width: 768px) {
    .hero-sub { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-grid .news-card:first-child { grid-template-columns: 1fr; }
    .news-grid .news-card:first-child .news-card-thumb { height: 220px; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .cat-post-card { grid-template-columns: 1fr; }
    .cat-post-thumb { height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar { display: none; }

    /* Mobile menu */
    .mobile-burger { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,.15);
        z-index: 999;
        padding: 12px 0;
    }
    .main-nav.nav-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        gap: 0;
        padding: 0 12px;
    }
    .main-nav ul li a {
        padding: 12px 16px;
        border-radius: 6px;
        font-size: 16px;
    }

    /* Post article padding */
    .post-article { padding: 20px 18px; }
    .post-title { font-size: clamp(22px, 6vw, 32px); }
    .share-bar { gap: 6px; }
    .share-btn { padding: 6px 10px; font-size: 11px; }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}
