/* =====================================================================
   ATG Content Calendar — Styles
   All Time Golf · Orewa · Hibiscus Coast
   ===================================================================== */

:root {
  --fairway: #008e56;
  --fairway-dark: #006b40;
  --fairway-darker: #004D2D;
  --fairway-light: #b8e0cd;
  --fairway-lighter: #e6f5ed;
  --partee: #FFB638;
  --partee-light: #FFE5B0;
  --partee-dark: #C88416;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f3;
  --bg-tertiary: #efefe9;
  --bg-fairway: var(--fairway-lighter);
  --bg-partee: #FFF5E0;
  --text-primary: #000000;
  --text-secondary: #4a4a4a;
  --text-tertiary: #888780;
  --text-fairway: var(--fairway-dark);
  --text-partee: var(--partee-dark);
  --border-tertiary: rgba(0,0,0,0.08);
  --border-secondary: rgba(0,0,0,0.15);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="dark"] {
  --bg-primary: #1f1f1d;
  --bg-secondary: #2a2a28;
  --bg-tertiary: #14140f;
  --bg-fairway: #04342C;
  --bg-partee: #3D2702;
  --text-primary: #f0efe8;
  --text-secondary: #c9c9c0;
  --text-tertiary: #888780;
  --text-fairway: #5DCAA5;
  --text-partee: #FAC775;
  --border-tertiary: rgba(255,255,255,0.1);
  --border-secondary: rgba(255,255,255,0.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Cabin', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}
.container { max-width: 1280px; margin: 0 auto; padding: 24px 24px 64px; }

/* ---- HEADER -------------------------------------------------------- */
.header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
  padding: 16px 20px; background: var(--fairway);
  border-radius: var(--radius-xl); color: white; box-shadow: var(--shadow-md);
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.header-logo { width: 56px; height: 56px; background: white; border-radius: var(--radius-lg); padding: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-logo img { width: 100%; height: 100%; object-fit: contain; }
h1 { font-family: 'Lilita One', sans-serif; font-size: 26px; font-weight: 400; margin: 0; letter-spacing: 0.02em; line-height: 1.1; }
.header-tagline { font-size: 13px; margin: 2px 0 0; opacity: 0.9; }
h2 { font-family: 'Lilita One', sans-serif; font-size: 20px; font-weight: 400; margin: 1.75rem 0 0.75rem; color: var(--text-fairway); letter-spacing: 0.01em; }
h3 { font-family: 'Lilita One', sans-serif; font-size: 16px; font-weight: 400; margin: 1rem 0 0.5rem; color: var(--text-fairway); }
.subtitle { font-size: 13px; color: var(--text-secondary); margin: 0; }

.theme-toggle {
  border: 1.5px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
  color: white; padding: 8px 14px; border-radius: var(--radius-md); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  font-family: inherit; font-weight: 500;
}
.theme-toggle:hover { background: rgba(255,255,255,0.2); }

/* ---- QUICK LINKS --------------------------------------------------- */
.quick-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.quick-link {
  background: var(--bg-primary); border: 1.5px solid var(--border-secondary);
  border-radius: 999px; padding: 6px 14px; font-size: 12px;
  text-decoration: none; color: var(--text-primary);
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; transition: all 0.15s;
  cursor: grab; user-select: none;
}
.quick-link:hover { background: var(--fairway); color: white; border-color: var(--fairway); }
.quick-link:active { cursor: grabbing; }
.quick-link i { font-size: 14px; }

/* ---- TABS ---------------------------------------------------------- */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; padding: 5px; background: var(--bg-secondary); border-radius: var(--radius-lg); flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.tab { flex: 1; min-width: 90px; font-size: 13px; padding: 10px 12px; border: none; background: transparent; cursor: pointer; border-radius: 6px; color: var(--text-secondary); font-family: inherit; font-weight: 600; transition: all 0.15s; }
.tab:hover { color: var(--text-primary); }
.tab.active { background: var(--fairway); color: white; box-shadow: var(--shadow-sm); }
.view { display: none; }
.view.active { display: block; }

/* ---- WEATHER + TRIGGERS -------------------------------------------- */
.top-strip { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 720px) { .top-strip { grid-template-columns: 1fr; } }

.weather-card {
  background: linear-gradient(135deg, var(--fairway) 0%, var(--fairway-dark) 100%);
  color: white; padding: 16px 18px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.weather-card::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,182,56,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.weather-loc { font-size: 11px; opacity: 0.85; margin: 0 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.weather-main { display: flex; align-items: center; gap: 14px; position: relative; }
.weather-temp { font-family: 'Lilita One', sans-serif; font-size: 36px; line-height: 1; margin: 0; }
.weather-icon-big { font-size: 38px; opacity: 0.95; }
.weather-desc { font-size: 13px; margin: 6px 0 0; opacity: 0.9; position: relative; font-weight: 500; }
.weather-rain { font-size: 12px; margin: 8px 0 0; padding: 6px 10px; background: rgba(255,255,255,0.18); border-radius: var(--radius-md); display: inline-block; position: relative; font-weight: 600; }
.weather-rain.high { background: var(--partee); color: var(--text-primary); }

.trigger-strip { background: var(--bg-primary); padding: 14px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-tertiary); box-shadow: var(--shadow-sm); }
.trigger-strip-title { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px; }
.trigger-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.trigger-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg-secondary); border-radius: var(--radius-md); border-left: 3px solid transparent; transition: all 0.15s; }
.trigger-card.active { border-left-color: var(--partee); background: var(--bg-partee); }
.trigger-card i { font-size: 18px; color: var(--text-tertiary); flex-shrink: 0; }
.trigger-card.active i { color: var(--text-partee); }
.trigger-title { font-size: 12px; font-weight: 600; margin: 0 0 1px; line-height: 1.3; }
.trigger-status { font-size: 11px; color: var(--text-tertiary); margin: 0; line-height: 1.3; }
.trigger-card.active .trigger-status { color: var(--text-partee); font-weight: 500; }

/* ---- WEEK LAYOUT — sticky sidebar + main --------------------------- */
.week-layout { display: flex; gap: 16px; align-items: flex-start; }
.week-sidebar { width: 168px; flex-shrink: 0; position: sticky; top: 16px; }
.week-main { flex: 1; min-width: 0; }

.week-nav { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; background: var(--bg-primary); border: 1px solid var(--border-tertiary); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.week-nav-title { font-family: 'Lilita One', sans-serif; font-size: 16px; font-weight: 400; margin: 0; color: var(--text-fairway); letter-spacing: 0.01em; line-height: 1.25; }
.week-nav-subtitle { font-size: 11px; color: var(--text-secondary); margin: 3px 0 0; font-weight: 500; }
.week-nav-btns { display: flex; flex-direction: column; gap: 6px; }
.week-nav-btn { border: 1.5px solid var(--border-secondary); background: var(--bg-primary); color: var(--text-primary); padding: 8px 12px; border-radius: var(--radius-md); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: inherit; font-weight: 600; width: 100%; }
.week-nav-btn:hover { background: var(--bg-secondary); }
.week-nav-btn.today-btn { background: var(--partee); color: var(--text-primary); border-color: var(--partee); }
.week-nav-btn.today-btn:hover { background: var(--partee-dark); color: white; }

@media (max-width: 880px) {
  .week-layout { flex-direction: column; }
  .week-sidebar { width: 100%; position: static; }
  .week-nav { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .week-nav-btns { flex-direction: row; width: auto; }
  .week-nav-btn { width: auto; }
}

/* ---- CARDS GRID ---------------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 4px; }

/* ---- EVENT CARDS --------------------------------------------------- */
.event-card {
  background: var(--bg-primary); border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-md); padding: 14px 16px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
}
.event-card.urgent { border-left: 4px solid var(--partee); }
.event-card-day { font-size: 11px; font-weight: 700; color: var(--text-fairway); text-transform: uppercase; letter-spacing: 0.4px; }
.event-card-title { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.3; }
.event-card-meta { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.5; flex: 1; }
.event-card-tag { font-size: 10px; padding: 3px 9px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; align-self: flex-start; }

/* ---- GOLF CARDS ---------------------------------------------------- */
.golf-card {
  background: var(--bg-primary); border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-md); padding: 0;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
}
.golf-card:hover { border-color: var(--fairway); box-shadow: var(--shadow-md); }
.golf-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

/* Footer link buttons (Tournament / Course / GSPro) */
.golf-card-footer { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border-tertiary); margin-top: auto; }
.golf-card-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 6px; text-decoration: none; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.golf-card-btn-tournament { background: var(--bg-fairway); color: var(--text-fairway); border: 1px solid var(--fairway-light); }
.golf-card-btn-tournament:hover { background: var(--fairway); color: white; border-color: var(--fairway); }
.golf-card-btn-venue { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-tertiary); }
.golf-card-btn-venue:hover { background: var(--bg-fairway); color: var(--text-fairway); border-color: var(--fairway); }
.golf-card-btn-gspro { background: var(--bg-partee); color: var(--text-partee); border: 1px solid var(--partee); }
.golf-card-btn-gspro:hover { background: var(--partee); color: #000; }

/* Tour badge + meta */
.golf-card-name { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.3; }
.golf-card-meta { font-size: 12px; color: var(--text-secondary); margin: 0; }
.golf-tour { font-size: 10px; padding: 3px 9px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; align-self: flex-start; }
.golf-tour.pga   { background: #EEEDFE; color: #3C3489; }
.golf-tour.lpga  { background: #FBEAF0; color: #72243E; }
.golf-tour.dpw   { background: var(--bg-fairway); color: var(--text-fairway); }
.golf-tour.major { background: var(--bg-partee); color: var(--text-partee); }
[data-theme="dark"] .golf-tour.pga  { background: #26215C; color: #CECBF6; }
[data-theme="dark"] .golf-tour.lpga { background: #4B1528; color: #F4C0D1; }

/* ---- BOTTOM TICK ROW (golf cards) ---------------------------------- */
/* Three equal-width segments across the card bottom */
.tick-row-bottom {
  display: flex;
  border-top: 1px solid var(--border-tertiary);
  flex-shrink: 0;
}
.tick-overdue-stripe { height: 3px; background: #F5B942; display: none; }
.tick-btn-bottom {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 6px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; border: none; border-right: 1px solid var(--border-tertiary);
  background: var(--bg-secondary); color: var(--text-tertiary);
  transition: all 0.15s; font-family: inherit;
}
.tick-btn-bottom:last-child { border-right: none; }
.tick-btn-bottom i { font-size: 14px; }
.tick-btn-bottom:hover { background: var(--bg-tertiary); color: var(--text-secondary); }
.tick-btn-bottom.tick-on.tick-created   { background: #16A34A; color: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,0.15); }
.tick-btn-bottom.tick-on.tick-scheduled { background: #2563EB; color: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,0.15); }
.tick-btn-bottom.tick-on.tick-ignored   { background: #6B7280; color: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,0.15); }
[data-theme="dark"] .tick-btn-bottom.tick-on.tick-created   { background: #15803D; }
[data-theme="dark"] .tick-btn-bottom.tick-on.tick-scheduled { background: #1D4ED8; }

/* Golf card border reflects tick state */
.golf-card.state-created   { border-color: #16A34A !important; border-width: 2px !important; }
.golf-card.state-scheduled { border-color: #2563EB !important; border-width: 2px !important; }
.golf-card.state-ignored   { border-color: var(--border-secondary) !important; border-width: 2px !important; opacity: 0.4; }

/* ---- PHASE SUB-CARDS (Current Campaign Preparation) ---------------- */
.leadup-active-card { background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.leadup-active-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; gap: 8px; border-bottom: 1px solid var(--border-tertiary); }
.leadup-active-card-name { font-size: 14px; font-weight: 700; margin: 0; }
.leadup-active-card-days { font-size: 12px; color: var(--partee); font-weight: 700; white-space: nowrap; }
.leadup-active-card-phases { padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 7px; }
.phase-subcard { border: 1.5px solid var(--border-tertiary); border-radius: var(--radius-md); overflow: hidden; transition: opacity 0.2s, border-color 0.2s; }
.phase-subcard.phase-current  { border-color: var(--partee); }
.phase-subcard.phase-overdue  { border-color: #DC2626; }
.phase-subcard.phase-future   { padding: 8px 12px; opacity: 0.38; border-style: dashed; }
.phase-subcard-top { padding: 10px 12px 8px; }
.phase-subcard-when { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); margin-bottom: 5px; }
.phase-subcard-when.is-overdue  { color: #DC2626; }
.phase-subcard-when.is-current  { color: var(--partee-dark); }
.phase-subcard-action { font-size: 13px; line-height: 1.4; color: var(--text-primary); margin: 0; }
.phase-subcard.state-created   { border-color: #16A34A !important; }
.phase-subcard.state-scheduled { border-color: #2563EB !important; }
.phase-subcard.state-ignored   { border-color: var(--border-secondary) !important; opacity: 0.35 !important; }

/* ---- TICK STATE LEGEND (in week sidebar) --------------------------- */
.tick-legend {
  margin-top: 12px; padding: 10px 12px;
  background: var(--bg-secondary); border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-md); font-size: 10px;
}
.tick-legend-title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); margin: 0 0 7px; font-size: 9px; }
.tick-legend-item { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--text-secondary); font-weight: 600; }
.tick-legend-item:last-child { margin-bottom: 0; }
.tick-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.tick-legend-dot.created   { background: #16A34A; }
.tick-legend-dot.scheduled { background: #2563EB; }
.tick-legend-dot.ignored   { background: #6B7280; }

/* ---- INLINE ACTION TICK BUTTONS (campaign/leadup cards) ------------ */
.action-ticks { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 5px; padding-left: 84px; }
.tick-btn { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--border-tertiary); background: var(--bg-secondary); color: var(--text-tertiary); cursor: pointer; transition: all 0.12s; white-space: nowrap; line-height: 1.2; }
.tick-btn .tick-label { display: none; }
.tick-btn.tick-on .tick-label { display: inline; }
.tick-btn:hover { border-color: var(--text-secondary); color: var(--text-primary); background: var(--bg-tertiary); }
.tick-btn i { font-size: 11px; }
.tick-created.tick-on   { background: #e6f5ed; color: #006b40; border-color: #5cb87a; }
.tick-scheduled.tick-on { background: #E6F1FB; color: #0C447C; border-color: #6baed6; }
.tick-ignored.tick-on   { background: var(--bg-secondary); color: var(--text-tertiary); border-color: var(--border-secondary); opacity: 0.6; }
.overdue-tag { font-size: 10px; font-weight: 800; background: #FFF5E0; color: #854F0B; padding: 2px 8px; border-radius: 999px; border: 1px solid #F5B942; }
[data-theme="dark"] .tick-created.tick-on   { background: #0d2e1a; color: #5cb87a; }
[data-theme="dark"] .tick-scheduled.tick-on { background: #0a1e34; color: #6baed6; }

/* ---- DRAGGABLE WEEK SECTIONS --------------------------------------- */
.week-section { margin-top: 24px; }
.week-section-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.week-section-header > div { flex: 1; min-width: 0; }
.week-section-header h2 { margin: 0; }
.week-section-header .subtitle { margin: 2px 0 8px; }
.drag-handle { color: var(--text-tertiary); font-size: 20px; cursor: grab; opacity: 0.35; transition: opacity 0.15s; padding: 4px; margin-top: 2px; flex-shrink: 0; }
.drag-handle:hover { opacity: 1; }
.week-section.sortable-ghost { opacity: 0.35; }
.week-section.sortable-drag { cursor: grabbing; }

/* ---- LEAD-UP MINI -------------------------------------------------- */
.leadup-row-mini { padding: 14px 16px; background: var(--bg-primary); border: 1px solid var(--border-tertiary); border-radius: var(--radius-md); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.leadup-mini-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.leadup-mini-name { font-size: 14px; font-weight: 600; margin: 0; }
.leadup-mini-when { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.leadup-mini-action { font-size: 13px; color: var(--text-fairway); background: var(--bg-fairway); padding: 9px 12px; border-radius: var(--radius-md); margin: 0; font-weight: 500; line-height: 1.4; }

.progress-track { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11px; }
.progress-step { flex: 1; text-align: center; padding: 6px 4px; background: var(--bg-secondary); border-radius: 4px; color: var(--text-tertiary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-step.done { background: var(--bg-fairway); color: var(--text-fairway); }
.progress-step.now  { background: var(--partee); color: var(--text-primary); font-weight: 700; box-shadow: 0 2px 6px rgba(255,182,56,0.4); }

/* ---- 3-WEEK PREVIEW ------------------------------------------------ */
.preview-section { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 16px 20px; margin-top: 24px; border: 1px solid var(--border-tertiary); }
.preview-section-title { font-family: 'Lilita One', sans-serif; font-size: 16px; color: var(--text-fairway); margin: 0 0 12px; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.preview-section-title i { font-size: 18px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .preview-grid { grid-template-columns: 1fr; } }
.preview-card { background: var(--bg-primary); border-radius: var(--radius-md); padding: 12px 14px; border: 1px solid var(--border-tertiary); }
.preview-card-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); margin: 0 0 6px; }
.prepare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.prepare-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 8px 10px; border-radius: var(--radius-md); }
.prepare-item.type-edm    { background: #E6F1FB; }
.prepare-item.type-social { background: var(--bg-fairway); }
.prepare-item.type-ad     { background: #EEEDFE; }
.prepare-item.type-action { background: var(--bg-partee); }
[data-theme="dark"] .prepare-item.type-edm    { background: #162536; }
[data-theme="dark"] .prepare-item.type-social { background: #04342C; }
[data-theme="dark"] .prepare-item.type-ad     { background: #1E1A40; }
[data-theme="dark"] .prepare-item.type-action { background: #3D2702; }
.prepare-item i { flex-shrink: 0; margin-top: 2px; font-size: 15px; }
.prepare-item.type-edm    i { color: #0C447C; }
.prepare-item.type-social i { color: var(--fairway-dark); }
.prepare-item.type-ad     i { color: #3C3489; }
.prepare-item.type-action i { color: var(--partee-dark); }

/* ---- FILTERS ------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.filter { font-size: 13px; padding: 7px 14px; cursor: pointer; background: var(--bg-primary); border: 1.5px solid var(--border-secondary); border-radius: 999px; color: var(--text-primary); font-family: inherit; font-weight: 500; transition: all 0.15s; }
.filter:hover { background: var(--bg-secondary); }
.filter.active { background: var(--fairway); color: white; border-color: var(--fairway); }

/* ---- CAMPAIGN CARDS (Campaigns tab) -------------------------------- */
.leadup-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.leadup-card { padding: 16px 20px; background: var(--bg-primary); border: 1px solid var(--border-tertiary); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.leadup-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.leadup-name { font-size: 16px; font-weight: 700; margin: 0; }
.leadup-profile { font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.4px; }
.leadup-phases { display: grid; gap: 5px; margin-top: 12px; }
.leadup-phase { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 12px; background: var(--bg-secondary); border-radius: var(--radius-md); align-items: flex-start; }
.leadup-phase-label { font-size: 11px; font-weight: 700; color: var(--text-fairway); line-height: 1.4; }
.leadup-phase-action { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.phase-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 3px; }
.phase-badge.edm    { background: #E6F1FB; color: #0C447C; }
.phase-badge.social { background: var(--bg-fairway); color: var(--fairway-dark); }
.phase-badge.ad     { background: #EEEDFE; color: #3C3489; }
.phase-badge.action { background: var(--bg-partee); color: var(--partee-dark); }
[data-theme="dark"] .phase-badge.edm    { background: #162536; color: #7EBEF0; }
[data-theme="dark"] .phase-badge.social { background: #04342C; color: #5DCAA5; }
[data-theme="dark"] .phase-badge.ad     { background: #1E1A40; color: #CECBF6; }
[data-theme="dark"] .phase-badge.action { background: #3D2702; color: #FAC775; }

/* ---- CAMPAIGN STATUS BADGES ---------------------------------------- */
.campaign-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; white-space: nowrap;
}
.campaign-status.active   { background: var(--partee); color: var(--text-primary); }
.campaign-status.soon     { background: #E6F1FB; color: #0C447C; }
.campaign-status.upcoming { background: var(--bg-secondary); color: var(--text-tertiary); border: 1px solid var(--border-tertiary); }
[data-theme="dark"] .campaign-status.soon { background: #0a1e34; color: #6baed6; }

/* Task type pills on campaign phases */
.task-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 3px; }
.task-pill.social { background: var(--bg-fairway); color: var(--fairway-dark); }
.task-pill.edm    { background: #E6F1FB; color: #0C447C; }
.task-pill.ad     { background: #EEEDFE; color: #3C3489; }
.task-pill.action { background: var(--bg-partee); color: var(--partee-dark); }
[data-theme="dark"] .task-pill.social { background: #04342C; color: #5DCAA5; }
[data-theme="dark"] .task-pill.edm    { background: #162536; color: #7EBEF0; }
[data-theme="dark"] .task-pill.ad     { background: #1E1A40; color: #CECBF6; }
[data-theme="dark"] .task-pill.action { background: #3D2702; color: #FAC775; }

/* ---- YEAR GRID ----------------------------------------------------- */
.year-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.month-card { background: var(--bg-primary); border: 1px solid var(--border-tertiary); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.month-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-fairway); }
.month-name { font-family: 'Lilita One', sans-serif; font-size: 18px; font-weight: 400; margin: 0; color: var(--text-fairway); letter-spacing: 0.02em; }
.month-tag { font-size: 11px; color: var(--text-secondary); text-align: right; font-weight: 500; }
.month-event { padding: 9px 0; border-bottom: 1px solid var(--border-tertiary); display: flex; gap: 10px; align-items: flex-start; }
.month-event:last-child { border-bottom: none; }
.event-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.event-title { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.event-meta  { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.heat-low  { color: var(--text-tertiary); }
.heat-mid  { color: var(--fairway); }
.heat-high { color: var(--text-partee); font-weight: 600; }
.heat-peak { color: #A32D2D; font-weight: 700; }

/* ---- STRATEGY ------------------------------------------------------ */
.strategy-list { display: grid; gap: 12px; }
.strategy-card { padding: 18px 22px; background: var(--bg-primary); border: 1px solid var(--border-tertiary); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border-left: 4px solid var(--fairway); }
.strategy-card.warn { border-left-color: var(--partee); }
.strategy-title { font-family: 'Lilita One', sans-serif; font-size: 17px; font-weight: 400; margin: 0 0 8px; color: var(--text-fairway); letter-spacing: 0.01em; }
.strategy-card.warn .strategy-title { color: var(--text-partee); }
.strategy-body { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.65; }

/* ---- ADD CUSTOM EVENT MODAL ---------------------------------------- */
.add-event-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px;
  background: var(--partee); color: var(--text-primary); border: none;
  border-radius: var(--radius-md); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-bottom: 16px; transition: all 0.15s;
}
.add-event-btn:hover { background: var(--partee-dark); color: white; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-primary); border-radius: var(--radius-xl); padding: 28px; max-width: 440px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.modal h3 { margin: 0 0 20px; font-size: 18px; color: var(--text-fairway); }
.modal label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; }
.modal input, .modal textarea, .modal select {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border-secondary);
  border-radius: var(--radius-md); font-family: inherit; font-size: 14px;
  background: var(--bg-secondary); color: var(--text-primary); margin-bottom: 14px;
}
.modal textarea { height: 80px; resize: vertical; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; }
.modal-btn { padding: 9px 20px; border-radius: var(--radius-md); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; border: 1.5px solid var(--border-secondary); }
.modal-btn.primary { background: var(--fairway); color: white; border-color: var(--fairway); }
.modal-btn.primary:hover { background: var(--fairway-dark); }
.modal-btn:hover { background: var(--bg-secondary); }

/* ---- CAMPAIGN CREATOR ---------------------------------------------- */
.campaigns-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 1rem; flex-wrap: wrap; }
.campaigns-toolbar .filters { margin-bottom: 0; flex: 1; }
.new-campaign-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--fairway); color: white; border: none; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0; transition: background 0.15s; }
.new-campaign-btn:hover { background: var(--fairway-dark); }
.campaign-modal { max-width: 580px !important; }
.campaign-modal h3 { display: flex; align-items: center; justify-content: space-between; }
.cc-phases-header { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.cc-phases-header label { margin: 0; }
.cc-add-phase-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--bg-secondary); border: 1.5px solid var(--border-secondary); border-radius: var(--radius-md); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--text-secondary); transition: background 0.15s; }
.cc-add-phase-btn:hover { background: var(--bg-tertiary); }
.cc-phase-row { background: var(--bg-secondary); border: 1px solid var(--border-tertiary); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 8px; }
.cc-phase-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cc-phase-type { flex: 0 0 120px; margin-bottom: 0 !important; padding: 7px 10px !important; font-size: 13px !important; }
.cc-phase-days { flex: 0 0 70px; margin-bottom: 0 !important; padding: 7px 10px !important; font-size: 13px !important; text-align: center; }
.cc-days-label { font-size: 12px; color: var(--text-tertiary); flex: 1; }
.cc-phase-remove { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--text-tertiary); border-radius: 6px; font-size: 15px; flex-shrink: 0; transition: all 0.15s; }
.cc-phase-remove:hover { background: #FEECEC; color: #DC2626; }
.cc-phase-action { width: 100%; box-sizing: border-box; margin-bottom: 0 !important; }
.leadup-card-actions { display: flex; gap: 8px; padding: 10px 16px 12px; border-top: 1px solid var(--border-tertiary); margin-top: 6px; }
.leadup-card-action-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: var(--radius-md); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; border: 1.5px solid var(--border-secondary); background: var(--bg-secondary); color: var(--text-secondary); transition: all 0.15s; }
.leadup-card-action-btn:hover { background: var(--bg-tertiary); }
.leadup-card-action-btn.delete:hover { background: #FEECEC; color: #DC2626; border-color: #DC2626; }
.task-pill.reel { background: #FCE7F3; color: #9D174D; }
[data-theme="dark"] .task-pill.reel { background: #3D0A24; color: #F9A8D4; }

/* ---- UTILITY ------------------------------------------------------- */
.rule-box { margin-top: 1.5rem; padding: 16px 20px; background: var(--bg-fairway); border-radius: var(--radius-lg); border-left: 4px solid var(--fairway); }
.rule-title { font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--text-fairway); }
.rule-body  { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.empty-state { padding: 32px 16px; text-align: center; color: var(--text-tertiary); font-size: 13px; background: var(--bg-secondary); border-radius: var(--radius-md); }
.legend { margin-top: 1.5rem; padding: 14px 18px; background: var(--bg-secondary); border-radius: var(--radius-lg); }
.legend-title { font-size: 11px; color: var(--text-tertiary); margin: 0 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.legend-items { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-tertiary); font-size: 12px; color: var(--text-tertiary); text-align: center; line-height: 1.6; }
.footer a { color: var(--text-fairway); text-decoration: none; font-weight: 600; }

/* ---- MOBILE -------------------------------------------------------- */
@media (max-width: 720px) {
  .container { padding: 16px 14px 48px; }
  h1 { font-size: 20px; }
  .header { padding: 14px 16px; }
  .header-logo { width: 48px; height: 48px; }
  .tab { min-width: auto; padding: 8px 8px; font-size: 12px; }
  .week-nav-btn { padding: 6px 10px; font-size: 12px; }
  .progress-step { font-size: 10px; padding: 5px 3px; }
  .leadup-phase { grid-template-columns: 1fr; gap: 4px; }
  .cards-grid { grid-template-columns: 1fr; }
}
