/**
 * PR337 — Lily Morning Briefing Engine — Styles
 * No emoji. Purple Lily bar: #7C3AED / #f5f0ff
 */

/* ── Card container ────────────────────────────────────────────────────── */
.morning-briefing-card {
  background: #ffffff;
  border-left: 4px solid #7C3AED;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  padding: 16px 20px 12px 20px;
  background-color: #f5f0ff;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.briefing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0d9f7;
}

.briefing-greeting {
  font-size: 15px;
  font-weight: 600;
  color: #3b1fa8;
}

.briefing-date {
  font-size: 12px;
  color: #6b7280;
  margin-left: 12px;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.briefing-section {
  margin-bottom: 10px;
  border-bottom: 1px solid #ede9fb;
  padding-bottom: 8px;
}

.briefing-section:last-of-type {
  border-bottom: none;
}

.briefing-section-label {
  font-weight: 600;
  font-size: 12px;
  color: #5b21b6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.briefing-section-arrow {
  font-size: 10px;
  color: #7C3AED;
  margin-left: 6px;
  transition: transform 0.15s ease;
}

.briefing-section-body {
  margin-top: 6px;
}

/* ── Items ─────────────────────────────────────────────────────────────── */
.briefing-item {
  display: flex;
  align-items: flex-start;
  padding: 5px 0;
  gap: 8px;
}

.briefing-item-link {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
}

.briefing-item-link:hover {
  color: #7C3AED;
  text-decoration: underline;
}

/* ── Priority dots ─────────────────────────────────────────────────────── */
.priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

/* 1 — safety/compliance — red */
.priority-dot-1 {
  background-color: #dc2626;
}

/* 2 — cash flow risk — orange */
.priority-dot-2 {
  background-color: #ea580c;
}

/* 3 — schedule blocker — amber */
.priority-dot-3 {
  background-color: #d97706;
}

/* 4 — financial alert — yellow */
.priority-dot-4 {
  background-color: #ca8a04;
}

/* 5 — operational — blue */
.priority-dot-5 {
  background-color: #2563eb;
}

/* 6 — informational — gray */
.priority-dot-6 {
  background-color: #9ca3af;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.briefing-footer {
  font-size: 11px;
  color: #7C3AED;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e0d9f7;
  font-style: italic;
}

/* ── Action row ────────────────────────────────────────────────────────── */
.briefing-action-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.briefing-action-row button {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 5px;
  border: 1px solid #c4b5fd;
  cursor: pointer;
  background: #ffffff;
  color: #5b21b6;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.briefing-action-row button:hover {
  background: #7C3AED;
  color: #ffffff;
  border-color: #7C3AED;
}

.briefing-btn-dismiss {
  background: #f9fafb !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
}

.briefing-btn-dismiss:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

/* ── Role tabs ─────────────────────────────────────────────────────────── */
.briefing-role-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.briefing-tab {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #c4b5fd;
  cursor: pointer;
  background: #ffffff;
  color: #5b21b6;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.briefing-tab:hover {
  background: #ede9fb;
}

.briefing-tab-active {
  background: #7C3AED;
  color: #ffffff;
  border-color: #7C3AED;
}

/* ── SMS indicator ─────────────────────────────────────────────────────── */
.briefing-sms-indicator {
  display: inline-block;
  font-size: 10px;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 2px 8px;
  margin-top: 6px;
  font-weight: 500;
}

/* ── Unavailable card ──────────────────────────────────────────────────── */
.briefing-card-unavailable {
  background: #f9fafb;
  border-left: 4px solid #d1d5db;
  background-color: #f9fafb;
}

.briefing-card-unavailable .briefing-header {
  color: #6b7280;
  border-bottom: none;
}

/* ── Panels container ──────────────────────────────────────────────────── */
.briefing-panels {
  width: 100%;
}

/* ── Responsive adjustments ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .morning-briefing-card {
    padding: 12px 14px 10px 14px;
  }

  .briefing-header {
    flex-direction: column;
    gap: 4px;
  }

  .briefing-action-row {
    flex-wrap: wrap;
  }
}
