/**
 * PE Cockpit — Site (Frontend) Stylesheet
 * ConsulentiWeb.com S.r.l.
 */

:root {
  --pe-site-primary: #1e40af;
  --pe-site-secondary: #475569;
  --pe-site-success: #15803d;
  --pe-site-warning: #b45309;
  --pe-site-danger: #b91c1c;
  --pe-site-indigo: #4338ca;
  --pe-site-bg: #f8fafc;
  --pe-site-card-bg: #ffffff;
  --pe-site-border: #e2e8f0;
}

.pecockpit-site-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Header */
.pe-site-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.pe-site-hero h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.pe-site-hero p {
  color: #94a3b8;
  margin-bottom: 0;
  font-size: 1rem;
}
.pe-site-hero .pe-site-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}
.pe-site-hero .pe-site-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.pe-site-hero .pe-site-nav-btn.active {
  background: #2563eb;
  border-color: #2563eb;
}

/* Metric Cards */
.pe-site-metric-card {
  background: #ffffff;
  border: 1px solid var(--pe-site-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.pe-site-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}
.pe-site-metric-val {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pe-site-metric-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

/* Pipeline Flow */
.pe-site-pipeline {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.pe-site-pipeline-col {
  flex: 1;
  min-width: 130px;
  background: #f8fafc;
  border: 1px solid var(--pe-site-border);
  border-radius: 8px;
  padding: 0.875rem;
  text-align: center;
}
.pe-site-pipeline-col .count {
  font-size: 1.5rem;
  font-weight: 700;
}
.pe-site-pipeline-col .title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Badges OOM */
.pe-badge-what {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600;
}
.pe-badge-how {
  background-color: #059669 !important;
  color: #ffffff !important;
  font-weight: 600;
}
.pe-badge-why {
  background-color: #d97706 !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Timeline Cards */
.pe-timeline-card {
  border-left: 4px solid #cbd5e1;
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-top: 1px solid var(--pe-site-border);
  border-right: 1px solid var(--pe-site-border);
  border-bottom: 1px solid var(--pe-site-border);
  transition: all 0.15s ease;
}
.pe-timeline-card:hover {
  background: #fdfdfe;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pe-timeline-card.pillar-what { border-left-color: #0284c7; }
.pe-timeline-card.pillar-how { border-left-color: #059669; }
.pe-timeline-card.pillar-why { border-left-color: #d97706; }

/* Filter Bar */
.pe-filter-bar {
  background: #ffffff;
  border: 1px solid var(--pe-site-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
