/* ===== Design Tokens ===== */
:root {
  --bg-base: #1a1a2e;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --accent-cyan: #00e5ff;
  --accent-purple: #d500f9;
  --accent-blue: #2979ff;
  --accent-pink: #ff4081;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

/* SPA Content Container */
#spa-content {
  position: relative;
  z-index: 10;
}

.page-transition-wrapper {
  animation: pageFadeIn 0.5s var(--transition-smooth) forwards;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}


@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Ambient Background ===== */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(
      1px 1px at 20% 30%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 70% 60%,
      rgba(255, 255, 255, 0.25) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 40% 80%,
      rgba(255, 255, 255, 0.12) 50%,
      transparent 50%
    ),
    radial-gradient(
      0.8px 0.8px at 85% 15%,
      rgba(255, 255, 255, 0.18) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.2px 1.2px at 10% 90%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 50%
    );
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 1;
  animation: orb-drift 20s infinite alternate ease-in-out;
  transform: translateZ(0);
  will-change: transform;
}

.orb-1 {
  width: 70vw;
  height: 70vw;
  background: rgba(0, 229, 255, 0.3);
  top: -25vh;
  left: -15vw;
  animation-delay: -5s;
}
.orb-2 {
  width: 60vw;
  height: 60vw;
  background: rgba(213, 0, 249, 0.3);
  bottom: -15vh;
  right: -15vw;
  animation-duration: 25s;
}
.orb-3 {
  width: 50vw;
  height: 50vw;
  background: rgba(41, 121, 255, 0.25);
  top: 30vh;
  left: 20vw;
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5vw, 5vh) scale(1.05);
  }
  100% {
    transform: translate(-5vw, 10vh) scale(0.95);
  }
}

/* ===== Particles Canvas ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  opacity: 0.8;
  will-change: transform;
}

/* ===== Cursor Follow Glow ===== */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

/* ===== Content Layer ===== */
.content-layer {
  position: relative;
  z-index: 10;
  pointer-events: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.content-layer > * {
  pointer-events: auto;
}

/* ===== Top Actions ===== */
.top-actions {
  position: absolute;
  top: 32px;
  right: 48px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-20px);
  animation: nav-slide-in 0.6s var(--transition-smooth) 0.5s forwards;
}

@keyframes nav-slide-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--transition-smooth);
}

.action-btn:hover,
.action-btn.active {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.action-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== Hero Section ===== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 0;
  gap: 32px;
  pointer-events: none;
}

.hero-title {
  font-family:
    "Google Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(
    to right,
    #fff 0%,
    #00ffff 20%,
    #e040fb 50%,
    #ff4081 80%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.3))
    drop-shadow(0 0 80px rgba(224, 64, 251, 0.2));
  animation:
    title-gradient 6s linear infinite,
    fadeInUp 1s var(--transition-smooth) both;
  animation-delay: 0s, 0.4s;
}

@keyframes title-gradient {
  to {
    background-position: 200% center;
  }
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s var(--transition-smooth) both;
  animation-delay: 0.8s;
  pointer-events: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
}

.btn-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px) scale(0.95);
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--transition-smooth);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

.btn:hover .btn-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(120, 230, 255, 0.25),
    rgba(100, 180, 255, 0.2)
  );
  color: rgba(200, 245, 255, 0.95);
  border: 1px solid rgba(120, 230, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(120, 230, 255, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(
    135deg,
    rgba(120, 230, 255, 0.35),
    rgba(100, 180, 255, 0.3)
  );
  border-color: rgba(120, 230, 255, 0.4);
  box-shadow:
    0 0 35px rgba(120, 230, 255, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-home {
  background: linear-gradient(
    135deg,
    rgba(200, 130, 255, 0.25),
    rgba(170, 100, 255, 0.2)
  );
  color: rgba(230, 200, 255, 0.95);
  border: 1px solid rgba(200, 130, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(200, 130, 255, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05);
}
.btn-home:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(
    135deg,
    rgba(200, 130, 255, 0.35),
    rgba(170, 100, 255, 0.3)
  );
  border-color: rgba(200, 130, 255, 0.4);
  box-shadow:
    0 0 35px rgba(200, 130, 255, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08);
}
.btn-home:active {
  transform: translateY(0) scale(0.98);
}

.btn-wiki {
  background: linear-gradient(
    135deg,
    rgba(130, 230, 170, 0.25),
    rgba(100, 210, 150, 0.2)
  );
  color: rgba(200, 255, 220, 0.95);
  border: 1px solid rgba(130, 230, 170, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(130, 230, 170, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05);
}
.btn-wiki:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(
    135deg,
    rgba(130, 230, 170, 0.35),
    rgba(100, 210, 150, 0.3)
  );
  border-color: rgba(130, 230, 170, 0.4);
  box-shadow:
    0 0 35px rgba(130, 230, 170, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08);
}
.btn-wiki:active {
  transform: translateY(0) scale(0.98);
}

/* ===== Search Bar ===== */
.hero-search {
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: fadeInUp 1s var(--transition-smooth) both;
  animation-delay: 0.7s;
  pointer-events: auto;
}

.hero-search input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.4s var(--transition-smooth);
  user-select: text;
  -webkit-user-select: text;
}

.hero-search input::placeholder {
  color: var(--text-tertiary);
}

.hero-search input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.hero-search .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s ease;
}

.hero-search input:focus ~ .search-icon,
.hero-search .search-icon:hover {
  color: var(--accent-cyan);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  .top-actions {
    top: 20px;
    right: 20px;
    gap: 12px;
  }
  .action-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .action-btn span {
    display: none;
  }
}

/* ===== Blog List Page ===== */
.page-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 100px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
}

.page-title {
  font-family: "Google Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

/* ===== Blog Filters ===== */
.blog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
  max-width: 800px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

/* ===== Blog Search ===== */
.blog-search {
  width: 100%;
  max-width: 560px;
  position: relative;
  margin-bottom: 48px;
}

.blog-search input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.4s var(--transition-smooth);
  user-select: text;
  -webkit-user-select: text;
}

.blog-search input::placeholder {
  color: var(--text-tertiary);
}

.blog-search input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.blog-search .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

/* ===== Blog Grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1200px;
}

.blog-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(30px);
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s var(--transition-smooth);
}

.blog-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.blog-card-cover-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--glass-border);
}

.blog-card-cover-img {
  padding: 0;
}

.blog-card-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 28px;
}

.blog-card-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.blog-card-title {
  font-family: "Google Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.blog-card-meta svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}

/* Card Bookmark Button */
.card-bookmark-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  flex-shrink: 0;
  padding: 0;
}

.card-bookmark-btn svg {
  width: 15px;
  height: 15px;
  margin: 0;
  transition: all 0.3s var(--transition-smooth);
}

.card-bookmark-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.15);
}

.card-bookmark-btn.bookmarked {
  color: #ffab00;
}

.card-bookmark-btn.bookmarked svg {
  fill: #ffab00;
  stroke: #ffab00;
}

.card-bookmark-btn.bookmarked:hover {
  background: rgba(255, 171, 0, 0.1);
}

.card-bookmark-btn.bounce svg {
  animation: fabBounce 0.5s var(--transition-smooth);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: var(--accent-cyan);
}

.page-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* ===== Post Detail Page ===== */
.post-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 100px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-article {
  width: 100%;
  max-width: 780px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.post-back:hover {
  color: var(--accent-cyan);
}

.post-back svg {
  width: 16px;
  height: 16px;
}

.post-header {
  margin-bottom: 48px;
}

.post-category {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.post-title {
  font-family: "Google Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 50%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.post-meta svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}


/* ===== Post Content (Notion Blocks) ===== */
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  user-select: text;
  -webkit-user-select: text;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-family: "Google Sans", sans-serif;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.post-content h1 {
  font-size: 2rem;
}

.post-content h2 {
  font-size: 1.5rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.post-content h3 {
  font-size: 1.2rem;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: border-color 0.3s ease;
}

.post-content a:hover {
  border-color: var(--accent-cyan);
}

.post-content ul,
.post-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent-cyan);
  background: var(--glass-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
}

.post-content pre {
  margin: 28px 0;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.post-content code {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.88em;
}

.post-content pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 28px 0;
  border: 1px solid var(--glass-border);
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--glass-border);
  margin: 48px 0;
}

/* ===== Empty State ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--text-tertiary);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ===== Loading Skeleton ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--glass-bg) 25%,
    var(--glass-bg-hover) 50%,
    var(--glass-bg) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}



/* ===== Floating Bookmark Button ===== */
.fab-bookmark {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  cursor: pointer;
  overflow: hidden;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--transition-smooth);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  animation: fabSlideIn 0.5s var(--transition-smooth) 0.8s both;
}

@keyframes fabSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fab-bookmark:hover {
  width: 108px;
  gap: 6px;
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.fab-bookmark-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: all 0.3s var(--transition-smooth);
}

.fab-bookmark-label {
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.fab-bookmark:hover .fab-bookmark-label {
  opacity: 1;
  width: auto;
}

/* Bookmarked state */
.fab-bookmark.bookmarked {
  border-color: rgba(255, 171, 0, 0.3);
  background: rgba(255, 171, 0, 0.1);
  color: #ffab00;
}

.fab-bookmark.bookmarked .fab-bookmark-icon {
  fill: #ffab00;
  stroke: #ffab00;
}

.fab-bookmark.bookmarked:hover {
  border-color: rgba(255, 171, 0, 0.4);
  background: rgba(255, 171, 0, 0.15);
  box-shadow: 0 8px 32px rgba(255, 171, 0, 0.15);
}

/* Bounce animation on toggle */
@keyframes fabBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.fab-bookmark.bounce .fab-bookmark-icon {
  animation: fabBounce 0.5s var(--transition-smooth);
}

@media (max-width: 768px) {
  .fab-bookmark {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    padding: 0 12px;
  }
  .fab-bookmark:hover {
    width: 100px;
  }
}
