/* =========================================
   ראיית משחק — Design System
   RTL Hebrew Blog
   ========================================= */

/* --- Google Fonts (Heebo — beautiful Hebrew) --- */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5490;
  --accent: #c17f3a;
  --accent-light: #e8a056;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #f0ede7;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e1db;
  --border-light: #f0ede7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Heebo', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --content-width: 760px;
}

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

html {
  direction: rtl;
  lang: he;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography Scale --- */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.35; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
h5 { font-size: 1rem;   font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo .logo-icon {
  object-fit: contain;
  padding: 0;
  background: transparent !important;
  border-radius: 0 !important;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.site-logo .logo-subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-2);
  color: var(--primary);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px;
  flex: 1;
  max-width: 280px;
  transition: all 0.2s ease;
}

.nav-search:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.nav-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
  direction: rtl;
}

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

.nav-search svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.nav-menu-toggle:hover {
  background: var(--surface-2);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5490 60%, #1a2d4a 100%);
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(193,127,58,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* =========================================
   CATEGORY CHIPS / TAGS
   ========================================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(30,58,95,0.08);
  color: var(--primary);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

.tag--accent {
  background: rgba(193,127,58,0.12);
  color: var(--accent);
}

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

.tag--active {
  background: var(--primary);
  color: white;
}

/* Category color map */
.tag--sports { background: rgba(22,101,52,0.1); color: #166534; }
.tag--sports:hover, .tag--sports.tag--active { background: #166534; color: white; }

.tag--ted { background: rgba(109,40,217,0.1); color: #6d28d9; }
.tag--ted:hover, .tag--ted.tag--active { background: #6d28d9; color: white; }

.tag--leadership { background: rgba(30,58,95,0.1); color: var(--primary); }
.tag--leadership:hover, .tag--leadership.tag--active { background: var(--primary); color: white; }

.tag--feedback { background: rgba(180,83,9,0.1); color: #b45309; }
.tag--feedback:hover, .tag--feedback.tag--active { background: #b45309; color: white; }

.tag--learning { background: rgba(3,105,161,0.1); color: #0369a1; }
.tag--learning:hover, .tag--learning.tag--active { background: #0369a1; color: white; }

.tag--culture { background: rgba(190,18,60,0.1); color: #be123c; }
.tag--culture:hover, .tag--culture.tag--active { background: #be123c; color: white; }

.tag--talent { background: rgba(5,150,105,0.1); color: #059669; }
.tag--talent:hover, .tag--talent.tag--active { background: #059669; color: white; }

.tag--strategy { background: rgba(100,116,139,0.12); color: #475569; }
.tag--strategy:hover, .tag--strategy.tag--active { background: #475569; color: white; }

.tag--personal { background: rgba(217,119,6,0.1); color: #d97706; }
.tag--personal:hover, .tag--personal.tag--active { background: #d97706; color: white; }

/* =========================================
   SECTION STYLES
   ========================================= */
.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-link:hover {
  gap: 8px;
}

/* =========================================
   POST CARDS
   ========================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

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

.posts-grid--featured .post-card:first-child {
  grid-column: span 2;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
  flex-shrink: 0;
}

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

.post-card__image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5490 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

.post-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.post-card:hover .post-card__title {
  color: var(--primary);
}

.post-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.post-card__read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Compact card (for lists) */
.post-card--compact {
  flex-direction: row;
  align-items: center;
  padding: 16px 20px;
  gap: 16px;
  border-radius: var(--radius-sm);
}

.post-card--compact .post-card__body {
  padding: 0;
  gap: 6px;
}

.post-card--compact .post-card__title {
  font-size: 1rem;
  -webkit-line-clamp: 2;
}

.post-card--compact .post-card__image-placeholder {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 1.5rem;
  aspect-ratio: auto;
}

/* =========================================
   CATEGORY SECTION (HOMEPAGE)
   ========================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.category-card__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.category-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.category-card__count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================
   ABOUT STRIP (HOMEPAGE)
   ========================================= */
.about-strip {
  background: var(--primary);
  color: white;
  padding: 60px 0;
  margin: 0;
}

.about-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.about-strip h3 {
  color: white;
  margin-bottom: 8px;
}

.about-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-strip .btn {
  margin-top: 20px;
}

/* =========================================
   SEARCH RESULTS
   ========================================= */
#search-results {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 8px;
}

.search-wrapper {
  position: relative;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.search-result-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================
   ARCHIVE PAGE
   ========================================= */
.archive-header {
  background: var(--primary);
  color: white;
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}

.archive-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.archive-header h1 {
  color: white;
  margin-bottom: 12px;
}

.archive-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.archive-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-year-group {
  margin-bottom: 8px;
}

.archive-year-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  padding: 8px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-year-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 2px 10px;
  border-radius: 12px;
}

/* =========================================
   INDIVIDUAL POST PAGE
   ========================================= */
.post-hero {
  background: var(--primary);
  color: white;
  padding: 60px 0;
}

.post-hero .container--narrow {
  text-align: start;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.post-breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

.post-breadcrumb a:hover {
  color: white;
}

.post-breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.post-hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.post-meta strong {
  color: rgba(255,255,255,0.95);
}

.post-meta .tags {
  gap: 6px;
}

.post-meta .tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
  font-size: 0.78rem;
}

.post-meta .tag:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* Post Content */
.post-content-wrapper {
  padding: 60px 0;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  color: var(--primary);
  font-size: 1.5rem;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--border-light);
}

.post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--primary);
  font-size: 1.2rem;
}

.post-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--text);
  font-size: 1.05rem;
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content ul,
.post-content ol {
  list-style: none;
  margin: 1em 0 1.5em;
  padding-right: 0;
}

.post-content ul li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 0.6em;
}

.post-content ul li::before {
  content: '◆';
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.5em;
}

.post-content ol {
  counter-reset: list-counter;
}

.post-content ol li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 0.6em;
  counter-increment: list-counter;
}

.post-content ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.post-content blockquote {
  border-right: 4px solid var(--accent);
  margin: 2em 0;
  padding: 16px 20px;
  background: rgba(193,127,58,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}

.post-content blockquote p {
  margin: 0;
}

.post-content strong, .post-content b {
  color: var(--primary);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--accent-light);
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 2em auto;
  box-shadow: var(--shadow);
}

.post-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 3em 0;
}

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

.post-nav__item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-nav__item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.post-nav__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.post-nav__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

/* Legacy post notice */
.legacy-notice {
  background: rgba(193,127,58,0.08);
  border: 1px solid rgba(193,127,58,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.legacy-notice svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5490 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.about-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 4px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 24px;
}

.about-hero h1 {
  color: white;
  margin-bottom: 12px;
}

.about-hero .subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-content h2 {
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 40px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.25em;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.about-stat__number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.about-stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--primary);
  color: white;
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.footer-section h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: white;
}

/* =========================================
   DIVIDERS & UTILITIES
   ========================================= */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

.mt-40 { margin-top: 40px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 0.95rem;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .posts-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .posts-grid--featured .post-card:first-child {
    grid-column: span 2;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .nav-search {
    max-width: none;
    flex: 1;
  }

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

  .posts-grid--featured .post-card:first-child {
    grid-column: span 1;
  }

  .about-strip-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    margin: 0 auto;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .post-nav {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 60px 0 80px;
  }

  .section {
    padding: 48px 0;
  }
}

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

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

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

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--surface);
  padding: 24px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav__close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 48px;
}

.mobile-nav__links a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  transition: background 0.15s ease;
}

.mobile-nav__links a:hover,
.mobile-nav__links a.active {
  background: var(--bg);
  color: var(--primary);
}

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

.animate-in {
  animation: fadeInUp 0.4s ease forwards;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .post-nav {
    display: none;
  }
}
