/* ==========================================================================
   YUMEGATARI (夢語り) - Stylesheet
   Modern, Minimalis, Anime Aesthetic & Clean Responsive Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&family=Cinzel:wght@600;700&display=swap');

:root {
  /* Dark Mode (Default) - Midnight Dream & Sakura Glow */
  --bg-body: #0b0f19;
  --bg-surface: #121826;
  --bg-card: rgba(22, 29, 45, 0.75);
  --bg-card-hover: rgba(30, 40, 62, 0.85);
  --bg-glass: rgba(18, 24, 38, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(244, 114, 182, 0.3);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-pink: #f472b6;
  --accent-rose: #fb7185;
  --accent-purple: #a855f7;
  --accent-indigo: #818cf8;
  --accent-cyan: #38bdf8;
  
  --gradient-dream: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #6366f1 100%);
  --gradient-dark: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
  --shadow-glow: 0 10px 30px -10px rgba(244, 114, 182, 0.25);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-brand: 'Cinzel', serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-glow: rgba(244, 114, 182, 0.4);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  --shadow-glow: 0 10px 30px -10px rgba(244, 114, 182, 0.35);
  --shadow-card: 0 10px 25px -5px rgba(100, 116, 139, 0.12), 0 8px 10px -6px rgba(100, 116, 139, 0.08);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile Menu Drawer (Hidden on Desktop by default) */
.mobile-menu-drawer {
  display: none !important;
}

.ambient-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.12) 0%, rgba(168, 85, 247, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.ambient-glow-2 {
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 860px;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: all 0.2s ease;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-dream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(244, 114, 182, 0.4);
  font-family: var(--font-jp);
}

.brand-text {
  background: var(--gradient-dream);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.65rem;
  font-family: var(--font-jp);
  color: var(--text-dim);
  display: block;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--text-main);
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-dream);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 1.1rem;
}

.btn-icon:hover {
  color: var(--text-main);
  background: rgba(244, 114, 182, 0.15);
  border-color: var(--border-glow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--gradient-dream);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -5px rgba(244, 114, 182, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-pink);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
}

/* Cards & Glass Containers */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover {
  border-color: var(--border-glow);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 999px;
  color: var(--accent-pink);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .glow-text {
  background: var(--gradient-dream);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  font-size: 0.8rem;
  font-family: var(--font-jp);
  color: var(--accent-pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Story Grid & Cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.story-card:hover {
  transform: translateY(-4px);
}

.story-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e293b;
  overflow: hidden;
}

.story-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-card:hover .story-cover {
  transform: scale(1.05);
}

.story-pin-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(244, 114, 182, 0.9);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.story-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag-badge {
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tag-badge:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

.story-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.story-card:hover .story-title {
  color: var(--accent-pink);
}

.story-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.story-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Gallery Grid & Image Cards (Isinya Gambar Doang) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.4) 40%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Lightbox Modal for Gallery */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-dialog {
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: 85vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.lightbox-preview {
  flex: 1.4;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-sidebar {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
}

.lightbox-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lightbox-comments-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

/* Story Reader Page Styles */
.reader-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.reader-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.reader-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.reader-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reader-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-main);
}

/* Multi-Block Render Styles */
.block-paragraph {
  margin-bottom: 1.6rem;
  word-break: break-word;
}

.block-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.block-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--gradient-dream);
  border-radius: 2px;
}

.block-image-wrap {
  margin: 2rem 0;
  text-align: center;
}

.block-image {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.block-caption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}

.block-video-wrap {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: #000;
}

.block-video-wrap iframe,
.block-video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
}

.block-audio-player {
  margin: 1.8rem 0;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.block-audio-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-pink);
}

.block-audio-player audio {
  width: 100%;
  height: 42px;
}

.block-document-card {
  margin: 1.8rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s ease;
}

.block-document-card:hover {
  border-color: var(--accent-indigo);
}

.block-doc-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.block-doc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.block-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: rgba(244, 114, 182, 0.06);
  border-left: 4px solid var(--accent-pink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
}

.block-quote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-weight: 600;
}

.spoiler-text {
  background: #334155;
  color: transparent;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.spoiler-text.revealed {
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent-pink);
  user-select: auto;
}

/* Comments Section */
.comments-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.comment-form {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-pink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.15);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comment-item.is-reply {
  margin-left: 2.5rem;
  border-left: 3px solid var(--accent-purple);
  background: rgba(22, 29, 45, 0.4);
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-dream);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.comment-nick {
  font-weight: 700;
  font-size: 0.95rem;
}

.badge-admin {
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

.btn-reply {
  font-size: 0.8rem;
  color: var(--accent-pink);
  font-weight: 600;
}

.btn-delete-comment {
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 600;
}

/* Admin Dashboard Specific */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.admin-tab-btn.active {
  color: var(--accent-pink);
  border-bottom-color: var(--accent-pink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-pink);
  margin-top: 0.25rem;
}

/* Block Editor for Admin */
.editor-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.editor-block-item {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.editor-block-item.dragging {
  opacity: 0.5;
}

.editor-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.block-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent-pink);
  text-transform: uppercase;
}

.block-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Footer */
.footer {
  margin-top: 6rem;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 49;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  }

  .mobile-menu-drawer.open {
    display: flex !important;
  }

  .lightbox-dialog {
    flex-direction: column;
    height: 95vh;
  }

  .lightbox-sidebar {
    max-width: 100%;
  }

  .comment-item.is-reply {
    margin-left: 1.25rem;
  }

  .form-row-mobile {
    grid-template-columns: 1fr !important;
  }

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

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}
