/*
Theme Name: NewsForge
Theme URI: https://example.com/newsforge
Author: Claude
Author URI: https://anthropic.com
Description: A creative, bold news theme with dark mode, custom header/footer, and sidebar. Built for modern editorial excellence.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsforge
Tags: news, magazine, dark-mode, sidebar, custom-header, custom-footer, two-columns, three-columns, responsive-layout
*/

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  /* Colors - Light Mode */
  --color-bg: #f5f3ee;
  --color-bg-secondary: #ece9e2;
  --color-surface: #ffffff;
  --color-border: #d4cfc5;
  --color-text-primary: #1a1714;
  --color-text-secondary: #5c5650;
  --color-text-muted: #928d87;
  --color-accent: #c0392b;
  --color-accent-hover: #a93226;
  --color-accent-light: #f9e9e8;
  --color-highlight: #e8b84b;
  --color-highlight-dark: #c9982b;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width: 1400px;
  --content-width: 780px;
  --sidebar-width: 320px;
  --header-height: 72px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.16);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-bg: #0f0e0d;
  --color-bg-secondary: #1a1917;
  --color-surface: #201e1c;
  --color-border: #2e2b28;
  --color-text-primary: #f0ece4;
  --color-text-secondary: #a09890;
  --color-text-muted: #6b6560;
  --color-accent: #e05a4a;
  --color-accent-hover: #e87060;
  --color-accent-light: #2a1917;
  --color-highlight: #e8b84b;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-primary);
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-branding {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

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

.site-tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Top Nav Bar */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-nav .nav-menu li a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.header-nav .nav-menu li a:hover,
.header-nav .nav-menu li.current-menu-item a {
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  width: 44px;
  height: 24px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  padding: 0;
}

.dark-mode-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: all 0.3s ease;
}

[data-theme="dark"] .dark-mode-toggle::after {
  transform: translateX(20px);
  background: var(--color-highlight);
}

[data-theme="dark"] .dark-mode-toggle {
  background: var(--color-bg-secondary);
  border-color: var(--color-highlight);
}

/* Search Button */
.search-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.search-toggle:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* Subscribe Button */
.btn-subscribe {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition);
  white-space: nowrap;
  height: 36px;
}

.btn-subscribe:hover {
  background: var(--color-accent-hover);
  color: white;
}

/* Breaking News Ticker */
.breaking-news-bar {
  background: var(--color-accent);
  color: white;
  padding: var(--space-xs) 0;
  overflow: hidden;
}

.breaking-news-bar .container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.breaking-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.2);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  gap: var(--space-2xl);
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-content a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.ticker-content a:hover {
  color: white;
  text-decoration: underline;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Category Nav Strip */
.category-nav {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xs) 0;
}

.category-nav .container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav .container::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}

.category-nav a:hover,
.category-nav a.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.hero-featured {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.hero-featured .post-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hero-featured .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-featured:hover .post-thumbnail img {
  transform: scale(1.03);
}

.hero-featured .post-content {
  padding: var(--space-lg);
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.post-card--horizontal {
  flex-direction: row;
}

.post-card--horizontal .post-thumbnail {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

.post-card--horizontal .post-body {
  padding: var(--space-sm) var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.post-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: var(--space-xs);
  text-decoration: none;
}

.category-badge:hover {
  background: var(--color-accent);
  color: white;
}

/* Post Title */
.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.post-title:hover {
  color: var(--color-accent);
}

.post-title--large {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.post-title--medium {
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.post-title--small {
  font-size: 0.95rem;
}

/* Post Excerpt */
.post-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Post Meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: var(--space-sm);
}

.post-meta .separator {
  opacity: 0.4;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
}

.author-name:hover {
  color: var(--color-accent);
}

.reading-time {
  color: var(--color-text-muted);
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.site-main {
  padding: var(--space-2xl) 0;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.section-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--color-accent-hover);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.news-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* List Posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.widget-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

/* Trending Widget */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.trending-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.trending-content {
  flex: 1;
}

.trending-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  margin-bottom: 4px;
}

.trending-title:hover {
  color: var(--color-accent);
}

.trending-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Newsletter Widget */
.widget--newsletter {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  text-align: center;
}

.widget--newsletter .widget-title {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}

.widget--newsletter h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.widget--newsletter p {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-input {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  width: 100%;
  transition: all var(--transition);
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}

.btn-newsletter {
  background: white;
  color: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-newsletter:hover {
  background: var(--color-highlight);
  color: var(--color-text-primary);
}

/* Tags Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag-cloud a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--transition);
}

.tag-cloud a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* Ad Widget */
.widget--ad {
  background: var(--color-bg-secondary);
  border: 2px dashed var(--color-border);
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.widget--ad span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
}

.single-post-header .category-badge {
  margin-bottom: var(--space-md);
}

.single-post-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-md);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.post-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.author-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-info .author-avatar {
  width: 40px;
  height: 40px;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
}

.author-name-link:hover {
  color: var(--color-accent);
}

.post-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.share-btn {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-secondary);
  background: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.share-btn:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* Article Content */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.entry-content p {
  margin-bottom: var(--space-lg);
}

.entry-content h2 {
  font-size: 1.75rem;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--color-text-primary);
}

.entry-content h3 {
  font-size: 1.35rem;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--color-text-primary);
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

.entry-content figure {
  margin: var(--space-xl) 0;
}

.entry-content figcaption {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-xs);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 0;
  margin-top: var(--space-3xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.footer-brand .site-title {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-xs);
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  font-weight: 700;
  transition: all var(--transition);
}

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

.footer-widget-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-copyright {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 var(--space-xl);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-inner {
  transform: translateY(0);
}

.search-form-big {
  position: relative;
}

.search-input-big {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: 1.5rem;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: white;
  outline: none;
}

.search-input-big::placeholder {
  color: rgba(255,255,255,0.3);
}

.search-close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.5rem;
  padding: var(--space-sm);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
}

.page-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--color-surface);
}

.page-link:hover,
.page-link.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 280px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 280px;
  }
  .news-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 var(--space-md);
  }

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

  .hero-featured {
    grid-row: auto;
  }

  .hero-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .content-area {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .news-grid--3col {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .post-meta-bar {
    flex-wrap: wrap;
  }

  .share-buttons {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-secondary {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .breaking-news-bar,
  .category-nav,
  .share-buttons {
    display: none !important;
  }

  .content-area {
    grid-template-columns: 1fr;
  }
}
