/* ============================================================
   SocialFix Theme - Modern Light Blog Theme
   ============================================================ */

:root {
  --bg-primary: #f0f2f8;
  --bg-secondary: #e4e7f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6fa;
  --border: #d0d4e0;
  --border-glow: #3d5afe;
  --accent: #3d5afe;
  --accent-soft: rgba(61, 90, 254, 0.08);
  --accent-glow: rgba(61, 90, 254, 0.15);
  --accent-secondary: #00e5ff;
  --accent-tertiary: #ff6e40;
  --text-primary: #1a1a2e;
  --text-secondary: #6a6a85;
  --text-muted: #9a9ab0;
  --success: #00e676;
  --warning: #ffd740;
  --danger: #ff5252;
  --gradient-1: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  --gradient-2: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--danger) 100%);
  --gradient-3: linear-gradient(135deg, var(--success) 0%, var(--accent-secondary) 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 30px rgba(61, 90, 254, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-main: 'Exo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main), sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ========== ANIMATED BG ========== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, var(--accent-soft) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,229,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.04;
}

/* ========== HEADER ========== */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  max-width: var(--container-width, 1400px);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.sf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 35px var(--accent-glow), 0 0 60px rgba(61,90,254,0.1); }
}
.logo-text {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); }
.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -2px;
}
.logo-img { max-height: 40px; width: auto; }

/* Header Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-pill {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main), sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.nav-pill:hover, .nav-pill.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.nav-pill .badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 50px;
  font-weight: 700;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0 16px;
  height: 40px;
  gap: 8px;
  transition: border-color 0.3s;
  min-width: 0;
  max-width: 220px;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box i { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main), sans-serif;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
.search-box input::placeholder { color: var(--text-muted); }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ========== MAIN LAYOUT ========== */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--container-width, 1400px);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width, 340px);
  gap: 24px;
  min-height: calc(100vh - 70px - 200px);
}

/* ========== BENTO CARDS ========== */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
}
.bento-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.bento-card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title i {
  color: var(--accent);
  font-size: 16px;
}

/* ========== FEED AREA ========== */
.feed-area { display: flex; flex-direction: column; gap: 20px; }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.stat-card:nth-child(1)::after { background: var(--gradient-1); }
.stat-card:nth-child(2)::after { background: var(--gradient-3); }
.stat-card:nth-child(3)::after { background: var(--gradient-2); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 18px;
}
.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, rgba(61,90,254,0.15), rgba(0,229,255,0.15)); color: var(--accent); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, rgba(0,230,118,0.15), rgba(0,229,255,0.15)); color: var(--success); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, rgba(255,110,64,0.15), rgba(255,82,82,0.15)); color: var(--accent-tertiary); }
.stat-number {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card:nth-child(1) .stat-number { color: var(--accent); }
.stat-card:nth-child(2) .stat-number { color: var(--success); }
.stat-card:nth-child(3) .stat-number { color: var(--accent-tertiary); }
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main), sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.filter-chip i { font-size: 13px; }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(61,90,254,0.3);
}

/* ========== POST CARDS ========== */
.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  animation: card-enter 0.5s ease-out both;
}
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.post-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.post-card .cat-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.post-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-left: 12px;
}
.post-card-cat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.post-cat-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.post-card-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.post-card-body { padding-left: 12px; }
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--accent-soft);
  color: var(--accent);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.post-meta-item i { font-size: 13px; }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-family: var(--font-main), sans-serif;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ========== SIDEBAR ========== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Profile Card */
.profile-card { text-align: center; }
.avatar-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-1);
  padding: 3px;
  margin: 0 auto 14px;
  animation: ring-rotate 6s linear infinite;
}
@keyframes ring-rotate {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
}
.profile-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.profile-handle { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.profile-bio { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.p-stat-num { font-size: 18px; font-weight: 800; color: var(--accent); }
.p-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Categories */
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.cat-item:hover {
  background: var(--accent-soft);
  border-color: var(--border);
}
.cat-left { display: flex; align-items: center; gap: 10px; }
.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.cat-name { font-size: 13px; font-weight: 600; }
.cat-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-primary);
  padding: 3px 10px;
  border-radius: 50px;
}

/* Trending */
.trend-list { display: flex; flex-direction: column; gap: 10px; }
.trend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.trend-item:hover { background: var(--accent-soft); }
.trend-rank {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 28px;
  text-align: center;
}
.trend-info { flex: 1; min-width: 0; }
.trend-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend-count { font-size: 11px; color: var(--text-muted); }
.trend-arrow { color: var(--success); font-size: 14px; }

/* Suggestions */
.suggestion-list { display: flex; flex-direction: column; gap: 6px; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
}
.suggestion-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.suggestion-item i {
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}
.suggestion-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== SINGLE POST ========== */
.post-single {
  position: relative;
  z-index: 1;
  max-width: var(--container-width, 1400px);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width, 340px);
  gap: 24px;
}
.post-single-main { min-width: 0; }

.post-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.post-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.post-hero-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.post-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-hero-meta i { color: var(--accent); }
.post-hero-divider {
  height: 2px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin-top: 20px;
  opacity: 0.5;
}

/* Post Content */
.post-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-primary);
}
.post-content h2, .post-content h3, .post-content h4 {
  font-weight: 800;
  margin: 24px 0 12px;
  color: var(--text-primary);
}
.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 18px; }
.post-content h4 { font-size: 16px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol {
  margin: 12px 0;
  padding-left: 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.post-content a:hover { border-color: var(--accent); }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 16px 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.post-content pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  margin: 16px 0;
}
.post-content code {
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
}
.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.post-content th, .post-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.post-content th {
  background: var(--bg-primary);
  font-weight: 700;
}

/* Share Section */
.share-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.share-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-title i { color: var(--accent); }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: var(--share-color, var(--accent));
  transition: all 0.3s;
  text-decoration: none;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Related Posts */
.related-posts {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.related-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-title i { color: var(--accent); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.related-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== CATEGORY PAGE ========== */
.category-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.category-header h1 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}
.category-header p {
  color: var(--text-secondary);
  font-size: 14px;
}
.category-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
}

/* ========== SEARCH PAGE ========== */
.search-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.search-header h1 {
  font-size: 22px;
  font-weight: 800;
}
.search-header .search-query {
  color: var(--accent);
}
.search-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.search-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main), sans-serif;
  font-size: 14px;
  outline: none;
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-main), sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.search-form button:hover { box-shadow: 0 4px 15px var(--accent-glow); }

/* ========== 404 PAGE ========== */
.error-page {
  text-align: center;
  padding: 80px 24px;
}
.error-code {
  font-size: 120px;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.error-title {
  font-size: 24px;
  font-weight: 800;
  margin: 16px 0 8px;
}
.error-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}
.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.error-btn:hover { box-shadow: 0 4px 20px var(--accent-glow); transform: translateY(-2px); }

/* ========== PROFILE PAGE ========== */
.profile-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}
.profile-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 24px;
}
.profile-hero .avatar-ring {
  width: 100px;
  height: 100px;
}
.profile-hero .avatar-inner { font-size: 36px; }
.profile-hero h1 { font-size: 28px; font-weight: 900; margin: 12px 0 4px; }
.profile-hero p { color: var(--text-secondary); font-size: 15px; }

/* ========== FOOTER ========== */
.sf-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.sf-footer .footer-inner {
  max-width: var(--container-width, 1400px);
  margin: 0 auto;
  padding: 40px 24px 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 12px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--accent); }
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.empty-state p { font-size: 15px; }

/* ========== SR-ONLY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .main-wrapper, .post-single {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
  .header-nav { display: none; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .main-wrapper, .post-single { padding: 16px; gap: 16px; }
  .search-box { display: none; }
  .logo-text { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-hero-title { font-size: 22px; }
  .post-content { padding: 20px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .filter-bar { gap: 6px; }
  .filter-chip { padding: 6px 12px; font-size: 11px; }
  .post-card { padding: 16px; }
}
