/* ============================================
   Galaxy Fishing — Blog Styles
   Extends the main design system (styles.css)
   ============================================ */

/* ---------- Reading Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-cta);
  z-index: 2000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(23, 162, 184, 0.5);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Blog Hero ---------- */
.blog-hero {
  position: relative;
  background: var(--bg);
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  overflow: hidden;
  text-align: center;
}

.blog-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-hero-orb {
  position: absolute;
  border-radius: 50%;
}

.blog-hero-orb--1 {
  width: 600px;
  height: 600px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(23, 162, 184, 0.10) 0%, transparent 70%);
}

.blog-hero-orb--2 {
  width: 350px;
  height: 350px;
  bottom: -50px;
  left: -80px;
  background: radial-gradient(circle, rgba(66, 194, 182, 0.07) 0%, transparent 70%);
}

.blog-hero-orb--3 {
  width: 300px;
  height: 300px;
  top: 60px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 125, 79, 0.06) 0%, transparent 70%);
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(23, 162, 184, 0.071);
  border: 1px solid rgba(23, 162, 184, 0.188);
  color: var(--crystal-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.blog-hero-title {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
}

.blog-hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ---------- Featured Post ---------- */
.blog-featured {
  padding: 64px 0 40px;
  background: var(--bg);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s;
}

.featured-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-cta);
  border-radius: 2px 0 0 2px;
}

.featured-card:hover {
  box-shadow: 0 8px 40px rgba(23, 162, 184, 0.15);
}

.featured-card-image {
  position: relative;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.12) 0%, rgba(66, 194, 182, 0.08) 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-card-image-placeholder {
  font-size: 80px;
  opacity: 0.3;
}

.featured-card-body {
  padding: 48px 48px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.featured-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--crystal-blue);
}

.featured-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.featured-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.featured-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.featured-cta {
  margin-top: 8px;
}

/* ---------- Tag Pills ---------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(23, 162, 184, 0.3);
  color: var(--crystal-blue);
  background: rgba(23, 162, 184, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.tag-pill:hover {
  background: rgba(23, 162, 184, 0.12);
  border-color: rgba(23, 162, 184, 0.5);
  color: var(--crystal-blue);
}

.tag-pill--filled {
  background: rgba(23, 162, 184, 0.15);
  border-color: rgba(23, 162, 184, 0.4);
}

/* ---------- Blog Grid Section ---------- */
.blog-grid-section {
  padding: 40px 0 80px;
  background: var(--bg);
}

.blog-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.blog-grid-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- Post Cards ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  gap: 16px;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.post-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(ellipse at top left, rgba(23, 162, 184, 0.06) 0%, transparent 70%);
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(23, 162, 184, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.post-card:hover::after {
  opacity: 1;
}

.post-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.2s;
}

.post-card:hover .post-card-title {
  color: var(--seafoam);
}

.post-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.author-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.post-card-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-card-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.post-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

.post-card-read-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---------- Blog CTA Section ---------- */
.blog-cta {
  position: relative;
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
  overflow: hidden;
}

.blog-cta-orb {
  position: absolute;
  border-radius: 50%;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(23, 162, 184, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.blog-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.blog-cta-title {
  font-size: 40px;
  font-weight: 400;
  color: var(--text-primary);
}

.blog-cta-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* =============================================
   INDIVIDUAL POST PAGE
   ============================================= */

/* ---------- Post Hero ---------- */
.post-hero {
  position: relative;
  background: var(--bg);
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 64px;
  overflow: hidden;
}

.post-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.post-hero-orb {
  position: absolute;
  border-radius: 50%;
}

.post-hero-orb--1 {
  width: 500px;
  height: 500px;
  top: -80px;
  right: 5%;
  background: radial-gradient(circle, rgba(23, 162, 184, 0.09) 0%, transparent 70%);
}

.post-hero-orb--2 {
  width: 350px;
  height: 350px;
  bottom: -50px;
  left: -60px;
  background: radial-gradient(circle, rgba(66, 194, 182, 0.07) 0%, transparent 70%);
}

.post-hero .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.post-breadcrumb a {
  color: var(--crystal-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.post-breadcrumb a:hover {
  color: var(--seafoam);
}

.post-breadcrumb span:last-child {
  color: var(--text-muted);
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.post-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.post-excerpt {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 720px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

.post-meta-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
  margin: 0 4px;
}

.post-date {
  font-size: 13px;
  color: var(--text-muted);
}

.post-dot {
  color: var(--text-muted);
  font-size: 13px;
}

.post-read-time {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Article Layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding-top: 64px;
  padding-bottom: 80px;
  align-items: start;
  max-width: 1100px;
}

/* ---------- TOC Sidebar ---------- */
.toc-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}

.toc-sidebar::-webkit-scrollbar {
  width: 3px;
}

.toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--text-secondary);
  border-left-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.toc-link.active {
  color: var(--crystal-blue);
  border-left-color: var(--crystal-blue);
  background: rgba(23, 162, 184, 0.05);
  font-weight: 500;
}

/* ---------- Article Content ---------- */
.article-content {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content > * + * {
  margin-top: 1.4em;
}

.article-content h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--crystal-blue);
  line-height: 1.2;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.3;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.article-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-content p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content em {
  font-style: italic;
  color: var(--text-secondary);
}

.article-content a {
  color: var(--crystal-blue);
  text-decoration: underline;
  text-decoration-color: rgba(23, 162, 184, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.article-content a:hover {
  color: var(--seafoam);
  text-decoration-color: var(--seafoam);
}

.article-content ul,
.article-content ol {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content ul li {
  list-style: none;
  position: relative;
  padding-left: 4px;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crystal-blue);
}

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

.article-content code {
  font-family: 'SF Mono', 'Fira Mono', 'Cascadia Code', monospace;
  font-size: 14px;
  background: rgba(23, 162, 184, 0.08);
  border: 1px solid rgba(23, 162, 184, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--seafoam);
}

.article-content pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
  margin: 28px 0;
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--seafoam);
  line-height: 1.6;
}

/* ---------- Blockquotes ---------- */
.article-quote {
  position: relative;
  margin: 36px 0;
  padding: 24px 28px 24px 32px;
  background: rgba(23, 162, 184, 0.04);
  border-left: 4px solid var(--crystal-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-quote p {
  margin: 0;
  color: inherit;
}

/* ---------- Mid-Article CTA Banner ---------- */
.article-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.12) 0%, rgba(66, 194, 182, 0.08) 100%);
  border: 1px solid rgba(23, 162, 184, 0.2);
  border-radius: var(--radius-xl);
  margin: 48px 0;
}

.article-cta-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  border: none;
  padding: 0;
}

.article-cta-text p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.btn-white {
  background: var(--white);
  color: #050E18;
  border-color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #050E18;
  transform: translateY(-2px);
}

/* ---------- Post Sign-off ---------- */
.post-signoff {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  font-style: italic;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Author Bio Section ---------- */
.author-bio-section {
  padding: 32px 0 64px;
  background: var(--bg);
}

.author-bio-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 40px;
  max-width: 860px;
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(23, 162, 184, 0.25);
}

.author-bio-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-bio-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crystal-blue);
}

.author-bio-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.author-bio-role {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.author-bio-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Related Posts Section ---------- */
.related-posts-section {
  padding: 0 0 80px;
  background: var(--bg);
}

.related-posts-section .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s;
}

.related-post-card:hover {
  box-shadow: 0 6px 24px rgba(23, 162, 184, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.related-post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.related-post-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.2s;
}

.related-post-card:hover .related-post-title {
  color: var(--seafoam);
}

.related-post-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.related-post-meta {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

/* =============================================
   DYNAMIC BLOG SHELL
   ============================================= */
.dynamic-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--crystal-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* =============================================
   ADMIN PAGE
   ============================================= */
.admin-body {
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Auth guard */
.auth-guard {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.auth-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Admin header */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(5, 14, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

/* Admin main */
.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-toolbar h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.editor-actions {
  display: flex;
  gap: 10px;
}

/* Posts table */
.admin-posts-table {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.admin-posts-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-posts-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
}

.admin-posts-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-posts-table tr:last-child td {
  border-bottom: none;
}

.admin-posts-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-post-title {
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-badge--published {
  background: rgba(66, 194, 182, 0.12);
  color: var(--seafoam);
  border: 1px solid rgba(66, 194, 182, 0.25);
}

.status-badge--draft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.action-btn--edit {
  background: rgba(23, 162, 184, 0.1);
  color: var(--crystal-blue);
  border-color: rgba(23, 162, 184, 0.2);
}

.action-btn--edit:hover {
  background: rgba(23, 162, 184, 0.2);
  border-color: rgba(23, 162, 184, 0.4);
}

.action-btn--delete {
  background: rgba(255, 80, 80, 0.07);
  color: #ff6b6b;
  border-color: rgba(255, 80, 80, 0.15);
}

.action-btn--delete:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.3);
}

/* Post editor form */
.post-editor-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.admin-input:focus {
  border-color: rgba(23, 162, 184, 0.5);
  background: rgba(23, 162, 184, 0.03);
}

.admin-input::placeholder {
  color: var(--text-subtle);
}

.admin-input-title {
  font-size: 24px;
  font-weight: 700;
  padding: 16px 20px;
}

.editor-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
}

.admin-editor {
  width: 100%;
  min-height: 400px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.admin-editor:focus {
  border-color: rgba(23, 162, 184, 0.4);
}

.editor-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.editor-preview h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.preview-render {
  font-size: 16px !important;
}

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

.admin-empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.admin-empty-state p {
  font-size: 14px;
  margin-bottom: 24px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .blog-hero-title {
    font-size: 48px;
  }

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

  .featured-card-image {
    min-height: 200px;
  }

  .featured-card-body {
    padding: 36px 40px;
  }

  .featured-title {
    font-size: 28px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .toc-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .toc-sidebar-wrapper {
    display: none;
  }

  .post-title {
    font-size: 40px;
  }

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

  .editor-meta-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .blog-hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 48px;
  }

  .blog-hero-title {
    font-size: 36px;
  }

  .blog-hero-subtitle {
    font-size: 16px;
  }

  .blog-featured {
    padding: 40px 0 24px;
  }

  .featured-card-body {
    padding: 28px 28px 28px 36px;
  }

  .featured-title {
    font-size: 24px;
  }

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

  .blog-grid-section {
    padding: 24px 0 60px;
  }

  .blog-cta-title {
    font-size: 30px;
  }

  .post-hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
  }

  .post-title {
    font-size: 30px;
    letter-spacing: 0;
  }

  .post-excerpt {
    font-size: 17px;
  }

  .post-meta-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-layout {
    padding-top: 40px;
    padding-bottom: 48px;
    max-width: 100%;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 24px;
    margin-top: 40px;
  }

  .article-content h3 {
    font-size: 20px;
  }

  .article-quote {
    font-size: 17px;
    padding: 20px 20px 20px 24px;
  }

  .article-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }

  .author-bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px;
  }

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

  .admin-posts-table {
    overflow-x: auto;
  }

  .editor-meta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .blog-hero-title {
    font-size: 30px;
  }

  .post-title {
    font-size: 26px;
  }
}
