/* ============================================
   QuickBio Tools — Shared Styles v1.0.3
   QuickBio.com.ng
   ============================================ */

:root {
  --qb-blue:        #1a56db;
  --qb-blue-light:  #2563eb;
  --qb-blue-bg:     #eff6ff;
  --qb-white:       #ffffff;
  --qb-gray-100:    #f5f5f5;
  --qb-gray-200:    #e0e0e0;
  --qb-gray-600:    #4a4a4a;
  --qb-gray-800:    #1a1a1a;
  --qb-red:         #c0392b;
  --qb-gold:        #d4a017;
  --qb-radius:      14px;
  --qb-shadow:      0 4px 20px rgba(0,0,0,0.10);
  --qb-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Wrapper ── */
.qb-tool-wrap {
  font-family: var(--qb-font);
  font-size: 17px;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  color: var(--qb-gray-800);
  box-sizing: border-box;
}
.qb-tool-wrap *, .qb-tool-wrap *::before, .qb-tool-wrap *::after {
  box-sizing: border-box;
}

/* ── Card ── */
.qb-card {
  background: var(--qb-white);
  border: 1px solid var(--qb-gray-200);
  border-radius: var(--qb-radius);
  box-shadow: var(--qb-shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* ── Header ── */
.qb-header {
  background: linear-gradient(135deg, var(--qb-blue) 0%, var(--qb-blue-light) 100%);
  color: var(--qb-white);
  border-radius: var(--qb-radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.qb-header h2 {
  margin: 0 0 .45rem 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--qb-white);
}
.qb-header p {
  margin: 0;
  font-size: 1.05rem;
  opacity: .9;
  color: var(--qb-white);
}

/* ── Labels ── */
.qb-label {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--qb-gray-600);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Inputs & Selects ── */
.qb-input, .qb-select {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 2px solid var(--qb-gray-200);
  border-radius: 10px;
  font-size: 1.05rem;
  font-family: var(--qb-font);
  color: var(--qb-gray-800);
  background: var(--qb-white);
  transition: border-color .2s;
  outline: none;
  line-height: 1.4;
}
.qb-input:focus, .qb-select:focus {
  border-color: var(--qb-blue-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.qb-input[type="date"] {
  color: var(--qb-gray-800);
}
.qb-input[type="date"].qb-empty {
  color: var(--qb-gray-600);
}

/* ── Grid ── */
.qb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) {
  .qb-grid-2 { grid-template-columns: 1fr; }
}
.qb-field { margin-bottom: 1.1rem; }

/* ── Button ── */
.qb-btn {
  display: inline-block;
  background: var(--qb-blue);
  color: var(--qb-white) !important;
  border: none;
  border-radius: 10px;
  padding: .9rem 2rem;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  font-family: var(--qb-font);
  width: 100%;
  margin-top: .5rem;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
}
.qb-btn:hover {
  background: var(--qb-blue-light);
  color: var(--qb-white) !important;
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}
.qb-btn:active { transform: scale(.98); }

.qb-btn-sm {
  width: auto;
  padding: .6rem 1.4rem;
  font-size: .98rem;
  margin-top: 0;
}
.qb-btn-outline {
  background: transparent;
  border: 2px solid var(--qb-blue);
  color: var(--qb-blue) !important;
  box-shadow: none;
}
.qb-btn-outline:hover { background: var(--qb-blue-bg); }

/* ── Results ── */
.qb-results {
  display: none;
  margin-top: 1.2rem;
  animation: qbFadeIn .35s ease;
}
.qb-results.active { display: block; }
@keyframes qbFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stat blocks ── */
.qb-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.qb-stat {
  flex: 1 1 130px;
  background: var(--qb-blue-bg);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  text-align: center;
}
.qb-stat .val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--qb-blue);
  line-height: 1;
  display: block;
}
.qb-stat .lbl {
  font-size: .88rem;
  color: var(--qb-gray-600);
  margin-top: .3rem;
  display: block;
  font-weight: 600;
}

/* ── Countdown tiles ── */
.qb-countdown-row {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.qb-cd-tile {
  background: var(--qb-blue);
  color: var(--qb-white);
  border-radius: 12px;
  min-width: 76px;
  padding: .85rem .65rem .6rem;
  text-align: center;
}
.qb-cd-tile .num {
  font-size: 2.1rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  color: var(--qb-white);
}
.qb-cd-tile .unit {
  font-size: .78rem;
  text-transform: uppercase;
  opacity: .85;
  letter-spacing: .05em;
  color: var(--qb-white);
  margin-top: .2rem;
  display: block;
}

/* ── Badge ── */
.qb-badge {
  display: inline-block;
  background: var(--qb-blue);
  color: var(--qb-white);
  font-size: .88rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .3rem 1rem;
  letter-spacing: .04em;
}
.qb-badge-gold { background: var(--qb-gold); }
.qb-badge-red  { background: var(--qb-red); }

/* ── List ── */
.qb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.qb-list li {
  padding: .75rem .8rem;
  border-bottom: 1px solid var(--qb-gray-200);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--qb-gray-800);
  line-height: 1.5;
}
.qb-list li:last-child { border-bottom: none; }
.qb-list li::before {
  content: '✦';
  color: var(--qb-blue-light);
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: .35rem;
}

/* ── Progress bar ── */
.qb-bar-wrap {
  background: var(--qb-gray-200);
  border-radius: 20px;
  height: 16px;
  overflow: hidden;
  margin: .5rem 0;
}
.qb-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--qb-blue), var(--qb-blue-light));
  border-radius: 20px;
  transition: width .6s ease;
}
.qb-bar-fill.red { background: linear-gradient(90deg, #c0392b, #e74c3c); }

/* ── Section title ── */
.qb-section-title {
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--qb-blue);
  margin: 1.4rem 0 .6rem;
  border-left: 4px solid var(--qb-blue);
  padding-left: .6rem;
  line-height: 1.3;
}

/* ── Branding ── */
.qb-brand-line {
  text-align: center;
  font-size: .88rem;
  color: #999;
  margin-top: 1.4rem;
  padding-top: .9rem;
  border-top: 1px solid var(--qb-gray-200);
}
.qb-brand-line a {
  color: var(--qb-blue);
  text-decoration: none;
  font-weight: 700;
}

/* ── Error ── */
.qb-error {
  background: #fdf3f2;
  border: 2px solid #e74c3c;
  border-radius: 10px;
  color: var(--qb-red);
  padding: .8rem 1.1rem;
  font-size: 1rem;
  margin-top: .75rem;
  font-weight: 600;
}

/* ── Tabs ── */
.qb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--qb-gray-200);
  margin-bottom: 1.4rem;
  overflow-x: auto;
}
.qb-tab-btn {
  flex: 1;
  padding: .8rem 1rem;
  background: none;
  border: none;
  font-size: .95rem;
  font-weight: 700;
  color: var(--qb-gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  font-family: var(--qb-font);
  white-space: nowrap;
}
.qb-tab-btn.active {
  color: var(--qb-blue);
  border-bottom-color: var(--qb-blue);
}

/* ── Currency toggle ── */
.qb-currency-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--qb-gray-600);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.qb-toggle-btn {
  border: 2px solid var(--qb-blue);
  background: transparent;
  color: var(--qb-blue);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--qb-font);
  transition: background .2s, color .2s;
}
.qb-toggle-btn.active {
  background: var(--qb-blue);
  color: var(--qb-white);
}

/* ── Quiz ── */
.qb-quiz-q {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  line-height: 1.55;
  color: var(--qb-gray-800) !important;
}
.qb-quiz-opts { display: flex; flex-direction: column; gap: .7rem; }
.qb-quiz-opt {
  padding: .85rem 1.2rem;
  border: 2px solid var(--qb-gray-200);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.02rem;
  line-height: 1.45;
  transition: border-color .15s, background .15s, color .15s;
  background: var(--qb-white) !important;
  color: var(--qb-gray-800) !important;
  text-align: left;
  font-family: var(--qb-font);
  font-weight: 500;
}
.qb-quiz-opt:hover {
  border-color: var(--qb-blue-light);
  background: var(--qb-blue-bg) !important;
  color: var(--qb-blue) !important;
}
.qb-quiz-opt.correct {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
  font-weight: 700;
}
.qb-quiz-opt.wrong {
  border-color: var(--qb-red) !important;
  background: #fdf3f2 !important;
  color: var(--qb-red) !important;
}
.qb-quiz-opt.disabled { pointer-events: none; }

.qb-quiz-timer-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--qb-gray-200);
  margin-bottom: 1rem;
  overflow: hidden;
}
.qb-quiz-timer-fill {
  height: 100%;
  background: var(--qb-blue);
  border-radius: 4px;
  transition: width 1s linear, background .3s;
}
.qb-quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  font-weight: 600;
  color: var(--qb-gray-600);
  margin-bottom: .6rem;
}

/* ── BBNaija season buttons ── */
.qb-season-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.2rem;
}
.qb-season-btn {
  padding: .55rem 1rem;
  border: 2px solid var(--qb-blue);
  border-radius: 22px;
  background: transparent;
  color: var(--qb-blue);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--qb-font);
  transition: background .2s, color .2s;
}
.qb-season-btn.active, .qb-season-btn:hover {
  background: var(--qb-blue);
  color: var(--qb-white);
}

/* ── Timeline ── */
.qb-timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: thin;
}
.qb-timeline-item {
  flex: 0 0 auto;
  text-align: center;
  position: relative;
  padding: 0 .5rem;
}
.qb-timeline-item::before {
  content: '';
  position: absolute;
  top: 11px; left: 0; right: 0;
  height: 2px;
  background: var(--qb-blue-light);
  z-index: 0;
}
.qb-timeline-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--qb-blue);
  margin: 0 auto .35rem;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform .15s;
}
.qb-timeline-dot:hover { transform: scale(1.35); }
.qb-timeline-dot.active { background: var(--qb-gold); }
.qb-timeline-label {
  font-size: .72rem;
  color: var(--qb-gray-600);
  font-weight: 600;
}

/* ── Net worth bar ── */
.qb-nw-bar-row { display: flex; height: 26px; border-radius: 13px; overflow: hidden; margin: .6rem 0; }
.qb-nw-asset { background: var(--qb-blue); transition: width .6s ease; }
.qb-nw-debt  { background: var(--qb-red);  transition: width .6s ease; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .qb-card    { padding: 1.25rem; }
  .qb-header  { padding: 1.25rem; }
  .qb-header h2 { font-size: 1.3rem; }
  .qb-stat .val { font-size: 1.4rem; }
  .qb-cd-tile .num { font-size: 1.6rem; }
  .qb-cd-tile { min-width: 64px; }
  .qb-quiz-q  { font-size: 1.05rem; }
  .qb-quiz-opt { font-size: .98rem; }
  .qb-tab-btn { font-size: .85rem; padding: .7rem .6rem; }
}
