/* =============================================================================
   MOD Command Center — styles.css
   March Or Die internal tool stylesheet
   ============================================================================= */

/* 1. RESET
   ============================================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. CSS VARIABLES
   ============================================================================= */
:root {
  --black:       #0d0d0d;   /* page background */
  --surface:     #1e1e1e;   /* cards / elevated surfaces */
  --border:      #2a2a2a;   /* borders / dividers */
  --off-white:   #f0ede8;   /* primary text */
  --gray:        #888;      /* muted text */
  --gray-light:  #bbb;      /* secondary text */
  --orange:      #c85418;   /* accent */
  --orange-h:    #e06020;   /* accent hover */
  --green:       #52b788;   /* positive / published */
  --red:         #e05252;   /* negative / error */
}

[data-theme="light"] {
  --black:       #f5f3f0;
  --surface:     #ffffff;
  --border:      #d9d5d0;
  --off-white:   #1a1a1a;
  --gray:        #666;
  --gray-light:  #444;
  --green:       #2d8a62;
  --red:         #c93c3c;
}

/* Light-mode overrides for hardcoded rgba/hex values */
[data-theme="light"] tr:hover td {
  background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .idea-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

[data-theme="light"] .kanban__col {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .skeleton-line {
  background: linear-gradient(90deg, var(--border) 25%, rgba(0, 0, 0, 0.06) 50%, var(--border) 75%);
  background-size: 200% 100%;
}

[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .confirm-overlay {
  background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .btn--green:hover {
  background-color: #238c5a;
}

/* Light-mode badge/tag text — darker for contrast on white */
[data-theme="light"] .badge--idea {
  color: #6b42b0;
}

[data-theme="light"] .badge--scripted {
  color: #2d8a62;
}

[data-theme="light"] .badge--recorded {
  color: #a08520;
}

[data-theme="light"] .badge--edited {
  color: #b83a3a;
}

[data-theme="light"] .tag--niche {
  color: #b05a20;
}

[data-theme="light"] .tag--format {
  color: #2d8a62;
}

[data-theme="light"] .tag--status {
  color: #6b42b0;
}

[data-theme="light"] .tag--interview {
  color: #3a66b5;
}

[data-theme="light"] .tag--attempts {
  color: #a08520;
}

/* 3. BASE STYLES
   ============================================================================= */
html {
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--off-white);
  font-family: 'Oxanium', sans-serif;
  line-height: 1.6;
}

body.theme-ready {
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.theme-ready .nav,
body.theme-ready .card,
body.theme-ready .idea-card,
body.theme-ready .modal,
body.theme-ready .guest-card,
body.theme-ready .kanban__col,
body.theme-ready input,
body.theme-ready select,
body.theme-ready textarea {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 4. TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6,
label,
th {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mono {
  font-family: 'Share Tech Mono', monospace;
}

/* 5. NAV BAR
   ============================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.nav__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--off-white);
}

.nav__tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge */
  gap: 0.25rem;
  flex: 1;
}

.nav__tabs::-webkit-scrollbar {
  display: none;               /* Chrome / Safari */
}

.nav__tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.75rem;
  height: 60px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__tab:hover {
  color: var(--gray-light);
}

.nav__tab--active {
  color: var(--off-white);
  border-bottom-color: var(--orange);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--off-white);
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gray);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* 6. LAYOUT
   ============================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.tab-content {
  display: none;
}

.tab-content--active {
  display: block;
}

/* 7. CARDS
   ============================================================================= */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.card--kpi {
  border-top: 3px solid var(--orange);
  text-align: center;
}

.card__value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  line-height: 1.2;
}

.card__label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__delta--up {
  color: var(--green);
}

.card__delta--down {
  color: var(--red);
}

/* 8. GRID HELPERS
   ============================================================================= */
.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 9. BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--orange);
  color: var(--off-white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--orange-h);
}

.btn--secondary {
  background-color: var(--border);
  color: var(--gray-light);
}

.btn--secondary:hover {
  background-color: var(--gray);
  color: var(--off-white);
}

.nav__tab:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* 10. TABLES
   ============================================================================= */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--gray);
  font-size: 0.85rem;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

/* 11. FORMS
   ============================================================================= */
input,
select,
textarea {
  background-color: var(--black);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--off-white);
  font-family: 'Oxanium', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* 12. STATUS BADGES
   ============================================================================= */
.badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  background-color: var(--border);
  color: var(--gray-light);
}

.badge--idea {
  background-color: rgba(138, 99, 210, 0.2);
  color: #b89fe8;
}

.badge--scripted {
  background-color: rgba(82, 183, 136, 0.15);
  color: #7ed4a8;
}

.badge--recorded {
  background-color: rgba(230, 190, 80, 0.15);
  color: #e6c84a;
}

.badge--edited {
  background-color: rgba(224, 82, 82, 0.15);
  color: #f08080;
}

.badge--published {
  background-color: rgba(82, 183, 136, 0.25);
  color: var(--green);
}

/* 14. IDEA CARD GRID
   ============================================================================= */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.idea-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.idea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--orange);
}

.idea-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.idea-card__hook {
  color: var(--gray-light);
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.idea-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* 15. TAGS
   ============================================================================= */
.tag {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

.tag--niche {
  background-color: rgba(200, 84, 24, 0.15);
  color: #e08050;
}

.tag--format {
  background-color: rgba(82, 183, 136, 0.15);
  color: #7ed4a8;
}

.tag--status {
  background-color: rgba(138, 99, 210, 0.15);
  color: #b89fe8;
}

/* 16. MODAL OVERLAY
   ============================================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal__close:hover {
  color: var(--off-white);
}

.modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal__hook {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.modal__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal__field-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.modal__field-value {
  font-size: 0.9rem;
  color: var(--off-white);
}

.modal__section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.modal__why {
  background-color: var(--black);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.modal__why p {
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal__angles {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.modal__angles li {
  color: var(--gray-light);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.modal__angles li:last-child {
  border-bottom: none;
}

.modal__angles li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--orange);
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal__actions select {
  width: auto;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.modal__notes-fields {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.modal__notes-fields.hidden {
  display: none;
}

/* 17. UTILITIES
   ============================================================================= */
.text-muted {
  color: var(--gray);
}

/* 18. TOAST NOTIFICATIONS
   ============================================================================= */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  color: var(--off-white);
  font-size: 0.85rem;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateX(100%);
  animation: toast-in 0.3s ease forwards;
}

.toast--error {
  border-left-color: var(--red);
}

.toast--dismissing {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(100%); }
}

/* IDEA BANK HEADER & FILTERS
   ============================================================================= */
.idea-header {
  margin-bottom: 1.5rem;
}

.idea-header__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.idea-header__title {
  margin: 0;
}

.idea-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.idea-filters select {
  width: auto;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.idea-filters__search {
  width: 130px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  margin-left: auto;
}

.idea-filters__clear {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  font-family: 'Oxanium', sans-serif;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: none;
}

.idea-filters__clear--visible {
  display: inline-block;
}

.idea-filters__clear:hover {
  border-color: var(--gray);
  color: var(--off-white);
}

/* GENERATOR MODAL
   ============================================================================= */
.gen-modal {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.gen-modal__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gen-modal__label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 0.25rem;
  display: block;
}

.gen-modal__result {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.gen-modal__result-card {
  background-color: var(--black);
  border-radius: 6px;
  padding: 1rem;
  border-left: 3px solid var(--green);
}

.gen-modal__result-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.gen-modal__result-hook {
  color: var(--gray-light);
  font-size: 0.85rem;
  line-height: 1.4;
}

.gen-modal__result-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gen-modal__result-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.btn--green {
  background-color: var(--green);
}

.btn--green:hover {
  background-color: #45a578;
}

.btn--outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--gray-light);
}

.btn--outline:hover {
  border-color: var(--gray);
  color: var(--off-white);
}

/* CONFIRM DIALOG
   ============================================================================= */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.confirm-dialog {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 10px;
  max-width: 380px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.confirm-dialog__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.confirm-dialog__text {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.confirm-dialog__actions {
  display: flex;
  gap: 0.75rem;
}

.confirm-dialog__actions .btn {
  flex: 1;
  justify-content: center;
}

.btn--red {
  background-color: var(--red);
}

.btn--red:hover {
  background-color: #c74545;
}

/* SMART NOTES
   ============================================================================= */
.modal__notes-display {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal__notes-value {
  font-size: 0.9rem;
  color: var(--off-white);
  margin-bottom: 0.25rem;
}

.modal__notes-value a {
  color: var(--orange);
  text-decoration: none;
}

.modal__notes-value a:hover {
  text-decoration: underline;
}

.modal__notes-add {
  background: none;
  border: none;
  color: var(--gray);
  font-family: 'Oxanium', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-top: 1rem;
}

.modal__notes-add:hover {
  color: var(--orange);
}

.modal__notes-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* SKELETON LOADERS
   ============================================================================= */
.skeleton-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.skeleton-line {
  background: linear-gradient(90deg, var(--border) 25%, rgba(255,255,255,0.06) 50%, var(--border) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line--title {
  height: 1rem;
  width: 75%;
  margin-bottom: 0.75rem;
}

.skeleton-line--hook {
  height: 0.7rem;
  width: 100%;
  margin-bottom: 0.4rem;
}

.skeleton-line--hook-short {
  height: 0.7rem;
  width: 60%;
  margin-bottom: 0.75rem;
}

.skeleton-line--tag {
  display: inline-block;
  height: 1.1rem;
  width: 4rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

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

/* GUEST PIPELINE — KANBAN
   ============================================================================= */
.kanban {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  min-height: 400px;
}

.kanban__col {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kanban__col-header {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.kanban__col-count {
  color: var(--gray-light);
  font-family: 'Oxanium', sans-serif;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.guest-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guest-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.guest-card--dragging {
  opacity: 0.4;
}

.kanban__col--dragover {
  background-color: rgba(200, 84, 24, 0.08);
  border-color: var(--orange);
}

.guest-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.guest-card__meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.tag--interview {
  background-color: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

.tag--attempts {
  background-color: rgba(230, 190, 80, 0.15);
  color: #e6c84a;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.65rem;
}

.tag--timer {
  background-color: rgba(82, 183, 136, 0.15);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
}

.tag--timer-urgent {
  background-color: rgba(224, 82, 82, 0.15);
  color: var(--red);
}

/* EVERGREEN BLOGS — CARDS
   ============================================================================= */
.blog-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.blog-card--dragging {
  opacity: 0.4;
}

.blog-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.blog-card__meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

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

/* Quill editor overrides — match MOD dark theme */
.ql-toolbar.ql-snow {
  border-color: var(--border) !important;
  background-color: var(--surface);
}

.ql-container.ql-snow {
  border-color: var(--border) !important;
  background-color: var(--black);
  color: var(--off-white);
  font-family: 'Oxanium', sans-serif;
  font-size: 0.9rem;
}

.ql-editor.ql-blank::before {
  color: var(--gray) !important;
  font-style: normal !important;
}

.ql-snow .ql-stroke {
  stroke: var(--gray-light) !important;
}

.ql-snow .ql-fill {
  fill: var(--gray-light) !important;
}

.ql-snow .ql-picker-label {
  color: var(--gray-light) !important;
}

/* EPISODE TRACKER — CARDS
   ============================================================================= */
.episode-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.episode-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.episode-card--dragging {
  opacity: 0.4;
}

.episode-card__number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--orange);
  margin-bottom: 0.2rem;
}

.episode-card__guest {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 0.15rem;
}

.episode-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.episode-card__meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

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

/* GUEST PIPELINE — ARCHIVE TOGGLE
   ============================================================================= */
.guest-archive-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  font-family: 'Oxanium', sans-serif;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

.guest-archive-toggle:hover {
  border-color: var(--gray);
  color: var(--off-white);
}

.guest-archive {
  display: none;
  margin-top: 1rem;
}

.guest-archive--visible {
  display: block;
}

.guest-archive__section {
  margin-bottom: 1rem;
}

.guest-archive__label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.guest-archive .guest-card {
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.guest-archive .guest-card:hover {
  opacity: 0.8;
}

/* GUEST PIPELINE — HEADER
   ============================================================================= */
.guest-header {
  margin-bottom: 1.5rem;
}

.guest-header__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guest-header__title {
  margin: 0;
}

.guest-header__actions {
  display: flex;
  gap: 0.5rem;
}

/* GUEST PIPELINE — DETAIL MODAL EXTRAS
   ============================================================================= */
.activity-log {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.activity-log__add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.activity-log__add select {
  width: auto;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.activity-log__add input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.activity-log__add .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.activity-log__entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.activity-log__entry:last-child {
  border-bottom: none;
}

.activity-log__meta {
  color: var(--gray);
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}

.activity-log__text {
  color: var(--off-white);
  line-height: 1.4;
}

.activity-log__entry--system .activity-log__text {
  font-style: italic;
  color: var(--gray-light);
}

/* 19. RESPONSIVE — max-width: 768px
   ============================================================================= */
@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 0 0.75rem;
    gap: 0.75rem;
  }

  .nav__title {
    font-size: 1.1rem;
  }

  .container {
    padding: 1rem;
  }

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

  .modal-overlay {
    padding: 1rem;
  }

  .modal {
    padding: 1.5rem;
  }

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

  .modal__notes-fields {
    grid-template-columns: 1fr;
  }

  .idea-filters {
    gap: 0.4rem;
  }

  .idea-filters select {
    flex: 1;
    min-width: 0;
  }

  .idea-filters__search {
    width: 100%;
    margin-left: 0;
  }

  .gen-modal {
    padding: 1.5rem;
  }

  .gen-modal__form-grid {
    grid-template-columns: 1fr;
  }

  .gen-modal__result-actions {
    flex-direction: column;
  }

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

  .kanban__col {
    min-height: auto;
  }

  .guest-header__row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .activity-log__add {
    flex-wrap: wrap;
  }

  .activity-log__add input {
    width: 100%;
  }
}

/* ---- Tools Tab ---- */

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 600px;
}

.tool-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tool-card__desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

/* Clip results */

.clip-section {
  margin-bottom: 1.5rem;
}

.clip-section__header {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.clip-section__header--shorts { color: var(--orange); }
.clip-section__header--longform { color: var(--green); }

.clip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.clip-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}

.clip-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.clip-card__time {
  font-size: 0.75rem;
  white-space: nowrap;
}

.clip-card__opening {
  font-size: 0.8rem;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.clip-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.clip-tag {
  font-size: 0.72rem;
  background: var(--card);
  color: var(--gray);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
}
