/*
Theme Name: GamePress
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A gaming news WordPress theme inspired by modern gaming news sites. Features a dark header, red accents, two-column layout with sidebar, and category-based navigation.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamepress
Tags: news, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
    --color-primary:     #dd3333;
    --color-primary-dark:#b82828;
    --color-bg:          #ffffff;
    --color-bg-alt:      #f5f5f5;
    --color-header:      #111111;
    --color-nav:         #1a1a1a;
    --color-nav-hover:   #dd3333;
    --color-text:        #222222;
    --color-text-muted:  #666666;
    --color-border:      #e0e0e0;
    --color-card-bg:     #ffffff;
    --color-footer-bg:   #111111;
    --color-footer-text: #aaaaaa;
    --color-tag-bg:      #dd3333;
    --color-tag-text:    #ffffff;

    --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: "Georgia", "Times New Roman", serif;

    --max-width:    1200px;
    --sidebar-width:300px;
    --gap:          24px;
    --radius:       4px;

    --dm-transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ===========================
   DARK MODE
   =========================== */

/* Auto: respects OS setting unless user has manually toggled */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg:         #121212;
        --color-bg-alt:     #1e1e1e;
        --color-header:     #0a0a0a;
        --color-nav:        #111111;
        --color-text:       #e8e8e8;
        --color-text-muted: #888888;
        --color-border:     #2e2e2e;
        --color-card-bg:    #1a1a1a;
        --color-footer-bg:  #0a0a0a;
        --color-footer-text:#888888;
    }
}

/* Manual dark: user clicked the toggle */
[data-theme="dark"] {
    --color-bg:         #121212;
    --color-bg-alt:     #1e1e1e;
    --color-header:     #0a0a0a;
    --color-nav:        #111111;
    --color-text:       #e8e8e8;
    --color-text-muted: #888888;
    --color-border:     #2e2e2e;
    --color-card-bg:    #1a1a1a;
    --color-footer-bg:  #0a0a0a;
    --color-footer-text:#888888;
}

/* Manual light: user clicked toggle to override OS dark */
[data-theme="light"] {
    --color-bg:         #ffffff;
    --color-bg-alt:     #f5f5f5;
    --color-header:     #111111;
    --color-nav:        #1a1a1a;
    --color-text:       #222222;
    --color-text-muted: #666666;
    --color-border:     #e0e0e0;
    --color-card-bg:    #ffffff;
    --color-footer-bg:  #111111;
    --color-footer-text:#aaaaaa;
}

/* Apply transition to commonly-changed elements */
body, .site-header, .primary-nav, .post-card,
.widget, .sidebar, .site-footer,
.header-search input, .entry-content blockquote,
.entry-content code, .entry-content pre {
    transition: var(--dm-transition);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    color: #fff;
}

.dark-mode-toggle:hover { background: #3a3a3a; border-color: #666; }

/* Hide the "light" icon in dark mode, "dark" icon in light mode */
.dark-mode-toggle .icon-moon { display: inline; }
.dark-mode-toggle .icon-sun  { display: none;   }

[data-theme="dark"]  .dark-mode-toggle .icon-moon,
[data-theme="light"] .dark-mode-toggle .icon-moon { display: none;   }
[data-theme="dark"]  .dark-mode-toggle .icon-sun,
[data-theme="light"] .dark-mode-toggle .icon-sun  { display: inline; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .dark-mode-toggle .icon-moon { display: none;   }
    :root:not([data-theme="light"]) .dark-mode-toggle .icon-sun  { display: inline; }
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

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

.site-content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--gap);
    padding: var(--gap) 0;
}

.main-content { min-width: 0; }

/* ===========================
   HEADER
   =========================== */
.site-header {
    background: var(--color-header);
    border-bottom: 3px solid var(--color-primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.site-title span { color: var(--color-primary); }

.site-tagline {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.header-search form {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: var(--radius);
    overflow: hidden;
}

.header-search input[type="search"] {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 200px;
}

.header-search input[type="search"]::placeholder { color: #888; }

.header-search button {
    background: var(--color-primary);
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
}

.header-search button:hover { background: var(--color-primary-dark); }

/* ===========================
   PRIMARY NAVIGATION
   =========================== */
.primary-nav {
    background: var(--color-nav);
    border-bottom: 1px solid #2a2a2a;
}

.primary-nav .site-container { position: relative; }

#primary-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

#primary-menu > li > a {
    display: block;
    padding: 12px 16px;
    color: #cccccc;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
    color: #ffffff;
    background: var(--color-nav-hover);
    text-decoration: none;
}

/* Dropdown */
#primary-menu li { position: relative; }

#primary-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    min-width: 180px;
    list-style: none;
    padding: 0;
    z-index: 1000;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

#primary-menu li:hover > ul { display: block; }

#primary-menu li ul a {
    display: block;
    padding: 10px 16px;
    color: #ccc;
    font-size: 0.82rem;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

#primary-menu li ul a:hover { background: #333; color: #fff; }

/* Nav dark mode switcher */
.nav-inner {
    display: flex;
    align-items: center;
}

.nav-dm-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    color: #aaa;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.nav-dm-toggle:hover {
    background: #2a2a2a;
    border-color: #666;
    color: #fff;
}

/* Show "Dark" label by default (light mode → offer dark) */
.nav-dm-label--dark  { display: inline; }
.nav-dm-label--light { display: none;   }

/* In dark mode, show "Light" label instead */
[data-theme="dark"] .nav-dm-label--dark      { display: none;   }
[data-theme="dark"] .nav-dm-label--light     { display: inline; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav-dm-label--dark  { display: none;   }
    :root:not([data-theme="light"]) .nav-dm-label--light { display: inline; }
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #555;
    color: #ccc;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: var(--radius);
}

/* ===========================
   BREAKING / TICKER BAR
   =========================== */
.breaking-bar {
    background: var(--color-primary);
    padding: 7px 0;
    overflow: hidden;
}

.breaking-bar .site-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breaking-label {
    background: #fff;
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.breaking-text {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breaking-text a { color: #fff; text-decoration: none; font-weight: 600; }
.breaking-text a:hover { text-decoration: underline; }

/* ===========================
   FEATURED / HERO SECTION
   =========================== */
.featured-section { margin-bottom: var(--gap); }

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
}

.featured-main { grid-row: 1 / 3; }

.featured-article {
    position: relative;
    overflow: hidden;
    background: #111;
}

.featured-article a { display: block; text-decoration: none; }

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover img { transform: scale(1.03); }

.featured-main .featured-article { height: 420px; }
.featured-secondary .featured-article { height: 207px; }

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 18px 18px;
}

.featured-tag {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.featured-main .featured-overlay h2 {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.25;
}

.featured-secondary .featured-overlay h3 {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.3;
}

.featured-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
}

/* ===========================
   SECTION HEADINGS
   =========================== */
.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
}

.section-heading h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.section-heading a {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   POST CARDS (GRID/LIST)
   =========================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 32px;
}

.post-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.post-card-thumbnail {
    position: relative;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 16/9;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }

.post-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 7px;
    border-radius: 2px;
}

.post-card-body { padding: 14px; }

.post-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.post-card-title a { color: var(--color-text); text-decoration: none; }
.post-card-title a:hover { color: var(--color-primary); }

.post-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-card-meta a { color: var(--color-text-muted); }
.post-card-meta a:hover { color: var(--color-primary); }

/* List style cards */
.posts-list { margin-bottom: 32px; }

.post-list-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.post-list-item:last-child { border-bottom: none; }

.post-list-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 72px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #eee;
}

.post-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-list-item:hover .post-list-thumb img { transform: scale(1.05); }

.post-list-body { flex: 1; min-width: 0; }

.post-list-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.post-list-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.post-list-title a { color: var(--color-text); text-decoration: none; }
.post-list-title a:hover { color: var(--color-primary); }

.post-list-meta { font-size: 0.72rem; color: var(--color-text-muted); }

/* ===========================
   SINGLE POST
   =========================== */
.single-post-header { margin-bottom: 24px; }

.single-post-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cat-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 2px;
    text-decoration: none;
}

.cat-badge:hover { background: var(--color-primary-dark); color: #fff; }

.single-post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 24px;
}

.single-post-meta a { color: var(--color-text-muted); }
.single-post-meta a:hover { color: var(--color-primary); }

.single-post-meta .author-name { font-weight: 600; color: var(--color-text); }

.single-featured-image {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-featured-image img { width: 100%; }

.entry-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
}

.entry-content p { margin-bottom: 1.25rem; }
.entry-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.entry-content h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 1.5rem 0;
    background: var(--color-bg-alt);
    font-style: italic;
    color: #444;
}

.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 6px;
}

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.post-tag {
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.post-tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin: 32px 0;
    padding-top: 24px;
    border-top: 2px solid var(--color-border);
}

.nav-previous, .nav-next { display: flex; flex-direction: column; gap: 4px; }
.nav-next { text-align: right; }

.nav-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    text-decoration: none;
}

.nav-title:hover { color: var(--color-primary); }

/* ===========================
   SIDEBAR
   =========================== */
.sidebar { min-width: 0; }

.widget {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--gap);
}

.widget-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    background: var(--color-header);
    color: #fff;
    border-bottom: 2px solid var(--color-primary);
}

.widget-body { padding: 14px; }

/* Popular posts widget */
.widget-popular-posts { list-style: none; padding: 0; }

.widget-popular-posts li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget-popular-posts li:last-child { border-bottom: none; }

.widget-post-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 50px;
    overflow: hidden;
    border-radius: 2px;
    background: #eee;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-post-info { flex: 1; min-width: 0; }

.widget-post-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.widget-post-title:hover { color: var(--color-primary); }
.widget-post-date { font-size: 0.72rem; color: var(--color-text-muted); }

/* Category list */
.widget-categories { list-style: none; padding: 0; }

.widget-categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.widget-categories li:last-child { border-bottom: none; }

.widget-categories a { color: var(--color-text); text-decoration: none; }
.widget-categories a:hover { color: var(--color-primary); }

.widget-cat-count {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Upcoming releases widget */
.widget-releases { list-style: none; padding: 0; }

.widget-release-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.82rem;
}

.widget-release-item:last-child { border-bottom: none; }

.release-date-box {
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 6px 8px;
    border-radius: var(--radius);
    min-width: 44px;
}

.release-date-month { font-size: 0.6rem; text-transform: uppercase; font-weight: 700; display: block; }
.release-date-day { font-size: 1.1rem; font-weight: 800; line-height: 1; display: block; }

.release-info { flex: 1; min-width: 0; }

.release-title { font-weight: 600; color: var(--color-text); text-decoration: none; display: block; }
.release-title:hover { color: var(--color-primary); }
.release-platform { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 2px; }

/* ===========================
   PAGINATION
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 48px 0 0;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-widget h3 {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul a {
    color: var(--color-footer-text);
    font-size: 0.85rem;
    text-decoration: none;
}
.footer-widget ul a:hover { color: #fff; }

.footer-about p { font-size: 0.85rem; line-height: 1.6; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 0.8rem;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #fff; }

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: #888;
    font-size: 0.82rem;
    text-decoration: none;
}

.footer-social a:hover { color: #fff; }

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

.no-results {
    padding: 48px;
    text-align: center;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    margin-bottom: var(--gap);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 260px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-content-area {
        grid-template-columns: 1fr;
    }

    .sidebar { order: 2; }

    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-main { grid-row: 1; }
    .featured-secondary { display: none; }

    .posts-grid { grid-template-columns: 1fr; }

    .menu-toggle { display: block; }

    #primary-menu {
        display: none;
        flex-direction: column;
        background: var(--color-nav);
    }

    #primary-menu.active { display: flex; }

    #primary-menu > li > a { border-bottom: 1px solid #2a2a2a; }

    .single-post-title { font-size: 1.5rem; }

    .footer-widgets { grid-template-columns: repeat(2, 1fr); }

    .post-navigation { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }
}

@media (max-width: 480px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .header-search { width: 100%; }
    .header-search input[type="search"] { width: 100%; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
