/* Overview Page Styles */

.page-header {
  margin-bottom: var(--space-2xl);
}

.page-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--color-mid);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.metric-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.metric-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.metric-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-mid);
  margin-bottom: var(--space-md);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-variant-numeric: tabular-nums;
}

.metric-change {
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.metric-change.positive {
  color: var(--color-success);
}

.metric-change.negative {
  color: var(--color-error);
}

.metric-change.neutral {
  color: var(--color-mid);
}

.metric-subtitle {
  font-size: var(--text-sm);
  color: var(--color-mid);
}

/* Venture Cards Grid */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.venture-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.venture-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.venture-card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.venture-badge {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.venture-stage-badge {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-right: var(--space-sm);
}

.venture-stage-badge.cohort-live,
.venture-stage-badge.cohort_live {
  background: #e8f5ee;
  color: #2d6a4f;
}

.venture-stage-badge.pilot {
  background: #fef3e2;
  color: #92610a;
}

.venture-stage-badge.testing {
  background: #fde8e5;
  color: #8b3025;
}

.venture-stage-badge.active {
  background: #e8f5ee;
  color: #2d6a4f;
}

.venture-stage-badge.concept {
  background: var(--color-code-bg);
  color: var(--color-mid);
}

.venture-stage-badge.paused {
  background: var(--color-code-bg);
  color: var(--color-mid);
}

@media (prefers-color-scheme: dark) {
  .venture-stage-badge.cohort-live,
  .venture-stage-badge.cohort_live,
  .venture-stage-badge.active {
    background: rgba(82, 183, 136, 0.15);
    color: var(--color-success);
  }
  .venture-stage-badge.pilot {
    background: rgba(212, 148, 63, 0.15);
    color: var(--color-warning);
  }
  .venture-stage-badge.testing {
    background: rgba(212, 100, 90, 0.15);
    color: var(--color-error);
  }
}

:root[data-theme="dark"] .venture-stage-badge.cohort-live,
:root[data-theme="dark"] .venture-stage-badge.cohort_live,
:root[data-theme="dark"] .venture-stage-badge.active {
  background: rgba(82, 183, 136, 0.15);
  color: var(--color-success);
}
:root[data-theme="dark"] .venture-stage-badge.pilot {
  background: rgba(212, 148, 63, 0.15);
  color: var(--color-warning);
}
:root[data-theme="dark"] .venture-stage-badge.testing {
  background: rgba(212, 100, 90, 0.15);
  color: var(--color-error);
}

.venture-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.venture-category {
  font-size: var(--text-sm);
  color: var(--color-mid);
}

.venture-body {
  flex: 1;
  margin-bottom: var(--space-md);
}

.venture-health {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  padding: var(--space-md) 0;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
}

.health-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  flex-shrink: 0;
}

.health-ring.strong {
  background: rgba(64, 145, 108, 0.15);
  color: var(--color-success);
  border: 2px solid var(--color-success);
}

.health-ring.steady {
  background: rgba(138, 133, 120, 0.15);
  color: var(--color-mid);
  border: 2px solid var(--color-mid);
}

.health-ring.watch {
  background: rgba(193, 127, 62, 0.15);
  color: var(--color-warning);
  border: 2px solid var(--color-warning);
}

.health-ring.critical {
  background: rgba(180, 70, 54, 0.15);
  color: var(--color-error);
  border: 2px solid var(--color-error);
}

.health-info {
  flex: 1;
}

.health-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-xs);
}

.health-status {
  font-size: var(--text-sm);
  font-weight: 600;
}

.venture-revenue {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--color-paper-alt);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.revenue-item {
  flex: 1;
}

.revenue-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-xs);
}

.revenue-value {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.revenue-growth {
  font-weight: 600;
  color: var(--color-success);
}

.venture-next {
  font-size: var(--text-sm);
  padding: var(--space-md);
  background: var(--color-paper-alt);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.venture-next-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-xs);
}

.venture-next-text {
  font-weight: 600;
  color: var(--color-ink);
}

.venture-footer {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
}

.venture-link {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper-alt);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.venture-link:hover {
  background: var(--color-border);
}

/* Actions List */
.actions-list {
  list-style: none;
}

.action-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.action-item:last-child {
  border-bottom: none;
}

.action-priority-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.action-priority-indicator.critical { background: var(--color-error); }
.action-priority-indicator.high { background: var(--color-warning); }
.action-priority-indicator.medium { background: var(--color-mid); }
.action-priority-indicator.low { background: var(--color-border); }

.action-content {
  flex: 1;
}

.action-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
}

.action-detail {
  font-size: var(--text-sm);
  color: var(--color-mid);
  margin-bottom: var(--space-sm);
}

.action-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-mid);
}

.action-cta {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.action-cta:hover {
  background: var(--color-accent-light);
}

/* Revenue Legend */
.revenue-legend {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.revenue-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

.revenue-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Activity Feed */
.activity-feed {
  list-style: none;
}

.activity-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

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

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: var(--text-sm);
}

.activity-icon.donation { background: rgba(64, 145, 108, 0.15); color: var(--color-success); }
.activity-icon.submission { background: rgba(193, 127, 62, 0.15); color: var(--color-warning); }
.activity-icon.milestone { background: rgba(45, 106, 79, 0.15); color: var(--color-accent); }

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.activity-detail {
  font-size: var(--text-sm);
  color: var(--color-mid);
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--color-mid);
  margin-top: var(--space-sm);
}

/* Donor Cards */
.donor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.donor-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.donor-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.donor-org {
  font-size: var(--text-sm);
  color: var(--color-mid);
  margin-bottom: var(--space-md);
}

.donor-stage-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  margin-bottom: var(--space-md);
}

.donor-amount {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-md);
  padding: var(--space-md) 0;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  text-align: center;
}

.donor-action {
  font-size: var(--text-sm);
  color: var(--color-mid);
}

/* Website Stats */
.website-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.website-stat-card {
  background: var(--color-paper-alt);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.website-domain {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  word-break: break-all;
}

.website-visitors {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-xs);
}

.website-trend {
  font-size: var(--text-sm);
  color: var(--color-success);
  font-weight: 600;
}

/* Submissions Grid */
.submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.submission-type-card {
  background: var(--color-paper-alt);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.submission-type-name {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.submission-count {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ventures-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .donor-cards-grid {
    grid-template-columns: 1fr;
  }

  .website-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

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

  .page-title {
    font-size: var(--text-2xl);
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .website-stats-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .submissions-grid {
    grid-template-columns: 1fr;
  }

  .action-meta {
    flex-direction: column;
  }
}
