/* ===================================
   策略長 Duncan - 個人網站主樣式
   Dark Professional Theme
   =================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-card: #141c30;
  --bg-card-hover: #1a2440;
  --border-color: #1e2d4a;
  --border-light: #243354;

  --accent-blue: #1e40af;
  --accent-blue-light: #2563eb;
  --accent-gold: #d4af37;
  --accent-gold-light: #e8c85a;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0e1a;

  --nav-height: 72px;
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.6);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border-color);
  background: rgba(10, 14, 26, 0.95);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.nav-logo span {
  color: var(--accent-gold);
}

.nav-logo:hover {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--border-color);
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links .btn-nav-primary {
  background: var(--accent-gold);
  color: var(--text-inverse) !important;
  font-weight: 600;
  padding: 8px 20px;
}

.nav-links .btn-nav-primary:hover {
  background: var(--accent-gold-light);
  color: var(--text-inverse) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--border-color);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0a0e1a 0%, #0f1629 50%, #0a0e1a 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.05;
}

.hero h1 .name-highlight {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-card);
}

.social-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: var(--text-inverse);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--accent-gold);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* ===================================
   SECTIONS
   =================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-footer {
  text-align: center;
  margin-top: 56px;
}

/* ===================================
   ARTICLE CARDS
   =================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-img {
  transform: scale(1.03);
}

.article-card-img-wrap {
  overflow: hidden;
  height: 200px;
  background: var(--bg-secondary);
}

.article-card-body {
  padding: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.article-card-title {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: 'Playfair Display', serif;
}

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

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

.article-read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.article-card:hover .article-read-more {
  gap: 8px;
}

/* ===================================
   PODCAST SECTION
   =================================== */
.podcast-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.podcast-header {
  text-align: center;
  margin-bottom: 64px;
}

.podcast-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.podcast-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.podcast-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.podcast-card:hover::before {
  transform: scaleX(1);
}

.podcast-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.podcast-ep-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.podcast-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: 'Playfair Display', serif;
}

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

.podcast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.podcast-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.podcast-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.podcast-listen-btn:hover {
  gap: 12px;
}

.btn-podcast-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-podcast-main:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 32px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: block;
}

.footer-brand .footer-logo span {
  color: var(--accent-gold);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

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

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* ===================================
   BLOG PAGE
   =================================== */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.blog-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}

.blog-search {
  margin-left: auto;
  position: relative;
}

.blog-search input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px 8px 36px;
  border-radius: 20px;
  font-size: 0.85rem;
  width: 220px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.blog-search input:focus {
  outline: none;
  border-color: var(--accent-gold);
  width: 280px;
}

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

.blog-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ===================================
   SINGLE POST PAGE
   =================================== */
.post-header {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
  transition: var(--transition);
}

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

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.post-excerpt {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.post-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-cover {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.post-content-area {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.post-content h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.post-content h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 32px 0 14px;
}

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

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

.post-content blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 16px 20px;
  margin: 28px 0;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

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

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

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 4px;
  transition: var(--transition);
}

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

/* ===================================
   ADMIN STYLES
   =================================== */
.admin-body {
  background: #0d1117;
  min-height: 100vh;
}

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card);
}

.admin-login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.admin-login-logo h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-login-logo p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.admin-form-group input::placeholder {
  color: var(--text-muted);
}

.btn-admin-login {
  width: 100%;
  background: var(--accent-gold);
  color: var(--text-inverse);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
}

.btn-admin-login:hover {
  background: var(--accent-gold-light);
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 12px;
  display: none;
}

/* Admin Dashboard */
.admin-app {
  display: none;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.admin-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar-logo span {
  color: var(--accent-gold);
  font-size: 1.3rem;
}

.admin-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.admin-nav-item:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
}

.admin-nav-item .nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-color);
}

.admin-main {
  margin-left: 240px;
  min-height: 100vh;
  background: #0d1117;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}

.admin-content {
  padding: 32px;
}

/* Articles List */
.admin-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-article-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.admin-article-row:hover {
  border-color: var(--border-light);
}

.admin-article-info {
  flex: 1;
}

.admin-article-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: 'Playfair Display', serif;
}

.admin-article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

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

.btn-admin-sm {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.btn-admin-edit {
  color: var(--text-secondary);
}

.btn-admin-edit:hover {
  border-color: var(--accent-blue-light);
  color: var(--accent-blue-light);
}

.btn-admin-delete {
  color: var(--text-muted);
}

.btn-admin-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* Editor */
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

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

.btn-save-draft {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-save-draft:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-publish {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 7px;
  border: none;
  background: var(--accent-gold);
  color: var(--text-inverse);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-publish:hover {
  background: var(--accent-gold-light);
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.editor-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editor-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.editor-card h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

#quillEditor {
  min-height: 400px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.ql-toolbar {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px 8px 0 0 !important;
}

.ql-container {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0 0 8px 8px !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  min-height: 360px !important;
}

.ql-editor {
  color: var(--text-primary) !important;
  min-height: 360px !important;
  line-height: 1.8 !important;
}

.ql-snow .ql-stroke { stroke: var(--text-secondary) !important; }
.ql-snow .ql-fill { fill: var(--text-secondary) !important; }
.ql-snow .ql-picker { color: var(--text-secondary) !important; }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-badge.published {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.draft {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-hover);
  display: none;
  z-index: 9999;
  max-width: 360px;
}

.toast.show {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
}

.toast.success { border-left: 3px solid #4ade80; }
.toast.error { border-left: 3px solid #f87171; }

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

/* ===================================
   LOADING & EMPTY STATES
   =================================== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

.empty-state h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

/* ===================================
   MOBILE MENU
   =================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--text-primary);
  background: var(--border-color);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 60px 24px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn-primary, .hero-cta .btn-secondary {
    width: fit-content;
  }

  .section { padding: 64px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .podcast-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
  .editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .section-title { font-size: 1.6rem; }
}
