/**
 * components.css
 * Composants réutilisables Radio Control
 */

/* ══════════════════════════════
   KPI CARDS
══════════════════════════════ */
.rts-kpi-grid {
  display: grid;
  gap: 12px;
}
.rts-kpi-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rts-kpi-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.rts-kpi-card {
  background: var(--rts-white);
  border: 0.5px solid var(--rts-border);
  border-radius: var(--bs-border-radius);
  padding: 12px 16px;
}
.rts-kpi-card--accent {
  border-top: 3px solid var(--rts-red);
}
.rts-kpi-card__label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}
.rts-kpi-card__value {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--rts-topbar);
}
.rts-kpi-card__value--green  { color: var(--spot-ok); }
.rts-kpi-card__value--red    { color: var(--rts-red); }
.rts-kpi-card__value--amber  { color: var(--spot-reprg); }
.rts-kpi-card__sub {
  font-size: 11px;
  margin-top: 4px;
  color: #aaa;
}
.rts-kpi-card__sub--up   { color: var(--spot-ok); }
.rts-kpi-card__sub--down { color: var(--rts-red); }

/* ══════════════════════════════
   ACTION CARDS (page profil)
══════════════════════════════ */
.rts-action-card {
  background: var(--rts-white);
  border: 0.5px solid var(--rts-border);
  border-radius: var(--bs-border-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
.rts-action-card:hover {
  border-color: var(--rts-red);
  text-decoration: none;
  color: inherit;
}
.rts-action-card--primary {
  border-top: 3px solid var(--rts-red);
}
.rts-action-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rts-action-card__icon--red  { background: var(--rts-red-light); }
.rts-action-card__icon--grey { background: var(--rts-grey-light); }
.rts-action-card__icon svg { width: 18px; height: 18px; }
.rts-action-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--rts-topbar);
}
.rts-action-card__desc {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
  flex: 1;
}
.rts-action-card__arrow {
  font-size: 11px;
  color: var(--rts-red);
  margin-top: auto;
}
.rts-action-card__arrow--grey { color: var(--rts-grey); }

/* ══════════════════════════════
   WELCOME BANNER
══════════════════════════════ */
.rts-welcome-banner {
  background: var(--rts-sidebar);
  border-radius: var(--bs-border-radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.rts-welcome-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 28px solid rgba(200,21,27,0.12);
  pointer-events: none;
}
.rts-welcome-banner__logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--rts-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--rts-border);
  flex-shrink: 0;
  overflow: hidden;
}
.rts-welcome-banner__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rts-welcome-banner__info { flex: 1; position: relative; z-index: 1; }
.rts-welcome-banner__label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}
.rts-welcome-banner__name {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
}
.rts-welcome-banner__meta {
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rts-welcome-banner__badge {
  background: rgba(200,21,27,0.2);
  color: #f08080;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
}
.rts-welcome-banner__actions {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════
   BADGES STATUT SPOT
══════════════════════════════ */
.rts-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.rts-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.rts-badge--ok     { background: var(--spot-ok-bg);    color: var(--spot-ok); }
.rts-badge--err    { background: var(--spot-err-bg);   color: var(--spot-err); }
.rts-badge--reprg  { background: var(--spot-reprg-bg); color: var(--spot-reprg); }
.rts-badge--none   { background: var(--spot-none-bg);  color: var(--spot-none); border: 0.5px solid var(--rts-border); }

/* ══════════════════════════════
   INFO LIST (page profil)
══════════════════════════════ */
.rts-info-card {
  background: var(--rts-white);
  border: 0.5px solid var(--rts-border);
  border-radius: var(--bs-border-radius-lg);
  padding: 16px 20px;
}
.rts-info-card__title {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.rts-info-card__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--rts-border);
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
.rts-info-card__row:last-child { border-bottom: none; }
.rts-info-card__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rts-red);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══════════════════════════════
   AUDIO PLAYER
══════════════════════════════ */
.rts-audio-bar {
  background: var(--rts-white);
  border: 0.5px solid var(--rts-border);
  border-radius: var(--bs-border-radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.rts-audio-bar__play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rts-red);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.rts-audio-bar__play:hover { background: var(--rts-red-dark); }
.rts-audio-bar__play svg { width: 14px; height: 14px; fill: #fff; }
.rts-audio-bar__info { flex: 1; }
.rts-audio-bar__title { font-size: 12px; font-weight: 500; color: var(--rts-topbar); margin-bottom: 5px; }
.rts-audio-bar__progress { width: 100%; height: 3px; background: var(--rts-border); border-radius: 2px; cursor: pointer; }
.rts-audio-bar__fill { height: 100%; background: var(--rts-red); border-radius: 2px; transition: width 0.1s linear; }
.rts-audio-bar__time { font-size: 10px; color: #aaa; flex-shrink: 0; }

/* ══════════════════════════════
   EXPORT BUTTON
══════════════════════════════ */
.rts-btn-export {
  background: var(--rts-sidebar);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.rts-btn-export:hover { background: var(--rts-grey); color: #fff; text-decoration: none; }
.rts-btn-export svg { width: 13px; height: 13px; stroke: #fff; }

/* ══════════════════════════════
   CAMPAIGN HEADER
══════════════════════════════ */
.rts-campagne-header {
  background: var(--rts-white);
  border: 0.5px solid var(--rts-border);
  border-radius: var(--bs-border-radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rts-campagne-header__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--rts-topbar);
}
.rts-campagne-header__period {
  font-size: 11px;
  color: #aaa;
  margin-left: auto;
}
