html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #131722;
  --bg-card: rgba(25, 30, 45, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(100, 108, 255, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-red: #ef4444;

  --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --shadow-neon: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
  --font-family: 'Inter', 'Noto Sans KR', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Glow */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  -webkit-filter: blur(140px);
  opacity: 0.15;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
}

.glow-1 {
  top: -10%;
  left: 15%;
  width: 45vw;
  height: 45vw;
  background: var(--accent-blue);
}

.glow-2 {
  bottom: 10%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-purple);
}

/* Utility Layouts */
.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  flex-grow: 1;
}

.hidden {
  display: none !important;
}

/* Text & Accent Styles */
.neon-text-blue {
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.neon-text-purple {
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

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

/* Navigation Bar */
.navbar {
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: -0.5px;
  white-space: nowrap !important;
  display: inline-block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.auto-update-badge {
  font-size: 0.8rem;
  color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 50px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 960px;
  margin: 0 auto 20px auto;
  font-weight: 300;
}

/* 🔍 Hero 글로벌 검색 — 시인성 강화 (PC/모바일 동일) */
.hero-search-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 4px auto 24px auto;
  z-index: 10;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
}

/* 배경 네온 글로우 (존재감) */
.hero-search::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -10px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.12) 55%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-search:hover::after,
.hero-search:focus-within::after {
  opacity: 1;
  transform: scaleX(1.06);
}

/* 그라데이션 링 */
.hero-search::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1.5px;
  background: linear-gradient(
    120deg,
    rgba(59, 130, 246, 0.85),
    rgba(139, 92, 246, 0.9),
    rgba(20, 184, 166, 0.65)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.hero-search:hover::before,
.hero-search:focus-within::before {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.45));
}

.hero-search-icon {
  position: absolute;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(167, 139, 250, 0.35);
  font-size: 0.92rem;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-search:focus-within .hero-search-icon {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(139, 92, 246, 0.7));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
  transform: scale(1.04);
}

.hero-search input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 54px;
  padding: 0 78px 0 58px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: linear-gradient(180deg, rgba(28, 34, 52, 0.95), rgba(14, 18, 30, 0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-search input::placeholder {
  color: #9ca3af;
  font-weight: 400;
  opacity: 1;
}

.hero-search input:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(180deg, rgba(32, 38, 58, 0.98), rgba(16, 20, 34, 0.95));
}

.hero-search input:focus {
  width: 100%;
  border-color: transparent;
  background: linear-gradient(180deg, rgba(34, 40, 62, 0.98), rgba(14, 18, 32, 0.98));
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(139, 92, 246, 0.35),
    0 0 32px rgba(59, 130, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-search-hint {
  position: absolute;
  right: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.28));
  color: #ddd6fe;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Outfit', 'Inter', sans-serif;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within .hero-search-hint {
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
  color: #fff;
}

.hero-search:has(input:not(:placeholder-shown)) .hero-search-hint {
  opacity: 0.35;
  transform: scale(0.96);
}

/* 🌟 Neon Pill Category Switcher Bar */
.category-pill-container {
  display: inline-flex;
  background: rgba(18, 22, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  margin-top: 0;
  position: relative;
  z-index: 10;
  max-width: 100%;
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 11;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.pill-btn.active {
  background: var(--gradient-main);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.pill-btn.pill-tech.active {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.pill-btn.pill-mind.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.pill-btn.pill-career.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

/* 🏷️ Category Badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-tech {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-mind {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.badge-career {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Cards & Containers (Glassmorphism) */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

/* Admin Dashboard Console */
.admin-console {
  margin-bottom: 40px;
  border-left: 4px solid var(--accent-purple);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.admin-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.btn-icon {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 8px;
  font-size: 1.25rem;
}

.btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.btn-block {
  width: 100%;
}

/* Feed Section & Grid */
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox 스크롤바 숨김 */
  -ms-overflow-style: none; /* IE 스크롤바 숨김 */
  padding: 4px 0 12px 0;
}

.filter-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari 스크롤바 숨김 */
}

.tag-filter {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.25s ease;
  white-space: nowrap; /* 칩 내 글자 찌그러짐 방지 */
  flex-shrink: 0; /* 칩 구겨짐 방지 */
}

.tag-filter:hover, .tag-filter.active {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

/* Feed Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  position: relative;
  background: #1e293b;
  border-bottom: 1px solid var(--border-color);
}

.post-card-image--empty {
  background: linear-gradient(135deg, #151a24 0%, #1e293b 100%);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

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

.post-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-blue);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.post-readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap; /* 텍스트 줄바꿈 절대 방지 */
  flex-shrink: 0;      /* 가로 너비 찌그러짐 방지 */
}

.post-card:hover .post-readmore {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Loading & Empty State */
.loading-container {
  display: none; /* 스켈레톤으로 대체되어 더 이상 사용 안함 */
}

.spinner {
  display: none; /* 스켈레톤으로 대체 */
}

/* 🦴 Skeleton Loading UI */
@keyframes shimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-badge {
  height: 20px;
  width: 90px;
  border-radius: 20px;
}

.skeleton-title {
  height: 22px;
  width: 90%;
}

.skeleton-title-short {
  height: 22px;
  width: 65%;
}

.skeleton-text {
  height: 14px;
  width: 100%;
}

.skeleton-text-short {
  height: 14px;
  width: 75%;
}

/* 스켈레톤 리스트 행 */
.skeleton-list-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skeleton-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-color);
}

.skeleton-list-date {
  height: 14px;
  width: 40px;
  flex-shrink: 0;
  border-radius: 6px;
}

.skeleton-list-title {
  height: 14px;
  flex: 1;
  border-radius: 6px;
}

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

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

/* Modals & Backdrops */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content-wrapper {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px;
}

/* 게시글 상세: PC에서 화면의 약 70~80% 너비로 확장 */
#postModal .modal-content-wrapper {
  width: 80%;
  max-width: 1200px;
}

.modal-card {
  background: #11141e;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25 ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
}

/* Login Card Size */
.login-card {
  max-width: 420px;
  margin: 0 auto;
}

/* Post Detail Content (rendered in Modal) */
.detail-header {
  margin-bottom: 24px;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-meta-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding-right: 40px; /* 상단 오른쪽 닫기(X) 버튼과의 공간 충돌 방지 */
}

.detail-share-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.detail-share-btn:hover {
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 520px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}

.detail-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #d1d5db;
}

.detail-body img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 16px 0;
}

/* Markdown styling inside modal */
.detail-body p {
  margin-bottom: 16px;
}

.detail-body strong, .detail-body b {
  font-weight: 700;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.detail-body h2 {
  font-size: 1.4rem;
  margin: 28px 0 12px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.detail-body h3 {
  font-size: 1.2rem;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.detail-body ul, .detail-body ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.detail-body li {
  margin-bottom: 6px;
}

.detail-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-blue);
}

.detail-body pre {
  background: rgba(13, 10, 25, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-left: 4px solid var(--accent-purple);
  padding: 20px 16px 16px 16px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 22px 0;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 💻 터미널 윈도우 스타일 (Mac OS 삼색 버튼 재현) */
.detail-body pre::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 8px;
  background: radial-gradient(circle, #ff5f56 2.5px, transparent 3px),
              radial-gradient(circle, #ffbd2e 2.5px, transparent 3px),
              radial-gradient(circle, #27c93f 2.5px, transparent 3px);
  background-size: 10px 8px;
  background-repeat: no-repeat;
  background-position: 0px 0px, 11px 0px, 22px 0px;
  opacity: 0.6;
}

.detail-body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: 'Fira Code', 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
  display: block;
}

.detail-body blockquote {
  border-left: 4px solid var(--accent-purple);
  padding-left: 16px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.02);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Admin Post Edit Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Detail Admin tools */
.detail-admin-tools {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Footer styling */
.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.4rem; /* 타이트한 모바일 해상도(340px대)에서도 깨짐 방지 */
    word-break: keep-all; /* 단어 단위 줄바꿈 방지 */
    line-height: 1.35;
    letter-spacing: -0.5px;
  }
  .hero-subtitle {
    font-size: 0.82rem; /* 서브타이틀 폰트 크기 축소 */
    word-break: keep-all;
    line-height: 1.45;
    padding: 0 4px;
    color: var(--text-muted);
  }
  .nav-container {
    padding: 10px 10px;
    gap: 6px;
  }
  .nav-logo {
    font-size: 1.12rem;
    gap: 5px;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .logo-text {
    white-space: nowrap !important;
    display: inline-block;
  }
  .nav-logo img {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
  }
  .nav-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .nav-share-btn,
  .nav-bookmark-btn,
  .nav-actions .btn-icon {
    width: 31px !important;
    height: 31px !important;
    font-size: 0.84rem !important;
    flex-shrink: 0;
  }
  .main-container {
    padding: 16px 12px;
  }
  
  /* 관리자 콘솔 모바일 대응 (컴팩트화) */
  .admin-console {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .admin-header h3 {
    font-size: 0.88rem;
  }
  .admin-user-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    word-break: break-all;
  }
  .admin-actions {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .admin-actions .btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
  }

  /* 카테고리 필터 모바일 가로 스크롤 스와이프 기능 */
  .feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .filter-bar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox 스크롤바 숨김 */
  }
  .filter-bar::-webkit-scrollbar {
    display: none; /* Chrome/Safari 스크롤바 숨김 */
  }
  .tag-filter {
    padding: 5px 12px;
    font-size: 0.8rem;
    flex-shrink: 0; /* 가로 가용 너비 찌그러짐 방지 */
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-card-image {
    height: 180px;
  }
  .post-card-content {
    padding: 20px;
  }
  .post-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .post-summary {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }
  .post-footer {
    padding-top: 10px;
  }
  .post-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .post-readmore {
    font-size: 0.8rem;
  }

  /* 모달 레이아웃 최적화: 모바일 상단/하단 텅 비는 여백 100% 제거 (네이티브 앱 풀스크린 UX) */
  .modal {
    align-items: stretch !important;
    padding: 0 !important;
  }
  .modal-content-wrapper,
  #postModal .modal-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .modal-card {
    min-height: 100vh !important;
    height: 100% !important;
    padding: 24px 16px calc(100px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .modal-body {
    max-height: none !important;
    flex: 1 !important;
    overflow-y: visible !important;
  }
  .detail-title {
    font-size: 1.3rem;
    line-height: 1.35;
    word-break: keep-all;
  }
  .detail-image {
    max-height: 240px;
    margin-bottom: 16px;
  }
  .detail-body {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .detail-body h2 {
    font-size: 1.15rem;
    margin: 22px 0 10px;
  }
  .detail-body h3 {
    font-size: 1.05rem;
  }
}

/* 🔍 검색창 & 컨트롤바 */
.feed-header.list-header {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-box input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px 8px 36px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 240px;
  transition: all 0.25s ease;
}

.search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
  width: 280px;
}

/* Hero 검색은 고정 풀폭 + 좌/우 여백 (일반 .search-box input 패딩이 덮어쓰지 않도록) */
.hero-section .hero-search input,
.hero-section .hero-search input:focus {
  width: 100%;
  height: 54px;
  padding: 0 78px 0 58px;
  border-radius: 999px;
  font-size: 0.96rem;
}

.hero-search .hero-search-icon {
  left: 14px;
}
.hero-search .hero-search-icon i {
  position: static;
  left: auto;
  color: inherit;
  font-size: inherit;
}

/* 📋 리스트 레이아웃 */
.posts-list-container {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

.post-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 16px;
}

.post-list-row:hover {
  background: rgba(139, 92, 246, 0.03);
  border-bottom-color: rgba(139, 92, 246, 0.3);
  padding-left: 15px; /* 호버 시 우측으로 슬라이드 */
}

.post-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: monospace;
  flex-shrink: 0;
}

.post-list-date {
  font-weight: 500;
}

.post-list-author {
  color: rgba(255, 255, 255, 0.3);
}

.post-list-title {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.post-list-row:hover .post-list-title {
  color: var(--accent-purple);
}

.post-list-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.post-list-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.post-list-row:hover .post-list-tag {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* 🎴/📋 상단 피드 카드 및 전체 리포트 피드 반응형 태그 노출 규칙:
   - 한 줄에 카드 3개 노출되는 넓은 PC 화면 (1150px 이상): 태그 3개 표출
   - 한 줄에 카드 1, 2개 노출되는 화면 (1149px 이하): 대표 태그 1개 표출
*/
@media (max-width: 1149px) {
  .post-card .post-tags .post-tag:nth-child(n+2),
  .post-list-tags .post-list-tag:nth-child(n+2) {
    display: none !important;
  }
}

/* 👁️ 오른쪽 끝 화살표 옆에 깔끔히 일직선 줄맞춤되는 조회수 영역 */
.post-list-views {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 55px;
  text-align: right;
}

.post-list-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.post-list-row:hover .post-list-arrow {
  color: var(--accent-blue);
  transform: translateX(3px);
}

/* 🔢 번호형 페이지네이션 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}

.page-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.page-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 📱 모바일 전용 반응형 프리미엄 디자인 고도화 (768px 이하 스마트폰/타블렛) */
@media (max-width: 768px) {
  .glow-sphere {
    filter: blur(60px);
    -webkit-filter: blur(60px);
    opacity: 0.1;
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.35;
    letter-spacing: -0.5px;
    word-break: keep-all;
    padding: 0 10px;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    padding: 0 14px;
    line-height: 1.45;
  }
  .nav-container {
    padding: 10px 14px;
  }
  .main-container {
    padding: 14px 10px;
  }
  
  /* 🎛️ 네온 카테고리 스위처 2x2 바둑판 그리드 레이아웃 개선 */
  .category-pill-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 8px;
    margin-top: 16px;
  }
  .pill-btn {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 12px;
    min-height: 44px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .pill-btn i {
    font-size: 0.85rem;
  }
  .feed-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-search-wrap {
    max-width: 100%;
    margin-bottom: 18px;
  }
  /* 모바일도 PC와 동일 구성 — 너비만 풀폭 */

  /* 📱 모바일 리스트 행 슬림 & 제목 영역 80% 이상 최우선 공간 보장 */
  .post-list-row {
    padding: 12px 6px;
    gap: 8px;
  }
  .post-list-row:hover {
    padding-left: 8px;
  }
  .post-list-title {
    font-size: 0.84rem;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
  }
  .post-list-tags {
    display: none;
  }
  .post-list-views {
    font-size: 0.7rem;
    width: 38px;
    margin-left: auto;
  }

  /* 📱 모바일 팝업/모달 레이아웃 (좌우 드래그 완전 차단 & 폰 가로 100% 밀착) */
  .modal-content-wrapper {
    padding: 0; /* 좌우 불필요한 외곽 여백 완전 제거 */
    align-items: flex-end; /* 모바일 하단 100% 밀착 바텀 시트 형태 */
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    max-height: 92vh;
    padding: 16px 12px;
    border-radius: 20px 20px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.8);
    border-left: none;
    border-right: none;
    border-bottom: none;
    overflow-x: hidden !important;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  .modal-header h3 {
    font-size: 1.1rem;
    padding-right: 36px; /* 닫기 버튼 겹침 방지 */
    word-break: break-word !important;
  }

  .modal-body {
    overflow-y: auto;
    overflow-x: hidden !important;
    max-height: calc(92vh - 60px);
    -webkit-overflow-scrolling: touch;
    padding: 0 4px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 📖 상세 모달 (postModal) 본문 가로 삐져나옴(좌우 드래그) 완전 방지 */
  .detail-header {
    margin-bottom: 12px;
    width: 100% !important;
  }
  .detail-title {
    font-size: 1.25rem;
    line-height: 1.35;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin: 8px 0 12px;
  }
  .detail-meta {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    width: 100% !important;
  }
  .detail-share-btn {
    font-size: 0.78rem;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
  }
  .detail-image {
    max-height: 200px;
    max-width: 100% !important;
    margin: 12px 0;
    border-radius: 12px;
    object-fit: cover;
  }
  .detail-body {
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    color: #e5e7eb;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .detail-body img,
  .detail-body iframe,
  .detail-body video {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
  .detail-body pre,
  .detail-body table {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }

  /* ⚙️ 관리자 대시보드 탭 & 모바일 터치 버튼 최적화 */
  .admin-tabs-nav {
    gap: 6px;
    margin-top: 10px;
    padding-bottom: 6px;
  }

  .admin-tab-btn {
    flex: 1;
    justify-content: center;
    min-height: 42px;
    padding: 8px 6px;
    font-size: 0.82rem;
    border-radius: 10px;
    text-align: center;
  }

  .admin-comments-list {
    max-height: 52vh;
    gap: 10px;
  }

  .admin-comment-item {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .admin-comment-post-title {
    font-size: 0.8rem;
    line-height: 1.35;
    background: rgba(59, 130, 246, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    word-break: keep-all;
  }

  .admin-comment-actions {
    gap: 8px;
    margin-top: 6px;
  }

  .btn-icon-sm {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .admin-reply-box {
    padding: 10px;
    margin-top: 8px;
  }

  .admin-reply-box textarea {
    min-height: 65px;
    font-size: 0.85rem;
    padding: 10px;
  }

  /* 📖 상세 모달 (postModal) 모바일 뷰 파인튜닝 */
  .detail-header {
    margin-bottom: 12px;
  }
  .detail-title {
    font-size: 1.25rem;
    line-height: 1.35;
    word-break: keep-all;
    margin: 8px 0 12px;
  }
  .detail-meta {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }
  .detail-share-btn {
    font-size: 0.78rem;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
  }
  .detail-image {
    max-height: 200px;
    margin: 12px 0;
    border-radius: 12px;
  }
  .detail-body {
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: keep-all;
    color: #e5e7eb;
  }
  .detail-body h2 {
    font-size: 1.15rem;
    margin: 20px 0 10px;
  }
  .detail-body h3 {
    font-size: 1.05rem;
    margin: 16px 0 8px;
  }
  .detail-admin-tools {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
  }
  .detail-admin-tools .btn {
    flex: 1;
    justify-content: center;
    min-height: 42px;
    font-size: 0.88rem;
  }

  /* 💬 모바일 댓글 작성 폼 최적화 */
  .comment-form {
    padding: 12px;
    border-radius: 12px;
  }
  .comment-form-row {
    flex-direction: column;
    gap: 8px;
  }
  .comment-form-row input {
    height: 40px;
    font-size: 0.85rem;
  }
  .comment-form-content {
    flex-direction: column;
    gap: 8px;
  }
  .comment-form-content textarea {
    height: 70px;
    width: 100%;
    font-size: 0.88rem;
    padding: 10px;
  }
  .btn-submit-comment {
    width: 100%;
    height: 42px;
    font-size: 0.88rem;
    border-radius: 8px;
  }

  .comment-card {
    padding: 12px;
    border-radius: 10px;
  }
  .comment-body-text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* 🔘 일반 버튼 터치 피드백 & 크기 개선 */
  .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.88rem;
    border-radius: 10px;
  }
  .btn:active {
    transform: scale(0.97);
  }
}

/* 📱 380px 이하 초소형 스마트폰 최적화 */
@media (max-width: 480px) {
  .nav-container {
    padding: 8px 8px;
    gap: 4px;
  }
  .nav-logo {
    font-size: 1.02rem;
    gap: 4px;
    white-space: nowrap !important;
  }
  .nav-logo img {
    width: 20px !important;
    height: 20px !important;
  }
  .nav-actions {
    gap: 3px;
  }
  .nav-share-btn,
  .nav-bookmark-btn,
  .nav-actions .btn-icon {
    width: 29px !important;
    height: 29px !important;
    font-size: 0.8rem !important;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .pill-btn {
    font-size: 0.73rem;
    padding: 8px 2px;
  }
  .modal-card {
    padding: 16px 12px calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .detail-title {
    font-size: 1.15rem;
  }
  .admin-tab-btn {
    font-size: 0.78rem;
    padding: 6px 4px;
  }
}

/* 💬 익명 댓글 영역 스타일 (글 본문 최우선 및 하단 토글 조절) */
.comments-section-container {
  margin-top: 40px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.comments-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.comments-header-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.comments-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.btn-toggle-comments {
  background: transparent;
  border: none;
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comments-collapsible {
  margin-top: 16px;
  transition: all 0.3s ease;
}

.comments-collapsible.collapsed {
  display: none;
}

.comments-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}

/* 댓글 개별 카드 */
.comment-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.comment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.comment-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.comment-delete-btn:hover {
  color: var(--accent-red);
}

.comment-body-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-all;
  white-space: pre-wrap;
}

/* 댓글 작성 폼 */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 12px;
}

.comment-form-row {
  display: flex;
  gap: 10px;
}

.comment-form-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  transition: all 0.25s ease;
}

.comment-form-row input:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.06);
}

.comment-form-content {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.comment-form-content textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  resize: none;
  height: 60px;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.comment-form-content textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.06);
}

.btn-submit-comment {
  flex-shrink: 0;
  width: 70px;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* 스크롤바 튜닝 */
.comments-list::-webkit-scrollbar {
  width: 4px;
}
.comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.comments-list::-webkit-scrollbar-track {
  background: transparent;
}

/* ⚙️ 관리자 설정 대시보드 모달 스타일 */
.admin-card {
  max-width: 440px;
}

#adminModalBtn i {
  transition: transform 0.4s ease, color 0.2s ease;
}

#adminModalBtn:hover i {
  transform: rotate(45deg); /* 호버 시 톱니바퀴 회전 */
  color: var(--accent-purple);
}

/* 💬 관리자 대시보드 탭 및 댓글 관리 스타일 */
.admin-tabs-nav {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.admin-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab-btn.active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  font-weight: 600;
}

.admin-comments-badge {
  background: var(--accent-purple);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.admin-tab-content.hidden {
  display: none !important;
}

.admin-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.btn-icon-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.btn-icon-sm:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.admin-comments-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  margin-top: 8px;
}

.admin-comments-list::-webkit-scrollbar {
  width: 4px;
}

.admin-comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.admin-comment-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-comment-post-title {
  font-size: 0.82rem;
  color: var(--accent-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-decoration: none;
}

.admin-comment-post-title:hover {
  text-decoration: underline;
}

.admin-comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.admin-comment-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.admin-comment-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.admin-reply-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-reply-box textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 6px;
  padding: 8px;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 50px;
}

.admin-reply-box textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

/* 👑 관리자 답변 뱃지 스타일 */
.comment-badge-admin {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fbbf24;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.admin-actions-vertical button {
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 📱 카카오톡 인앱 → 외부 브라우저 유도 배너 */
.kakao-external-banner {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.28));
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kakao-external-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.kakao-external-banner-inner p {
  margin: 0;
  font-size: 0.86rem;
  color: #e9d5ff;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kakao-external-banner-inner p i {
  color: #c4b5fd;
  font-size: 1rem;
}

.kakao-external-btn {
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .kakao-external-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .kakao-external-banner-inner p {
    justify-content: center;
  }
  .kakao-external-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 📲 기사 상세 팝업 SNS 공유 버튼 그룹 */
.detail-share-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.detail-share-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.share-kakao-btn:hover {
  background: rgba(254, 229, 0, 0.15) !important;
  border-color: rgba(254, 229, 0, 0.4) !important;
  color: #fee500 !important;
}

.share-x-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

@media (max-width: 600px) {
  .detail-share-btn .btn-text {
    display: none;
  }
  .detail-share-btn {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.92rem;
  }
}

/* 📚 기사 모달 하단 연관 기사 추천 섹션 */
.related-posts-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.related-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-section-title i {
  color: var(--accent-purple);
}

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

@media (max-width: 600px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .related-card:nth-child(n+3) {
    display: none;
  }
}

.related-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.related-card-img {
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: #111;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-img img {
  transform: scale(1.05);
}

.related-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-meta {
  margin-bottom: 6px;
}

.related-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card-views {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ↔️ 이전 글 / 다음 글 내비게이션 카드 스타일 */
.post-prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.prev-next-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prev-next-card.prev-card {
  text-align: left;
}

.prev-next-card.next-card {
  text-align: right;
}

.prev-next-card:not(.disabled):hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.prev-next-card.disabled {
  opacity: 0.4;
  cursor: default;
}

.nav-direction {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.next-card .nav-direction {
  justify-content: flex-end;
}

.nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .post-prev-next-nav {
    gap: 8px;
    margin-top: 14px;
  }
  .prev-next-card {
    padding: 10px;
  }
  .nav-title {
    font-size: 0.78rem;
  }
}

/* 🎧 스마트 AI 오디오 낭독 플레이어 스타일 */
.detail-audio-player {
  margin: 14px 0 18px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  backdrop-filter: blur(8px);
}

.audio-player-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.audio-player-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.audio-play-btn {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border: none;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

.audio-play-btn:hover {
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.5);
  transform: translateY(-1px);
}

.audio-play-btn.playing {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  animation: pulse-audio 2s infinite;
}

@keyframes pulse-audio {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.audio-stop-btn {
  padding: 5px 9px;
  color: var(--text-muted);
}

.audio-stop-btn:hover {
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.4);
}

.rate-selector {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rate-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rate-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .detail-audio-player {
    padding: 6px 10px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .audio-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  .rate-btn {
    padding: 2px 6px;
    font-size: 0.72rem;
  }
}

/* ⚡ 3초 핵심 요약 (TL;DR) 글래스모피즘 박스 스타일 */
.detail-tldr-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 20px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tldr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tldr-icon {
  color: #fbbf24;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 50%;
}

.tldr-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.tldr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tldr-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.tldr-num {
  background: var(--gradient-main);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}

.tldr-text {
  flex: 1;
  word-break: keep-all;
}

@media (max-width: 600px) {
  .detail-tldr-box {
    padding: 14px 14px;
    margin: 14px 0 18px 0;
    border-radius: 12px;
  }
  .tldr-title {
    font-size: 0.86rem;
  }
  .tldr-list li {
    font-size: 0.83rem;
    gap: 8px;
  }
}

/* 🌐 상단 내비게이션 바 사이트 공유 버튼 스타일 */
.nav-share-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-share-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
  color: #56c8ff;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* 🔖 상단 내비게이션 바 북마크 서클 아이콘 버튼 스타일 */
.nav-bookmark-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bookmark-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fbbf24;
}

.nav-bookmark-btn.active {
  background: rgba(251, 191, 36, 0.18) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.3) !important;
}

.bookmark-count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #fbbf24;
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

/* 카드 상단 오른쪽 오버레이 버튼 그룹 (북마크 + 공유) */
.card-actions-group {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-action-btn {
  background: rgba(10, 12, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
}

.card-bookmark-btn:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  transform: scale(1.12);
}

.card-bookmark-btn.active {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.card-share-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.6);
  color: #a78bfa;
  transform: scale(1.12);
}

.share-bookmark-btn.active {
  background: rgba(251, 191, 36, 0.18) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  color: #fbbf24 !important;
}

.post-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title-link:hover {
  color: #60a5fa;
}

/* 토스트 알림 (Toast Notification) */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(19, 23, 34, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 📸 요약 카드뉴스 템플릿 (자연스러운 가변 높이 세련된 네온 레이아웃) */
.card-news-template {
  width: 700px;
  height: auto;
  background: linear-gradient(155deg, #0b0f19 0%, #111827 50%, #0d1322 100%);
  color: #ffffff;
  padding: 36px 38px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 2px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: -9999;
}

.cnt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.cnt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
}

.cnt-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.cnt-brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.cnt-badge {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.cnt-title {
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: -0.3px;
}

.cnt-tldr-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cnt-tldr-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fbbf24;
}

.cnt-lightning-icon {
  font-size: 1.1rem;
  color: #fbbf24;
}

.cnt-tldr-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cnt-card-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #6366f1;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cnt-card-item:nth-child(2) {
  border-left-color: #8b5cf6;
}

.cnt-card-item:nth-child(3) {
  border-left-color: #ec4899;
}

.cnt-card-num {
  font-size: 0.85rem;
  font-weight: 900;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.18);
  padding: 3px 9px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cnt-card-item:nth-child(2) .cnt-card-num {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.18);
}

.cnt-card-item:nth-child(3) .cnt-card-num {
  color: #f472b6;
  background: rgba(236, 72, 153, 0.18);
}

.cnt-card-text {
  font-size: 0.96rem;
  line-height: 1.5;
  color: #f1f5f9;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: break-word;
  display: block;
}

.cnt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.cnt-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-weight: 700;
}

.cnt-cta-icon {
  font-size: 1.05rem;
}

.cnt-footer-right {
  color: #64748b;
  font-weight: 600;
}

.cnt-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-weight: 700;
}

.cnt-cta-icon {
  font-size: 1.05rem;
}

.cnt-footer-right {
  color: #64748b;
  font-weight: 600;
}

.detail-share-btn.share-card-btn:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

/* 📸 카드뉴스 전용 풀스크린 로딩 모달 */
.card-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.card-loading-box {
  background: #131722;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  padding: 32px 36px;
  text-align: center;
  max-width: 320px;
  width: 88%;
  box-sizing: border-box;
}

.card-loading-spinner {
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 16px;
  border-width: 3px;
  color: #818cf8 !important;
}

.card-loading-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.card-loading-sub {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* PWA Installation & Guidance Modal Styles */
.nav-install-btn {
  position: relative;
  transition: var(--transition-smooth);
}

.nav-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
}

.pwa-install-card {
  max-width: 440px !important;
  width: 90%;
  padding: 28px 24px !important;
  border-radius: 20px !important;
  background: var(--bg-secondary) !important;
  border: 1px solid rgba(20, 184, 166, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(20, 184, 166, 0.15) !important;
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.pwa-modal-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pwa-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.pwa-modal-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.pwa-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pwa-step-text strong {
  display: block;
  font-size: 0.93rem;
  color: #f3f4f6;
  margin-bottom: 2px;
}

.pwa-step-text p {
  font-size: 0.84rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.45;
}

.pwa-confirm-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%) !important;
  border: none !important;
}

