/* LakshyaOne — Weekly Insight styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0D0D0D;
  --card:      #141414;
  --bg-card:   #141414;
  --bg-hover:  #1C1C1C;
  --surface:   #1C1C1C;
  --elevated:  #242424;
  --border:    #2A2A2A;
  --border-hi: #383838;
  --text:      #F0F0F0;
  --secondary: #888888;
  --primary:   #4E5FC0;
  --primary-hover: #0070E0;
  --success:   #30D158;
  --danger:    #FF453A;
  --warning:   #FFD60A;
  --radius:    12px;
  --radius-sm: 8px;
  --font: 'Manrope', -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* ── NAV (shared shell) ── */
.nav { position: sticky; top: 0; z-index: 100; background: #0D0D0D; border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 56px; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo-mark { width: 28px; height: 28px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.nav-logo-text { font-weight: 700; font-size: 15px; color: var(--text); }
.nav-center { display: flex; gap: 4px; }
.nav-link { padding: 6px 14px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--secondary); transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-link.active { background: rgba(78,95,192,.08); color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text); cursor: default; }
.nav-logout-btn { background: none; border: none; color: var(--secondary); cursor: pointer; padding: 6px; border-radius: 8px; display: flex; align-items: center; transition: color .15s, background .15s; }
.nav-logout-btn:hover { background: rgba(217,123,123,.1); color: var(--danger); }

/* ── MAIN ── */
.main { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }

.page-header { margin-bottom: 24px; }
.page-header-left h1 { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.page-header-left p  { font-size: 13px; color: var(--secondary); margin-top: 6px; }

.ins-loading, .ins-empty { text-align: center; padding: 40px 20px; color: var(--secondary); font-size: 14px; }

.ins-locked { text-align: center; padding: 70px 20px; }
.ins-locked-icon { font-size: 40px; margin-bottom: 14px; }
.ins-locked h2 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.ins-locked p { font-size: 14px; color: var(--secondary); max-width: 420px; margin: 0 auto 20px; line-height: 1.5; }
.ins-upgrade-btn {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 12px 28px; border-radius: var(--radius-sm);
  transition: background .15s;
}
.ins-upgrade-btn:hover { background: var(--primary-hover); }

/* ── CARDS ── */
.ins-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px;
}
.ins-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ins-card-title { font-size: 14px; font-weight: 700; color: var(--text); }

.ins-verdict-badge { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.ins-verdict-excellent { background: rgba(48,209,88,.14); color: var(--success); }
.ins-verdict-good      { background: rgba(78,95,192,.14); color: var(--primary); }
.ins-verdict-warn      { background: rgba(255,214,10,.14); color: var(--warning); }
.ins-verdict-low       { background: rgba(255,69,58,.14);  color: var(--danger); }

.ins-summary-text { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 16px; }

.ins-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ins-stat-chip { background: var(--elevated); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.ins-stat-value { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.ins-stat-label { font-size: 10px; color: var(--secondary); margin-top: 3px; text-transform: uppercase; letter-spacing: .3px; }

.ins-observations { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ins-observations li {
  font-size: 13.5px; line-height: 1.6; color: var(--text); padding-left: 18px; position: relative;
}
.ins-observations li::before {
  content: '—'; position: absolute; left: 0; color: var(--primary);
}

.ins-motivation-card { background: linear-gradient(135deg, rgba(78,95,192,.10), rgba(78,95,192,.02)); border-color: rgba(78,95,192,.25); }
.ins-motivation-text { font-size: 14.5px; line-height: 1.7; color: var(--text); font-style: italic; }

/* ── MOBILE BOTTOM NAV (shared shell) ── */
.mobile-bottom-nav { display: none; }

@media (max-width: 640px) {
  .nav-center { display: none; }
  .main { padding: 20px 16px 90px; }
  .ins-stats-row { grid-template-columns: repeat(2, 1fr); }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(13,13,13,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 6px 0 max(8px, env(safe-area-inset-bottom));
  }

  .mbn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-decoration: none; color: var(--secondary); font-size: 10px; font-weight: 600;
    letter-spacing: .2px; padding: 4px 0; transition: color .15s; position: relative;
  }
  .mbn-item svg { stroke: currentColor; transition: stroke .15s; }
  .mbn-item.mbn-active { color: var(--primary); }
  .mbn-item.mbn-active::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 2px; background: var(--primary); border-radius: 0 0 3px 3px;
  }
}
