/* =====================================================
   BIRDPOST DRAFTS PAGE (drafts.css)
   ===================================================== */

.drafts-page-main {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.drafts-hero-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--bg-card, #121417);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

[data-theme="light"] .drafts-hero-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drafts-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Image 5: Yellow background fill with black design */
.drafts-header-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #facc15 !important;
  border: 1px solid #facc15 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000 !important;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.3) !important;
}

.drafts-header-icon-box svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

.drafts-header-text {
  display: flex;
  flex-direction: column;
}

.drafts-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drafts-page-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.drafts-count-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  background: #facc15 !important;
  color: #000000 !important;
  border: 1px solid #facc15 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 4px rgba(250, 204, 21, 0.25);
}

.drafts-page-subtitle {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.drafts-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Image 2: Yellow bubble button with bold black text */
.btn-drafts-new-post {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #facc15 !important;
  color: #000000 !important;
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.3) !important;
}

.btn-drafts-new-post svg {
  fill: #000000 !important;
  color: #000000 !important;
}

.btn-drafts-new-post span {
  color: #000000 !important;
  font-weight: 700 !important;
}

.btn-drafts-new-post:hover {
  background: #eab308 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.45) !important;
}

.drafts-count-badge.limit-reached {
  background: #facc15 !important;
  color: #000000 !important;
  border-color: #facc15 !important;
}

.btn-drafts-new-post.is-limit-reached {
  opacity: 0.75;
  background: #272d34 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.btn-drafts-new-post.is-limit-reached:hover {
  transform: none !important;
  background: #272d34 !important;
  box-shadow: none !important;
}

/* ── Filter Tabs ── */
.drafts-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--bg-main, #0b0e11);
}

[data-theme="light"] .drafts-filter-bar {
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drafts-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted, #94a3b8);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.drafts-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Image 3: Dark Mode Active Tab -> Background White, Text Black */
.drafts-tab-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.18) !important;
}

.drafts-tab-btn.active span,
.drafts-tab-btn.active .draft-tab-count {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* Light Mode Tabs */
[data-theme="light"] .drafts-tab-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #64748b;
}

[data-theme="light"] .drafts-tab-btn:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.22);
}

/* Image 3: Light Mode Active Tab -> Background Black, Text White (Opposite) */
[data-theme="light"] .drafts-tab-btn.active {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .drafts-tab-btn.active span,
[data-theme="light"] .drafts-tab-btn.active .draft-tab-count {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* ── Drafts Container ── */
.drafts-body-container {
  padding: 24px 32px 48px;
  flex: 1;
}

.drafts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Draft Card ── */
.draft-card {
  background: var(--bg-card, #121417);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .draft-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.draft-card:hover {
  border-color: rgba(0, 174, 236, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .draft-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.draft-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.draft-card-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Image 1: Category pill in both light and dark mode: yellow fill, black text */
.draft-cat-pill {
  font-size: 0.72rem;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 11px;
  border-radius: 999px;
  background: #facc15 !important;
  color: #000000 !important;
  border: 1px solid #facc15 !important;
}

[data-theme="light"] .draft-cat-pill {
  background: #facc15 !important;
  color: #000000 !important;
  border: 1px solid #facc15 !important;
}

.draft-time-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
}

.draft-word-badge {
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

[data-theme="light"] .draft-word-badge {
  background: rgba(0, 0, 0, 0.05);
}

.draft-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  line-height: 1.35;
  margin: 0 0 8px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.draft-card-title:hover {
  color: var(--accent, #00aeec);
}

.draft-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.draft-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.draft-tag-item {
  font-size: 0.76rem;
  color: var(--accent, #00aeec);
  background: rgba(0, 174, 236, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.draft-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

[data-theme="light"] .draft-card-actions {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.draft-action-btns-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Image 2: Continue Editing yellow bubble with bold black text */
.btn-card-edit-draft {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #facc15 !important;
  color: #000000 !important;
  border: none;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.25);
}

.btn-card-edit-draft svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

.btn-card-edit-draft span {
  color: #000000 !important;
  font-weight: 700 !important;
}

.btn-card-edit-draft:hover {
  background: #eab308 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35);
}

/* Image 3: Publish button blue filled color with white text (no tick icon) */
.btn-card-publish-draft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #1d9bf0 !important;
  border: 1px solid #1d9bf0 !important;
  color: #ffffff !important;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(29, 155, 240, 0.28);
}

.btn-card-publish-draft span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.btn-card-publish-draft:hover {
  background: #1a8cd8 !important;
  border-color: #1a8cd8 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 155, 240, 0.4);
}

/* Image 2: Black background fill color and white delete icon */
.btn-card-delete-draft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.btn-card-delete-draft svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.btn-card-delete-draft:hover {
  background: #18181b !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-card-delete-draft {
  background: #000000 !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-card-delete-draft svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-card-delete-draft:hover {
  background: #27272a !important;
  color: #ffffff !important;
}

/* ── Empty State ── */
.drafts-empty-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-card, #121417);
  border: 1.5px dashed var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 20px;
  margin: 12px 0;
}

[data-theme="light"] .drafts-empty-state {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

.drafts-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: rgba(250, 204, 21, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.drafts-empty-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 8px;
}

.drafts-empty-desc {
  font-size: 0.92rem;
  color: var(--text-muted, #94a3b8);
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* ── Sidebar Right Drafting Tips ── */
.drafts-tips-card {
  background: var(--bg-card, #141416);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

[data-theme="light"] .drafts-tips-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.drafts-tips-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drafts-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drafts-tips-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.45;
}

.drafts-tips-item svg {
  color: #facc15;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Numbered Accordion Drafting Tips (Image 1 Style) ── */
.numbered-tips-card {
  padding: 18px 20px 22px !important;
}

.numbered-tips-card .guidelines-numbered-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.numbered-tips-card .guideline-num-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  padding: 2px 0 4px;
}

.numbered-tips-card .guideline-num-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.numbered-tips-card .guideline-number {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: system-ui, -apple-system, sans-serif;
}

[data-theme="light"] .numbered-tips-card .guideline-number {
  color: #0f172a;
}

.numbered-tips-card .guideline-divider-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
}

[data-theme="light"] .numbered-tips-card .guideline-divider-line {
  background: #0f172a;
}

.numbered-tips-card .guideline-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 4px;
}

.numbered-tips-card .guideline-item-title {
  font-size: 14px;
  font-weight: 750;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

[data-theme="light"] .numbered-tips-card .guideline-item-title {
  color: #0f172a;
}

.numbered-tips-card .guideline-toggle-icon {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

[data-theme="light"] .numbered-tips-card .guideline-toggle-icon {
  color: #0f172a;
}

.numbered-tips-card .guideline-item-body {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 4px 0 6px 0;
  animation: guideExpand 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes guideExpand {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.numbered-tips-card .guideline-num-item:not(.active) .guideline-item-body {
  display: none;
}

/* Image 1 Left Accent Bar Beside Active Answer */
.numbered-tips-card .guideline-accent-bar {
  width: 3px;
  background: #facc15;
  border-radius: 2px;
  flex-shrink: 0;
}

[data-theme="light"] .numbered-tips-card .guideline-accent-bar {
  background: #0f172a;
}

.numbered-tips-card .guideline-item-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

[data-theme="light"] .numbered-tips-card .guideline-item-text {
  color: #475569;
}

/* ===================================================
   MOBILE-ONLY NAVIGATION & DRAWER ELEMENTS
   (Strictly hidden on desktop > 800px; active only on phone <= 800px)
   =================================================== */

.sidebar-drawer-top-bar {
  display: none !important;
}

.mobile-cat-scroll-bar {
  display: none !important;
}

.header-mobile-menu {
  display: none !important;
}