/* /public/assets/css/global-activity.css (FULL REPLACEMENT) */

/* =========================================================
   Root variables
   ========================================================= */
:root{
  --gsa-bg: #F3F6FB;
  --gsa-card: #FFFFFF;
  --gsa-border: rgba(17, 24, 39, 0.08);
  --gsa-shadow: 0 14px 38px rgba(16, 24, 40, 0.10);
  --gsa-text: #1F2937;
  --gsa-muted: #667085;
  --gsa-title: #1F2A44;
  --gsa-chip: #EEF3FF;
  --gsa-chip-text: #2F3A55;
  --gsa-accent: #2563EB;
}

/* =========================================================
   FORCE LIGHT BACKGROUND FOR FULL SCROLL AREA
   ========================================================= */
html,
body{
  background: var(--gsa-bg) !important;
}

/* =========================================================
   Page wrapper
   ========================================================= */
.gsa{
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 64px;
  color: var(--gsa-text);
  background: transparent;
}

/* =========================================================
   Hero
   ========================================================= */
.gsa-hero{
  margin-bottom: 18px;
}
.gsa-title{
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: -0.02em;
  color: var(--gsa-title);
}
.gsa-sub{
  margin: 6px 0 0;
  color: var(--gsa-muted);
  font-size: 1.05rem;
}

.gsa-meta{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gsa-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gsa-chip);
  color: var(--gsa-chip-text);
  border: 1px solid rgba(37,99,235,0.10);
  font-weight: 600;
}
.gsa-meta-text{
  color: var(--gsa-muted);
  font-weight: 600;
}
.gsa-ico{
  font-size: 0.95rem;
  opacity: 0.9;
}

/* =========================================================
   Cards
   ========================================================= */
.gsa-card{
  background: var(--gsa-card);
  border: 1px solid var(--gsa-border);
  border-radius: 18px;
  box-shadow: var(--gsa-shadow);
}

/* =========================================================
   Top section
   ========================================================= */
.gsa-top{
  display: grid;
  gap: 16px;
}

.gsa-card--big{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 18px;
  align-items: center;
}
@media (max-width: 920px){
  .gsa-card--big{
    grid-template-columns: 1fr;
  }
}

.gsa-kicker{
  color: var(--gsa-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.gsa-energy{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 4px;
}
.gsa-energy-num{
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gsa-title);
}
.gsa-energy-unit{
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--gsa-title);
  opacity: 0.92;
}
.gsa-energy-sub{
  color: var(--gsa-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

/* =========================================================
   Scale bar
   ========================================================= */
.gsa-scale-bar{
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(16,24,40,0.08);
}
.gsa-scale-bar .seg{ display:block; }
.gsa-scale-bar .s1{ background:#2EAD4A; }
.gsa-scale-bar .s2{ background:#A8D62A; }
.gsa-scale-bar .s3{ background:#F7C52B; }
.gsa-scale-bar .s4{ background:#F78A1D; }
.gsa-scale-bar .s5{ background:#E7372B; }

.gsa-scale-labels{
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-weight: 650;
  color: var(--gsa-muted);
  font-size: 0.95rem;
}
.gsa-scale-caption{
  margin-top: 10px;
  text-align: center;
  color: var(--gsa-muted);
  font-weight: 650;
  font-size: 0.92rem;
}

/* =========================================================
   Gauge
   ========================================================= */
.gsa-gauge{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 6px 0;
}
.gsa-gauge-svg{
  width: 100%;
  max-width: 360px;
  height: auto;
  display:block;
}
.gsa-gauge-score{
  margin-top: -6px;
  font-size: 3.2rem;
  font-weight: 850;
  color: var(--gsa-title);
  letter-spacing: -0.03em;
}
.gsa-gauge-label{
  margin-top: 2px;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--gsa-muted);
}

/* =========================================================
   KPI cards
   ========================================================= */
.gsa-kpi-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px){
  .gsa-kpi-grid{
    grid-template-columns: 1fr;
  }
}
.gsa-kpi{
  padding: 16px 16px;
}
.gsa-kpi-title{
  color: var(--gsa-muted);
  font-weight: 750;
  margin-bottom: 8px;
}
.gsa-kpi-value{
  color: var(--gsa-title);
  font-weight: 850;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.gsa-kpi-sub{
  margin-top: 8px;
  color: var(--gsa-muted);
  font-weight: 650;
  font-size: 0.95rem;
}

/* =========================================================
   Method section
   ========================================================= */
.gsa-method{
  margin-top: 22px;
}
.gsa-h2{
  margin: 26px 0 12px;
  font-size: 1.55rem;
  color: var(--gsa-title);
  letter-spacing: -0.02em;
}
.gsa-p{
  color: var(--gsa-muted);
  line-height: 1.62;
  max-width: 980px;
}

/* steps */
.gsa-steps{
  margin-top: 16px;
  display:grid;
  gap: 12px;
}
.gsa-step{
  display:flex;
  gap: 12px;
  padding: 14px 14px;
  background: var(--gsa-card);
  border: 1px solid var(--gsa-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16,24,40,0.06);
}
.gsa-step-num{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #EEF3FF;
  color: #2563EB;
  font-weight: 850;
}
.gsa-step-title{
  font-weight: 850;
  color: var(--gsa-title);
  margin-bottom: 4px;
}
.gsa-step-text{
  color: var(--gsa-muted);
  line-height: 1.55;
  font-weight: 600;
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.gsa-faq{
  margin-top: 18px;
}
.gsa-accordion{
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gsa-border);
  background: var(--gsa-card);
  box-shadow: 0 12px 26px rgba(16,24,40,0.08);
}

.gsa-item{
  border-top: 1px solid var(--gsa-border);
}
.gsa-item:first-child{
  border-top: none;
}

.gsa-item summary{
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--gsa-title);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.gsa-item summary::-webkit-details-marker{
  display:none;
}
.gsa-item summary::after{
  content: "▾";
  color: var(--gsa-muted);
  font-weight: 900;
}
.gsa-item[open] summary::after{
  content: "▴";
}

.gsa-a{
  padding: 0 16px 16px;
  color: var(--gsa-muted);
  line-height: 1.65;
  font-weight: 600;
}

/* =========================================================
   No data state
   ========================================================= */
.gsa-nodata{
  padding: 18px;
}

/* =========================================================
   MOBILE-ONLY ADJUSTMENTS
   ========================================================= */
@media (max-width: 768px){

  /* 1) Hide icons in meta row (Last 24h / Calculated at) */
  .gsa-meta .gsa-ico{
    display: none;
  }

  /* tighten meta spacing a bit on mobile */
  .gsa-meta{
    gap: 8px;
  }

  /* 2) Reorder big card: Gauge first, text second */
  .gsa-card--big{
    display: flex;
    flex-direction: column;
  }

  /* Gauge on top */
  .gsa-big-right{
    order: -1;
    margin-bottom: 12px;
  }

  /* Text / index block below */
  .gsa-big-left{
    order: 1;
  }

  /* Optional: center gauge a bit nicer on mobile */
  .gsa-gauge{
    padding-top: 4px;
    padding-bottom: 8px;
  }

  /* Slightly reduce huge numbers for small screens */
  .gsa-energy-num{
    font-size: 2.6rem;
  }
  .gsa-gauge-score{
    font-size: 2.6rem;
  }
}

