/*
Theme Name: THECM.IN - India's Chief Ministers Portal
Theme URI: https://thecm.in
Author: THECM.IN
Author URI: https://thecm.in
Description: India's comprehensive Chief Ministers information portal. Features CM directory (current & former), state-wise pages, individual CM profiles, party directory, and global search.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thecm
Tags: politics, india, chief-ministers, directory, custom-post-types, responsive
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --color-primary: #f97316;
  --color-primary-dark: #ea6c0a;
  --color-primary-light: #fed7aa;
  --color-saffron: #FF9933;
  --color-green: #138808;
  --color-navy: #1a2332;
  --color-navy-light: #243044;
  --color-navy-lighter: #2d3a4f;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-bg: #f9fafb;
  --color-bg-card: #ffffff;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* =============================================
   LAYOUT
   ============================================= */
.site-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.site-main { min-height: calc(100vh - 64px - 80px); }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.logo-icon span {
  width: 5px;
  border-radius: 2px;
}
.logo-icon span:nth-child(1) { height: 18px; background: var(--color-saffron); }
.logo-icon span:nth-child(2) { height: 26px; background: #ffffff; }
.logo-icon span:nth-child(3) { height: 18px; background: var(--color-green); }

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-text .dot-in { color: var(--color-primary); }

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

.primary-nav a {
  color: #d1d5db;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.primary-nav a.current-menu-item {
  background: rgba(249,115,22,0.15);
  color: var(--color-primary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 280px;
}

.header-search form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
  width: 100%;
  transition: border-color var(--transition);
}
.header-search form:focus-within {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.12);
}

.header-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.875rem;
  width: 100%;
}
.header-search input::placeholder { color: #9ca3af; }

.header-search svg { color: #9ca3af; flex-shrink: 0; width: 16px; height: 16px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: var(--color-navy);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(249,115,22,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(19,136,8,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-flag {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.hero-flag span {
  width: 8px;
  border-radius: 3px;
}
.hero-flag span:nth-child(1) { height: 36px; background: var(--color-saffron); }
.hero-flag span:nth-child(2) { height: 52px; background: #fff; }
.hero-flag span:nth-child(3) { height: 36px; background: var(--color-green); }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-title .highlight { color: var(--color-primary); }

.hero-subtitle {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-search {
  display: flex;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
}

.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.hero-search input::placeholder { color: #6b7280; }
.hero-search input:focus { border-color: var(--color-primary); background: rgba(255,255,255,0.1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.35); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.875rem; border-radius: 8px; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 24px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.8125rem; color: var(--color-text-muted); font-weight: 500; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
}
.section-link {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.page-section { padding: 48px 0; }
.page-section + .page-section { border-top: 1px solid var(--color-border-light); }

/* =============================================
   CM CARD
   ============================================= */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.cm-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.cm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }

.cm-card-image {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--color-primary), #fb923c);
  overflow: hidden;
}
.cm-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.cm-card-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -1px;
}
.cm-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cm-card-badge.former { background: #6b7280; }

.cm-card-body { padding: 14px; }
.cm-card-name { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.cm-card-meta { display: flex; flex-direction: column; gap: 3px; }
.cm-card-meta span { font-size: 0.75rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 4px; }

/* =============================================
   STATE CARDS
   ============================================= */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.state-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.state-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }

.state-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.state-card-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.state-card-capital { font-size: 0.8125rem; color: var(--color-text-muted); }
.state-type-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.state-type-badge.state { background: rgba(249,115,22,0.1); color: var(--color-primary); }
.state-type-badge.ut { background: rgba(19,136,8,0.1); color: var(--color-green); }

.state-card-cm { border-top: 1px solid var(--color-border-light); padding-top: 12px; }
.state-card-cm-label { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 4px; font-weight: 500; }
.state-card-cm-name { font-size: 0.9375rem; font-weight: 600; margin-bottom: 2px; }
.state-card-cm-party { font-size: 0.8125rem; color: var(--color-text-muted); }

/* =============================================
   PARTY CARDS
   ============================================= */
.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.party-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.party-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }

.party-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.party-abbr-badge {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.party-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.party-card-abbr { font-size: 0.8125rem; color: var(--color-text-muted); }
.party-card-ideology { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 14px; }

.party-card-stats { display: flex; gap: 24px; border-top: 1px solid var(--color-border-light); padding-top: 14px; }
.party-stat { text-align: center; }
.party-stat-number { font-size: 1.375rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.party-stat-label { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 2px; }

.party-card-link { display: block; margin-top: 14px; font-size: 0.8125rem; font-weight: 600; color: var(--color-primary); }

/* =============================================
   CM PROFILE PAGE
   ============================================= */
.profile-hero {
  background: var(--color-navy);
  padding: 40px 24px;
  color: #fff;
}

.profile-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.profile-photo-wrap {
  position: relative;
}
.profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), #fb923c);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.profile-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.profile-status-badge.current { background: var(--color-primary); color: #fff; }
.profile-status-badge.former { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

.profile-info { padding-top: 8px; }
.profile-name { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 8px; }
.profile-title { font-size: 1rem; color: #9ca3af; margin-bottom: 20px; }

.profile-meta-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.profile-meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: #d1d5db; }
.profile-meta-item strong { color: #fff; }

.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.profile-body {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.profile-main { display: flex; flex-direction: column; gap: 32px; }

.content-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.content-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border-light); }
.content-card p { color: var(--color-text-muted); line-height: 1.8; }
.content-card p + p { margin-top: 14px; }

.timeline-list { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 11px;
  width: 2px;
  height: calc(100% - 24px + 24px);
  background: var(--color-border);
}
.timeline-dot {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
  margin-top: 2px;
}
.timeline-content {}
.timeline-year { font-size: 0.8125rem; color: var(--color-primary); font-weight: 700; margin-bottom: 4px; }
.timeline-event { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.timeline-desc { font-size: 0.875rem; color: var(--color-text-muted); }

.achievements-list { display: flex; flex-direction: column; gap: 12px; }
.achievement-item { display: flex; gap: 12px; align-items: flex-start; }
.achievement-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(249,115,22,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1rem;
}
.achievement-text { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.6; padding-top: 6px; }

.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.sidebar-card-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 14px; }
.sidebar-info-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-info-item {}
.sidebar-info-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 2px; }
.sidebar-info-value { font-size: 0.9375rem; font-weight: 500; }

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-header { padding: 40px 0 24px; }
.search-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.search-header p { color: var(--color-text-muted); }

.search-form-large {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.search-form-large input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--color-bg-card);
}
.search-form-large input:focus { border-color: var(--color-primary); }

/* =============================================
   ARCHIVE / LIST PAGE FILTERS
   ============================================= */
.filters-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}
.filter-input:focus { border-color: var(--color-primary); }

.filter-select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  font-size: 0.9375rem;
  outline: none;
  cursor: pointer;
  min-width: 140px;
}

.results-count { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 20px; font-weight: 500; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
  background: var(--color-navy);
  padding: 72px 24px;
  text-align: center;
  color: #fff;
}
.about-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.about-hero p { color: #9ca3af; max-width: 600px; margin: 0 auto; font-size: 1.125rem; }

.about-section { padding: 64px 24px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.feature-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--color-border);
  text-align: center;
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--color-text-muted); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-navy);
  color: #9ca3af;
  padding: 24px;
  text-align: center;
  font-size: 0.875rem;
}
.site-footer a { color: var(--color-primary); }
.site-footer p { margin-bottom: 4px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-border); }
.breadcrumb .current-crumb { color: var(--color-text); font-weight: 500; }

/* =============================================
   NOTICE / BADGE UTILITIES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-primary { background: rgba(249,115,22,0.12); color: var(--color-primary); }
.badge-gray { background: #f3f4f6; color: #6b7280; }
.badge-green { background: rgba(19,136,8,0.1); color: var(--color-green); }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
}
.empty-state p { font-size: 1.0625rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .profile-body { grid-template-columns: 1fr; }
  .profile-sidebar { order: -1; display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { gap: 16px; }
  .primary-nav { display: none; }
  .primary-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-navy); padding: 12px; border-top: 1px solid rgba(255,255,255,0.08); z-index: 99; }
  .nav-toggle { display: flex; }
  .header-search { max-width: 180px; }
  .profile-inner { grid-template-columns: 1fr; }
  .profile-photo { max-width: 220px; margin: 0 auto; }
  .profile-sidebar { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .stats-grid { gap: 24px; }
  .cm-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; }
  .hero-title { font-size: 1.75rem; }
  .profile-hero { padding: 24px 16px; }
}

/* =============================================
   DARK MODE
   ============================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f1f5f9;
    --color-text-muted: #9ca3af;
    --color-text-light: #6b7280;
    --color-bg: #0f1623;
    --color-bg-card: #1a2332;
    --color-border: #2d3a4f;
    --color-border-light: #243044;
  }
  .site-header { box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
  .stats-bar { background: var(--color-navy); border-bottom-color: var(--color-border); }
  .filter-input, .filter-select, .search-form-large input { color: var(--color-text); }
}
