/* ============================================
   ProTunez Blog - Beautiful Animated Theme
   Modern, Elegant, SEO-Optimized, AdSense-Ready
   ============================================ */

/* === CSS Variables === */
:root {
  /* Color Palette - Deep Navy & Gold Accent */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fef3c7;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  
  /* Neutrals */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --bg-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.1), 0 4px 6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.15), 0 10px 10px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.3);
  --shadow-glow-accent: 0 0 30px rgba(6, 182, 212, 0.3);
  
  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary: #f8fafc;
  --primary-light: #f1f5f9;
  --secondary: #fbbf24;
  --secondary-dark: #f59e0b;
  --secondary-light: #1e293b;
  --accent: #22d3ee;
  --accent-dark: #06b6d4;
  
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0f172a;
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  --bg-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  --border-color: #334155;
  --border-light: #1e293b;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(251, 191, 36, 0.4);
  --shadow-glow-accent: 0 0 30px rgba(34, 211, 238, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--secondary-dark);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--secondary);
  color: var(--text-inverse);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Animation Classes */
.animate-fade-in { animation: fadeIn var(--transition-base) ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp var(--transition-slow) ease-out forwards; }
.animate-fade-in-down { animation: fadeInDown var(--transition-slow) ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft var(--transition-slow) ease-out forwards; }
.animate-slide-in-right { animation: slideInRight var(--transition-slow) ease-out forwards; }
.animate-scale-in { animation: scaleIn var(--transition-base) ease-out forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }
.delay-6 { animation-delay: 600ms; }

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.text-gradient {
  background: var(--bg-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* === Links === */
.link-underline {
  position: relative;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition-base);
}
.link-underline:hover::after {
  width: 100%;
}

/* === Header & Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .logo,
[data-theme="dark"] .logo-text,
[data-theme="dark"] .logo-accent {
  color: #ffffff;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(15, 23, 42, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #000000;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.logo:hover .logo-icon {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: var(--shadow-md);
}

.logo-text {
  font-weight: 800;
  color: #000000;
}

.logo-accent {
  color: #000000;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 80%;
}

.main-nav a.active {
  background: var(--secondary-light);
  color: var(--secondary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover {
  background: var(--secondary-light);
  color: var(--secondary-dark);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .icon-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--secondary);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
  background: var(--secondary-light);
  border-color: rgba(245, 158, 11, 0.3);
}

.mobile-menu-toggle:hover span {
  background: var(--secondary-dark);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  animation: fadeIn var(--transition-base) ease-out;
}

.search-overlay.active {
  display: flex;
}

.search-container {
  width: 90%;
  max-width: 700px;
  position: relative;
  animation: slideInDown var(--transition-base) ease-out;
}

.search-container input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  padding-right: 4rem;
  font-size: 1.25rem;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.search-container input::placeholder {
  color: var(--text-light);
}

.search-close {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

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

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--secondary);
}

.breadcrumbs .separator {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* === Hero Section === */
.hero {
  position: relative;
  padding: 4rem 0;
  background: var(--bg-gradient);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  animation: fadeInUp var(--transition-slow) ease-out;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-inverse);
  animation: fadeInUp var(--transition-slow) ease-out 100ms both;
}

.hero-text h1 a {
  color: inherit;
}

.hero-text h1 a:hover {
  color: var(--secondary);
}

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 500px;
  animation: fadeInUp var(--transition-slow) ease-out 200ms both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  animation: fadeInUp var(--transition-slow) ease-out 300ms both;
}

.hero-meta .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-meta .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.hero-meta time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp var(--transition-slow) ease-out 200ms both;
}

.hero-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* === Section Headers === */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  position: relative;
  padding-left: 1rem;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: var(--bg-gradient-gold);
  border-radius: 2px;
}

.section-header .view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all var(--transition-fast);
}

.section-header .view-all:hover {
  gap: 0.625rem;
}

/* === Article Cards === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-slow) ease-out forwards;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.article-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.article-card .card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.article-card .card-body {
  padding: 1.5rem;
}

.article-card .card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.article-card .card-body h3 a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.article-card .card-body h3 a:hover {
  color: var(--secondary);
}

.article-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.card-meta .read-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

/* Featured Card */
.article-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.article-card.featured .card-image {
  flex: 1;
  min-height: 300px;
}

.article-card.featured .card-image img {
  height: 100%;
}

.article-card.featured .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card.featured .card-body h3 {
  font-size: 1.5rem;
}

.article-card.featured .card-excerpt {
  -webkit-line-clamp: 4;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-slow) ease-out forwards;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
  background: var(--bg-secondary);
}

.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  animation: float 4s ease-in-out infinite;
}

.category-card .cat-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.category-card .cat-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Category Hero === */
.category-hero {
  position: relative;
  padding: 4rem 0;
  background: var(--bg-gradient);
  text-align: center;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.category-hero .cat-icon-lg {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: float 4s ease-in-out infinite;
}

.category-hero h1 {
  color: var(--text-inverse);
  margin-bottom: 1rem;
}

.category-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
}

/* === Main Layout === */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* === Sidebar === */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-widget h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--bg-gradient-gold);
  border-radius: 2px;
}

/* About Widget */
.about-widget .author-info {
  text-align: center;
}

.about-widget .author-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.about-widget p {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Recent Posts Widget */
.recent-post {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post:hover {
  transform: translateX(4px);
}

.recent-post .post-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.recent-post .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.recent-post .post-info h4 {
  font-size: 0.9rem;
  margin: 0 0 0.375rem;
  line-height: 1.4;
  font-weight: 600;
}

.recent-post .post-info h4 a {
  color: var(--text-primary);
}

.recent-post .post-info h4 a:hover {
  color: var(--secondary);
}

.recent-post .post-info .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Category Widget */
.category-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.375rem 0;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.category-list a:hover {
  color: var(--secondary);
  background: var(--secondary-light);
  padding-left: 0.75rem;
}

.category-list .cat-count-badge {
  background: var(--bg-tertiary);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.category-list a:hover .cat-count-badge {
  background: var(--secondary);
  color: var(--text-inverse);
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-cloud a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.tags-cloud a:hover {
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Newsletter Widget */
.newsletter-widget {
  background: var(--bg-gradient);
  color: var(--text-inverse);
  border: none;
  position: relative;
  overflow: hidden;
}

.newsletter-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-widget h3 {
  color: var(--text-inverse);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.newsletter-widget h3::before {
  background: var(--secondary);
}

.newsletter-widget p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-inverse);
  outline: none;
  transition: all var(--transition-fast);
}

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

.newsletter-form input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.newsletter-form button {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* === Ad Zones === */
.ad-zone {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition-base);
  position: relative;
}

.ad-zone::before {
  content: 'ADVERTISEMENT';
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-light);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.ad-zone p {
  margin: 0;
  color: var(--text-light);
}

.ad-zone-header {
  margin-bottom: 1rem;
}

.ad-zone-in-content {
  margin: 3rem 0;
}

.ad-zone-sidebar {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === Article Page === */
.article-header {
  text-align: center;
  padding: 2.5rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.article-header .article-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeInUp var(--transition-base) ease-out;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp var(--transition-base) ease-out 100ms both;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  animation: fadeInUp var(--transition-base) ease-out 200ms both;
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-featured-image {
  margin: 2rem auto 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 100%;
  animation: fadeInUp var(--transition-slow) ease-out 200ms both;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: cover;
}

.article-featured-image .image-caption {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--border-color);
}

/* Article Content */
.article-content {
  max-width: 850px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.article-content > * {
  animation: fadeInUp var(--transition-base) ease-out backwards;
}

.article-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--bg-gradient-gold);
  border-radius: 2px;
}

.article-content h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.375rem);
  margin: 2rem 0 1rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.article-content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.article-content .content-image {
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp var(--transition-slow) ease-out backwards;
}

.article-content .content-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

.article-content .content-image .image-caption {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--border-color);
}

/* Table of Contents */
.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp var(--transition-base) ease-out;
}

.toc h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.toc li::before {
  content: counter(toc-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.toc a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc a:hover {
  color: var(--secondary);
  padding-left: 0.5rem;
}

.toc a::after {
  content: '';
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width var(--transition-base);
}

.toc a:hover::after {
  width: 100%;
}

/* Key Takeaways */
.key-takeaways {
  background: linear-gradient(135deg, var(--secondary-light) 0%, #fef9e7 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  animation: fadeInUp var(--transition-base) ease-out 300ms both;
}

.key-takeaways::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient-gold);
}

[data-theme="dark"] .key-takeaways {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

.key-takeaways h3 {
  color: var(--secondary-dark);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
}

.key-takeaways li {
  padding: 0.625rem 0;
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
  color: var(--text-secondary);
}

.key-takeaways li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  animation: fadeInUp var(--transition-base) ease-out;
}

.share-buttons span {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-inverse);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
}

.share-btn.facebook { background: linear-gradient(135deg, #1877f2, #166fe5); }
.share-btn.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.share-btn.linkedin { background: linear-gradient(135deg, #0077b5, #006097); }
.share-btn.pinterest { background: linear-gradient(135deg, #bd081c, #a0071a); }
.share-btn.email { background: linear-gradient(135deg, var(--text-secondary), var(--text-muted)); }

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  animation: fadeInUp var(--transition-base) ease-out;
  transition: all var(--transition-base);
}

.author-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.author-box .author-avatar-xl {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.author-box .author-details h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.author-box .author-details p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.author-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.author-social a:hover {
  background: var(--secondary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
  margin: 4rem 0;
  animation: fadeInUp var(--transition-base) ease-out;
}

/* === Footer === */
.site-footer {
  background: var(--primary);
  color: rgba(248, 250, 252, 0.7);
  padding: 4rem 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--text-inverse);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--bg-gradient-gold);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.6);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

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

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.7);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  border-color: transparent;
  transform: translateY(-4px) rotate(6deg);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: rgba(248, 250, 252, 0.5);
  margin: 0;
}

.footer-bottom a {
  color: rgba(248, 250, 252, 0.5);
  font-weight: 500;
}

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

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

/* === Page Header === */
.page-header {
  background: var(--bg-secondary);
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* === Policy Pages === */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.policy-content p {
  font-size: 1rem;
  line-height: 1.85;
}

.policy-content ul {
  margin: 1rem 0 1rem 1.5rem;
  list-style: disc;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* === Scroll to Top === */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: var(--bg-gradient-gold);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-bounce);
  z-index: var(--z-fixed);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* === Loading Skeleton === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-xs);
}

.skeleton-title {
  height: 2.5rem;
  width: 60%;
  margin-bottom: 1rem;
  border-radius: var(--radius-xs);
}

.skeleton-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

/* === Utilities === */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Print Styles === */
@media print {
  .site-header,
  .site-footer,
  .sidebar-widget,
  .share-buttons,
  .scroll-top,
  .search-overlay,
  .ad-zone,
  .newsletter-widget,
  .theme-toggle,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  .article-content { max-width: 100%; }
  .article-featured-image img { max-height: 300px; }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }

  .hero { background: none !important; color: #000; }
  .hero::before, .hero::after { display: none; }
  .hero-text h1, .hero-text p { color: #000; }

  .key-takeaways { background: #fef3c7 !important; border: 1px solid #f59e0b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-text { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-meta { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { height: 300px; }

  .article-card.featured { grid-column: span 2; grid-row: span 1; }
  .article-card.featured .card-image img { height: 240px; }
  .article-card.featured .card-body h3 { font-size: 1.25rem; }

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

  .main-layout { grid-template-columns: 1fr 300px; gap: 2rem; }

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

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

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    padding: 1rem;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul { flex-direction: column; gap: 0; }

  .main-nav a {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
  }

  .mobile-menu-toggle { display: flex; }

  .hero { padding: 3rem 0; }
  .hero-text h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-image img { height: 250px; }

  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; }
  .article-card.featured .card-image img { height: 240px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .category-card { padding: 1.5rem 1rem; }

  .main-layout { grid-template-columns: 1fr; }
  .sidebar-widget { order: 2; }

  .article-header h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .article-meta { flex-direction: column; gap: 0.75rem; }
  .article-featured-image img { max-height: 300px; }

  .author-box { flex-direction: column; text-align: center; align-items: center; }

  .toc { padding: 1.25rem; }
  .key-takeaways { padding: 1.5rem; }

  .share-buttons { gap: 0.5rem; }
  .share-btn { padding: 0.5rem 0.875rem; font-size: 0.8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: clamp(1.75rem, 8vw, 2rem); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { padding: 1.25rem 0.875rem; }
  .article-header h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .article-content h2 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
  .article-featured-image img { max-height: 250px; }
  .key-takeaways { padding: 1.25rem; }
  .key-takeaways li { padding-left: 1.5rem; }
}

/* === High Contrast === */
@media (prefers-contrast: high) {
  :root {
    --border-color: currentColor;
    --shadow-sm: 0 0 0 1px currentColor;
    --shadow-md: 0 0 0 2px currentColor;
  }
}

/* === Category Page Specific === */
.category .main-layout .content-area > section:first-child {
  animation: fadeInUp var(--transition-slow) ease-out;
}