/* ============================================================
   PsykoLink — Blog Sayfası
   Design System: Psiko Mavi & Mint Paleti
   Fonts: Poppins (headers) + Inter (body)
   ============================================================ */

:root {
  --primary-green: #10B981;
  --primary-blue: #3B82F6;
  --accent-purple: #6C63FF;
  --success-green: #22C55E;
  --warning-orange: #F59E0B;
  --gradient-blue-green: linear-gradient(135deg, #27AE60, #3498DB);
  --soft-gray: #F9FAFB;
  --dark-navy: #0C0F1A;
  --text-black: #1F2937;
  --text-light-gray: #9CA3AF;
  --white: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.6);
  --border: rgba(59, 130, 246, 0.3);
  --shadow: 0 25px 60px -30px rgba(14, 22, 40, 0.6);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: clamp(16rem, 90vw, 1200px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-black);
  background: var(--soft-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: cover;
  border-radius: 25%;
  box-shadow:
    0 4px 14px -2px rgba(59, 130, 246, 0.45),
    0 2px 6px -1px rgba(14, 22, 40, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover { transform: scale(1.1); }

.logo-text { font-size: 1.1rem; color: var(--text-black); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  color: var(--text-black);
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--primary-green) !important;
  color: white !important;
  box-shadow: 0 12px 30px -18px var(--primary-green);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--success-green) !important;
  color: white !important;
  box-shadow: 0 16px 40px -20px rgba(16, 185, 129, 0.6) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-black);
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nav backdrop (mobile drawer overlay) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-backdrop.is-open { display: block; }

/* ============================================================
   GRADIENT TEXT & BADGE
   ============================================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-green);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary-green);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag.blue {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.tag.purple {
  background: rgba(108, 99, 255, 0.08);
  color: var(--accent-purple);
  border-color: rgba(108, 99, 255, 0.2);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-green), #0EA5E9);
  color: white;
  box-shadow: 0 12px 30px -18px rgba(16, 185, 129, 0.5);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(16, 185, 129, 0.6);
}

.btn.ghost {
  background: transparent;
  color: var(--text-black);
  border: 1.5px solid var(--border);
}

.btn.ghost:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* ============================================================
   BLOG HERO
   ============================================================ */

.blog-hero {
  padding: 6rem 0 4rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(circle at 85% 5%, rgba(59, 130, 246, 0.12), transparent 55%);
  text-align: center;
}

.blog-hero .badge { margin-bottom: 1.25rem; }

.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0.5rem 0 1rem;
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--text-black);
  opacity: 0.75;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */

.blog-search-wrap {
  max-width: 640px;
  margin: 0 auto 0.5rem;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 1rem 1.4rem 1rem 3.2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--text-black);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.blog-search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.blog-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light-gray);
  pointer-events: none;
}

.blog-search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light-gray);
  display: none;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color 0.2s;
}

.blog-search-clear:hover { color: var(--text-black); }
.blog-search-clear.visible { display: flex; }

.search-hint {
  font-size: 0.82rem;
  color: var(--text-light-gray);
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================================
   FILTER PANEL
   ============================================================ */

.filter-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.filter-panel.open {
  max-height: 600px;
  opacity: 1;
}

.filter-inner {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.filter-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.filter-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--text-black);
  background: var(--soft-gray);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.filter-select:focus { border-color: var(--primary-blue); }

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.filter-btn.apply {
  background: linear-gradient(135deg, var(--primary-green), #0EA5E9);
  color: white;
}

.filter-btn.apply:hover { transform: translateY(-1px); }

.filter-btn.reset {
  background: transparent;
  color: var(--text-light-gray);
  border: 1.5px solid rgba(0,0,0,0.1);
}

.filter-btn.reset:hover { color: var(--text-black); border-color: var(--border); }

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-blue);
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  transition: all 0.2s;
  margin-bottom: 1rem;
}

.filter-toggle-btn:hover { background: rgba(59, 130, 246, 0.14); }

.filter-toggle-btn .chevron {
  transition: transform 0.3s;
}

.filter-toggle-btn.active .chevron { transform: rotate(180deg); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin: 0.5rem 0 0.75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-black);
  opacity: 0.7;
  max-width: 48rem;
}

.section-header.centered .section-lead {
  margin: 0 auto;
}

/* ============================================================
   BLOG SECTIONS
   ============================================================ */

.blog-section {
  padding: 4rem 0;
}

.blog-section + .blog-section {
  padding-top: 0;
}

.blog-section-divider {
  border: none;
  border-top: 1.5px solid rgba(59, 130, 246, 0.1);
  margin: 0 0 3rem;
}

/* ============================================================
   BLOG CARD GRID
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

/* ============================================================
   BLOG CARD
   ============================================================ */

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 24px -8px rgba(14, 22, 40, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
}

.blog-card.card-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(14, 22, 40, 0.14);
}

/* Card Image */
.blog-card-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-image .placeholder-icon {
  font-size: 2.4rem;
  color: var(--primary-blue);
  opacity: 0.5;
}

.blog-card-featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: linear-gradient(135deg, var(--primary-green), #0EA5E9);
  color: white;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Card Body */
.blog-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-light-gray);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-black);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Author */
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-black);
  opacity: 0.75;
}

.author-avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Card Stats */
.blog-card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light-gray);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-item i { font-size: 0.75rem; }

/* Card Footer */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: rgba(249, 250, 251, 0.6);
}

.card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-blue);
  transition: gap 0.2s ease;
}

.card-read-link:hover { gap: 0.65rem; }

.card-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-light-gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.card-like-btn:hover,
.card-like-btn.liked {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

.card-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-light-gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.card-share-btn:hover {
  color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.08);
}

/* ============================================================
   POPULAR AUTHOR CARDS (horizontal)
   ============================================================ */

.author-section {
  padding: 3rem 0;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.author-post-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 4px 20px -8px rgba(14, 22, 40, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.author-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -10px rgba(14, 22, 40, 0.12);
}

.author-post-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-post-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.author-post-info .author-name-label {
  font-size: 0.8rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.author-post-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-light-gray);
}

/* ============================================================
   SEARCH RESULTS PANEL
   ============================================================ */

#search-results-section {
  display: none;
}

#search-results-section.active {
  display: block;
}

.search-results-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-results-count {
  font-size: 0.9rem;
  color: var(--text-light-gray);
}

/* ============================================================
   FILTERED RESULTS PANEL
   ============================================================ */

#filtered-results-section {
  display: none;
}

#filtered-results-section.active {
  display: block;
  animation: slideDown 0.35s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NO RESULTS
   ============================================================ */

.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results i {
  font-size: 2.5rem;
  color: var(--text-light-gray);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-light-gray);
  font-size: 1rem;
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */

.load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-black);
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.load-more-btn.loading .btn-text { display: none; }
.load-more-btn.loading::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.35s ease;
  max-width: 320px;
}

.toast.show { transform: translateX(0); }
.toast.success { background: var(--primary-green); }
.toast.error   { background: #EF4444; }
.toast.info    { background: var(--primary-blue); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  background-color: var(--dark-navy);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 17rem;
  margin: 1rem 0 0;
}

.logo-text-footer {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.site-footer h4 {
  margin: 0 0 1rem;
  color: white;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.site-footer ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.site-footer ul li a:hover {
  color: var(--primary-green);
}

.footer-note {
  text-align: center;
  margin: 2.5rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

/* ============================================================
   SHOW PAGE — BLOG DETAIL
   ============================================================ */

.blog-show-hero {
  padding: 3rem 0 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08), transparent 60%),
    radial-gradient(circle at 85% 5%, rgba(59, 130, 246, 0.08), transparent 55%);
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light-gray);
  margin-bottom: 2rem;
}

.blog-breadcrumb a { transition: color 0.2s; }
.blog-breadcrumb a:hover { color: var(--primary-blue); }
.blog-breadcrumb i { font-size: 0.7rem; }

.blog-show-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0 4rem;
}

/* Main content */
.blog-content-main {}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-header .post-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.post-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid;
  transition: all 0.25s ease;
  background: none;
}

.action-btn.like-btn {
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.action-btn.like-btn:hover,
.action-btn.like-btn.liked {
  background: rgba(239, 68, 68, 0.08);
}

.action-btn.comment-btn {
  border-color: var(--border);
  color: var(--primary-blue);
}

.action-btn.comment-btn:hover {
  background: rgba(59, 130, 246, 0.08);
}

.action-btn.share-btn {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--primary-green);
}

.action-btn.share-btn:hover {
  background: rgba(16, 185, 129, 0.08);
}

/* Cover image */
.blog-post-cover {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-cover .placeholder-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.4;
}

/* Blog prose content */
.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-black);
}

.blog-post-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}

.blog-post-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.blog-post-body p { margin-bottom: 1.3rem; }

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3rem;
}

.blog-post-body li { margin-bottom: 0.4rem; }

.blog-post-body blockquote {
  border-left: 4px solid var(--primary-green);
  padding: 0.8rem 1.4rem;
  margin: 1.5rem 0;
  background: rgba(16, 185, 129, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  line-height: 1.7;
}

.blog-post-body code {
  background: rgba(59, 130, 246, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-post-body img {
  border-radius: var(--radius-sm);
  margin: 1.5rem auto;
}
.blog-post-body a.term-link {
  color: #3B82F6;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.blog-post-body a.term-link:hover {
  color: #2563EB;
  text-decoration-color: #2563EB;
}

/* Post footer actions */
.blog-post-footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1.5px solid rgba(0,0,0,0.07);
  border-bottom: 1.5px solid rgba(0,0,0,0.07);
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 4px 20px -8px rgba(14, 22, 40, 0.08);
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid rgba(0,0,0,0.06);
  color: var(--text-black);
}

.sidebar-author-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-author-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-author-name {
  font-weight: 700;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

.sidebar-author-role {
  font-size: 0.82rem;
  color: var(--text-light-gray);
  margin-top: 0.2rem;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-black);
}

/* Related posts */
.related-section {
  padding: 3rem 0 4rem;
  border-top: 1.5px solid rgba(0,0,0,0.06);
}

/* ============================================================
   COMMENTS SECTION
   ============================================================ */

.comments-section {
  padding: 2.5rem 0 0;
}

.comments-loading-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-light-gray);
}

.comment-form-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 20px -8px rgba(14, 22, 40, 0.08);
  margin-bottom: 2.5rem;
}

.comment-form-wrap h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-black);
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--text-black);
  background: var(--soft-gray);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 260px;
}

.char-count {
  font-size: 0.78rem;
  color: var(--text-light-gray);
  text-align: right;
}

.char-count.warning { color: var(--warning-orange); }
.char-count.danger  { color: #EF4444; }

.comment-submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--primary-green), #0EA5E9);
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.comment-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.4); }
.comment-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cooldown-bar-wrap {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-light-gray);
}

.cooldown-bar-wrap.active { display: flex; }

.cooldown-bar {
  flex: 1;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.cooldown-progress {
  height: 100%;
  background: var(--primary-green);
  border-radius: 999px;
  transition: width 1s linear;
}

/* Comment list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: 0 2px 12px -4px rgba(14, 22, 40, 0.06);
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comment-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.comment-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-light-gray);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-black);
  word-break: break-word;
}

.load-more-comments-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.load-more-comments-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.load-more-comments-btn:hover {
  background: rgba(59, 130, 246, 0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .blog-show-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 1.2rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
  }

  .site-header.nav-open .site-nav { display: flex; }
  .menu-toggle { display: block; }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .author-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero { padding: 4rem 0 2.5rem; }

  .post-header-actions { flex-wrap: wrap; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .filter-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SHARE MODAL
   ============================================================ */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 15, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: overlayFadeIn 0.22s ease forwards;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.share-modal-overlay[hidden] { display: none !important; }

.share-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 72px rgba(12, 15, 26, 0.35);
  animation: modalSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.share-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--soft-gray);
  border: none;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light-gray);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.share-modal-close:hover {
  background: #FEE2E2;
  color: #EF4444;
}

.share-modal-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.4rem;
  color: var(--text-black);
  padding-right: 2.5rem;
}

.share-modal-heading > i {
  color: var(--accent-purple);
}

/* Preview strip */
.share-modal-preview {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--soft-gray);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.share-modal-img-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 62px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#share-modal-img-placeholder {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#share-modal-img-placeholder i {
  font-size: 1.6rem;
  color: var(--text-light-gray);
}

.share-modal-meta {
  flex: 1;
  min-width: 0;
}

#share-modal-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-black);
  margin: 0 0 0.3rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#share-modal-excerpt {
  font-size: 0.8rem;
  color: var(--text-light-gray);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Platform buttons grid */
.share-modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.share-platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}

.share-platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.share-platform-btn i { font-size: 1.15rem; }

.share-platform-btn--twitter {
  background: #000000;
  color: #ffffff;
}

.share-platform-btn--whatsapp {
  background: #25D366;
  color: #ffffff;
}

.share-platform-btn--instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.share-platform-btn--copy {
  background: var(--soft-gray);
  color: var(--text-black);
  border: 1.5px solid var(--border);
}

.share-platform-btn--copy:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.share-platform-btn--copy.copied {
  color: var(--primary-green);
  border-color: var(--primary-green);
}

/* Instagram tip */
.share-modal-instagram-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--primary-green);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  margin-top: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.share-modal-instagram-tip > i { margin-top: 0.1rem; font-size: 0.95rem; }

.share-modal-instagram-tip[hidden] { display: none !important; }

@media (max-width: 480px) {
  .share-modal-buttons { grid-template-columns: 1fr; }
  .share-modal-box { padding: 1.5rem 1.25rem; }
}
