/* =============================================================================
   HOME-DEMO-PHONE.CSS — ENIBUSINESS Homepage: BCS Phone Demo Widget
   Scope   : home page only (/index.html)
   Version : 5
   ============================================================================= */


/* ═══════════════════════════════════════════════════════════
   HERO — Interactive BCS Demo Phone Frame
   ═══════════════════════════════════════════════════════════ */
.demo-phone {
  width: min(100%, 260px);
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.18));
}

.demo-phone__frame {
  position: relative;
  background: #111;
  border-radius: 42px;
  border: 2px solid #464646;
  padding: 46px 12px 30px;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px #1c1c1c, 0 24px 70px rgba(0,0,0,0.9);
}

/* Dynamic island */
.demo-phone__island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: #000;
  border-radius: 20px;
}

/* Volume buttons — left side */
.demo-phone__frame::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 80px;
  width: 3px;
  height: 24px;
  background: #2e2e2e;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 36px 0 #2e2e2e;
}

/* Power button — right side */
.demo-phone__frame::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 100px;
  width: 3px;
  height: 52px;
  background: #2e2e2e;
  border-radius: 0 2px 2px 0;
}

/* Screen */
.demo-screen {
  background: #000;
  border-radius: 26px;
  overflow: hidden;
  height: 452px;
}

/* ── App header ── */
.demo-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px 7px;
  border-bottom: 1px solid #1a1a1a;
}
.demo-back  { font-size: 13px; color: #245AF6; }
.demo-title-bar { font-size: 12px; font-weight: 700; color: #fff; }

/* ── Section blocks ── */
.demo-stats-content { padding: 0 10px 6px; }

.demo-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  margin: 5px 0 4px;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Bar chart container ── */
.demo-bcs-chart {
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 6px;
}

.demo-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3px;
}

.demo-period-label {
  font-size: 8px;
  color: #666;
  margin: 0;
}

.demo-chart-total {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.demo-chart-area {
  display: flex;
  gap: 4px;
  height: 88px;
}

.demo-grid-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 15px;
  min-width: 26px;
}
.demo-grid-lines div span {
  font-size: 7px;
  color: #888;
  white-space: nowrap;
}

.demo-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
  height: 100%;
  padding-bottom: 15px;
  border-left: 1px solid rgba(128,128,128,0.1);
}

.demo-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  gap: 2px;
}

.demo-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  transition: height 0.35s ease;
  min-height: 2px;
}
.demo-bar--active {
  background-color: #245AF6;
  box-shadow: 0 0 6px rgba(36,90,246,0.35);
}
.demo-bar--empty { background-color: rgba(128,128,128,0.12); }

.demo-bar-label {
  position: absolute;
  bottom: 0;
  font-size: 6.5px;
  color: #999;
  text-align: center;
  white-space: nowrap;
}

/* ── Period buttons ── */
.demo-chart-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 3px;
}
.demo-chart-btn {
  background: #1d1d1d;
  color: #ccc;
  border: 1px solid #444;
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.demo-chart-btn:hover  { background: #3a3a3a; }
.demo-chart-btn.active { background: #245AF6; color: #fff; border-color: #245AF6; }

/* ── Trend row ── */
.demo-trend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 10px;
}
.demo-trend-label {
  font-size: 7px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.demo-trend-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 6px;
}
.demo-trend-up   { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.demo-trend-down { color: #245AF6; background: rgba(36,90,246,0.12); border: 1px solid rgba(36,90,246,0.3); }

/* ── Overview grid ── */
.demo-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}
.demo-overview-card {
  border: 1px solid #222;
  border-radius: 10px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}
.demo-overview-label { font-size: 8px; color: #666; }
.demo-overview-value { font-size: 10px; font-weight: 700; color: #245AF6; }
.demo-overview-badge { font-size: 8px; font-weight: 700; border-radius: 20px; padding: 1px 5px; }
.demo-overview-badge.up      { color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }
.demo-overview-badge.down    { color: #245AF6; background: rgba(36,90,246,0.1); border: 1px solid rgba(36,90,246,0.25); }
.demo-overview-badge.neutral { color: #888; background: rgba(128,128,128,0.08); border: 1px solid rgba(128,128,128,0.18); }

.demo-trend-neutral { color: #888; background: rgba(128,128,128,0.1); border: 1px solid rgba(128,128,128,0.2); }
