/*
Theme Name: TAP2GO
Theme URI: https://tap2go.kz
Author: MAXICO
Author URI: https://maxico.kz
Description: Современная новостная тема для портала TAP2GO. Поддержка тёмной/светлой темы, адаптивный дизайн, бесконечная прокрутка.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tap2go
Tags: news, blog, dark-mode, responsive, translation-ready, custom-logo, featured-images

TAP2GO - Новостной портал Казахстана
Разработка: MAXICO (https://maxico.kz)
*/

/* ===========================
   CSS Variables
   =========================== */
:root {
    --green: #40FF00;
    --green-dark: #35D600;
    --green-dim: rgba(64, 255, 0, 0.15);
    --green-glow: rgba(64, 255, 0, 0.3);
    --black: #000000;
    --white: #ffffff;
    
    /* Dark theme (default) */
    --bg: #0a0a0a;
    --card: #111111;
    --card-hover: #181818;
    --border: #1f1f1f;
    --border-light: #2a2a2a;
    --text: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
}

/* Light theme */
body.light-theme {
    --bg: #f5f5f5;
    --card: #ffffff;
    --card-hover: #f0f0f0;
    --border: #e0e0e0;
    --border-light: #d0d0d0;
    --text: #111111;
    --text-secondary: #444444;
    --text-muted: #777777;
    --green-dim: rgba(64, 255, 0, 0.1);
    --green-glow: rgba(64, 255, 0, 0.2);
}

/* ===========================
   Global Transitions
   =========================== */
.sidebar, .main-content, .right-sidebar, .feed-card, .news-item,
.pill, .search-input, .nav-item, .theme-toggle, .lang-btn, 
.categories-btn, .share-btn, .mobile-header, .site-header,
.feed-card-content, .feed-card-footer {
    transition: background-color 0.25s ease, border-color 0.25s ease, 
                color 0.25s ease, box-shadow 0.25s ease;
}

img { transition: transform 0.4s ease !important; }
.spinner { transition: none !important; }

/* ===========================
   Reset & Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===========================
   Accessibility
   =========================== */
.visually-hidden,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--green);
    color: var(--black);
    padding: 8px 16px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Scrollbar
   =========================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green);
}

/* ===========================
   Layout
   =========================== */
.site-layout {
    display: flex;
    min-height: 100vh;
}

.site-layout.has-sidebar {
    overflow: hidden;
    height: 100vh;
}

/* ===========================
   Left Sidebar
   =========================== */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-content {
    padding: 1.5rem 0;
    flex: 1;
}

/* Logo */
.site-logo {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-tap { color: var(--text); }
.logo-2 { color: var(--text); }
.logo-go { 
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow);
}

.logo-play {
    width: 22px;
    height: 22px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    box-shadow: 0 0 12px var(--green-glow);
}

.logo-play::before {
    content: '';
    border: 4px solid transparent;
    border-left: 7px solid #000000;
    margin-left: 2px;
}

/* Navigation */
.nav-menu {
    padding: 0 0.75rem;
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.2rem;
}

.nav-item:hover {
    background: var(--card-hover);
    color: var(--text);
}

.nav-item.active,
.nav-item.current-menu-item a,
.current-menu-item .nav-item {
    color: var(--green);
    background: var(--green-dim);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin: 0 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--card-hover);
}

.toggle-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background: var(--green);
    border-radius: 11px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #000000;
    border-radius: 50%;
    transition: all 0.3s ease;
}

body.light-theme .toggle-switch {
    background: var(--border-light);
}

body.light-theme .toggle-switch::after {
    transform: translateX(-18px);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Sidebar Buttons */
.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--border-light);
}

.categories-btn {
    display: block;
    margin: 0.5rem 0.75rem;
    padding: 0.7rem 1rem;
    background: transparent;
    border: 2px solid var(--green);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.categories-btn:hover {
    background: var(--green);
    color: var(--black);
}

.sidebar-dev {
    margin: 1.5rem 0.75rem 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.sidebar-dev a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.sidebar-dev a:hover {
    opacity: 0.8;
}

/* ===========================
   Main Content
   =========================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: var(--bg);
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input,
.search-form input[type="search"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    padding-right: 3rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder,
.search-form input::placeholder {
    color: var(--text-muted);
}

.search-input:focus,
.search-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-dim);
}

.search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.pill:hover {
    border-color: var(--green);
    color: var(--green);
}

.pill.active {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}

/* ===========================
   News Feed & Cards
   =========================== */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feed-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feed-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

body.light-theme .feed-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.light-theme .feed-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feed-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--card-hover);
}

.feed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feed-card:hover .feed-card-image img {
    transform: scale(1.03);
}

/* Tags */
.feed-tags {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-green { background: var(--green); color: #000000; }
.tag-dark { background: rgba(0,0,0,0.8); color: #ffffff; }
.tag-yellow { background: #FFD700; color: #000000; }
.tag-blue { background: #00BFFF; color: #ffffff; }
.tag-red { background: #FF4444; color: #ffffff; }
.tag-orange { background: #FFA500; color: #000000; }

.feed-card-content {
    padding: 1.25rem;
    background: var(--card);
}

.feed-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.feed-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.feed-card:hover .feed-card-title {
    color: var(--green);
}

.feed-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feed-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--card);
}

.feed-card-stats {
    display: flex;
    gap: 1rem;
}

.feed-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.feed-card-share {
    display: flex;
    gap: 0.4rem;
}

.share-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--card-hover);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--green);
    color: var(--black);
}

/* Compact Card */
.feed-card-compact {
    display: flex;
    flex-direction: row;
}

.feed-card-compact .feed-card-image {
    width: 180px;
    min-width: 180px;
    height: auto;
    min-height: 140px;
}

.feed-card-compact .feed-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.25rem;
}

.feed-card-compact .feed-card-title {
    font-size: 1rem;
}

.feed-card-compact .feed-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================
   Right Sidebar
   =========================== */
.right-sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--card);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--green);
    border-radius: 2px;
}

/* News List (sidebar) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: var(--card-hover);
}

.news-item:hover .news-item-title {
    color: var(--green);
}

body.light-theme .news-item:hover {
    background: rgba(0,0,0,0.03);
}

.news-item-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--card-hover);
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--border) 0%, var(--card-hover) 100%);
}

.news-item-tag {
    position: absolute;
    top: 3px;
    left: 3px;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.news-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-footer p {
    margin-bottom: 0.5rem;
}

.sidebar-footer .footer-dev a {
    color: var(--green);
    font-weight: 600;
}

/* ===========================
   Loading
   =========================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 0.75rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   Mobile Header
   =========================== */
.mobile-header {
    display: none;
    background: var(--card);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--card-hover);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 999;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 0.75rem 1rem;
    color: var(--text);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--green-dim);
    color: var(--green);
}

.mobile-nav-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.mobile-nav-footer a {
    color: var(--green) !important;
    font-weight: 600;
    padding: 0 !important;
    display: inline !important;
    background: none !important;
}

/* ===========================
   Site Header (for inner pages)
   =========================== */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--card-hover);
    color: var(--text);
}

.nav-link.active {
    color: var(--green);
    background: var(--green-dim);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===========================
   Single Article
   =========================== */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-featured-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--green);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card-hover);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--green);
    border-color: var(--green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-dev a {
    color: var(--green);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--green);
}

/* ===========================
   Pagination
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--green);
    border-color: var(--green);
    color: var(--black);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .site-layout.has-sidebar {
        overflow: visible;
        height: auto;
    }
    
    .main-content {
        padding: 1rem;
        overflow: visible;
    }
    
    .feed-card-compact {
        flex-direction: column;
    }
    
    .feed-card-compact .feed-card-image {
        width: 100%;
        height: 180px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .header-nav {
        display: none;
    }
    
    .site-header {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 0.75rem;
    }
    
    .feed-card-content {
        padding: 1rem;
    }
    
    .category-pills {
        gap: 0.4rem;
    }
    
    .pill {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .article-container {
        padding: 1rem;
    }
    
    .footer-top {
        flex-direction: column;
    }
}

/* ===========================
   WordPress Specific
   =========================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.comment-content p {
    margin-bottom: 0;
}

.comment-reply-link {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--green);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit input[type="submit"] {
    background: var(--green);
    color: var(--black);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit input[type="submit"]:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}
