/* ═══════════════════════════════════════════════════════════════════
   STUDYRIA — HOMEPAGE REDESIGN
   File: homepage-redesign.css
   Namespace: HR (hr-)
   Safety: zero Supabase, Razorpay, Auth, DB, global CSS changes
   All selectors namespaced with hr- to prevent collisions
   ═══════════════════════════════════════════════════════════════════ */

/* ── HERO REDESIGN ─────────────────────────────────────────────── */
.hr-hero {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #0f1729 35%, #0a1428 70%, #060a16 100%);
  padding: 40px 0 60px;
}

/* Animated gradient orbs */
.hr-hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: hrOrbFloat 20s ease-in-out infinite;
}
.hr-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #930205, transparent); top: -10%; left: -5%; }
.hr-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #8b5cf6, transparent); bottom: -10%; right: -5%; animation-delay: -7s; }
.hr-orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, #00d4ff, transparent); top: 40%; left: 50%; animation-delay: -14s; opacity: 0.2; }
@keyframes hrOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Mesh grid overlay */
.hr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

/* Inner container */
.hr-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Left content */
.hr-hero-content { max-width: 640px; }

/* Eyebrow badge */
.hr-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(147, 2, 5, 0.12);
  border: 1px solid rgba(147, 2, 5, 0.3);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #7dc5ff;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hr-hero-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #930205;
  box-shadow: 0 0 8px #930205;
  animation: hrPulse 2s ease-in-out infinite;
}
@keyframes hrPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Wordmark */
.hr-hero-wordmark {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #a8c5f0 50%, #7dc5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

/* Title */
.hr-hero-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 16px;
}

/* Subtitle */
.hr-hero-sub {
  font-size: clamp(.92rem, 1.8vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
  max-width: 520px;
}
.hr-hero-sub strong { color: #7dc5ff; font-weight: 700; }

/* CTA buttons */
.hr-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Primary CTA */
.hr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  background: linear-gradient(135deg, #930205 0%, #930205 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(147, 2, 5, 0.4);
}
.hr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(147, 2, 5, 0.55);
}
.hr-btn-primary:active { transform: translateY(0); }

/* Secondary CTA */
.hr-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hr-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Search bar */
.hr-hero-search {
  position: relative;
  max-width: 480px;
  margin-bottom: 28px;
}
.hr-hero-search input {
  width: 100%;
  padding: 15px 20px 15px 48px;
  border-radius: 14px;
  font-size: .95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s ease;
  outline: none;
}
.hr-hero-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.hr-hero-search input:focus {
  border-color: rgba(147, 2, 5, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(147, 2, 5, 0.1);
}
.hr-hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Stats row */
.hr-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hr-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hr-hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.hr-hero-stat-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.45);
}

/* Social links compact */
.hr-hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.hr-hero-social {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all .3s ease;
  text-decoration: none;
}
.hr-hero-social:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}
.hr-hero-social svg { width: 20px; height: 20px; }
.hr-hero-social--wa:hover { color: #25d366; border-color: rgba(37,211,102,0.4); }
.hr-hero-social--tg:hover { color: #0088cc; border-color: rgba(0,136,204,0.4); }
.hr-hero-social--ig:hover { color: #e1306c; border-color: rgba(225,48,108,0.4); }
.hr-hero-social--yt:hover { color: #ff0000; border-color: rgba(255,0,0,0.4); }

/* ── FEATURE BANNER STRIP ──────────────────────────────────────── */
.hr-feature-strip {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  background: var(--glass-bg, rgba(18,18,30,0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hr-feature-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  transition: background .25s ease;
}
.hr-feature-item:last-child { border-right: none; }
.hr-feature-item:hover { background: rgba(255,255,255,0.03); }
.hr-feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(147,2,5,0.1);
}
.hr-feature-text { display: flex; flex-direction: column; gap: 2px; }
.hr-feature-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.hr-feature-desc { font-size: .68rem; color: var(--text2); }

/* ── WHY STUDYRIA REDESIGN ─────────────────────────────────────── */
.hr-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hr-why-card {
  padding: 28px 20px;
  border-radius: 16px;
  background: var(--glass-bg, rgba(18,18,30,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.hr-why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #930205, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.hr-why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(147,2,5,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.hr-why-card:hover::before { opacity: 1; }
.hr-why-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(147,2,5,0.15), rgba(139,92,246,0.1));
}
.hr-why-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.hr-why-desc { font-size: .78rem; line-height: 1.6; color: var(--text2); }

/* ── TRUST BADGES REDESIGN ─────────────────────────────────────── */
.hr-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
  flex-wrap: wrap;
}
.hr-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text2);
  border-right: 1px solid var(--glass-border, rgba(255,255,255,0.06));
}
.hr-trust-item:last-child { border-right: none; }
.hr-trust-icon { font-size: 1rem; }

/* ── PREMIUM BANNER REDESIGN ────────────────────────────────────── */
.hr-premium-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(245,158,11,0.05) 100%);
  border: 1px solid rgba(251,191,36,0.2);
  position: relative;
  overflow: hidden;
}
.hr-premium-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.08), transparent 70%);
  pointer-events: none;
}
.hr-premium-left { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.hr-premium-crown {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(245,158,11,0.1));
}
.hr-premium-title { font-size: 1.05rem; font-weight: 800; color: #fbbf24; margin-bottom: 4px; }
.hr-premium-sub { font-size: .78rem; color: var(--text2); }
.hr-premium-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  box-shadow: 0 4px 16px rgba(251,191,36,0.3);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.hr-premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,191,36,0.45);
}

/* ── SCROLL REVEAL ─────────────────────────────────────────────── */
.hr-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.hr-reveal.hr-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hr-hero { min-height: auto; padding: 30px 0 40px; }
  .hr-hero-content { max-width: 100%; text-align: left; }
  .hr-hero-stats { gap: 18px; }
  .hr-hero-stat-num { font-size: 1.2rem; }
  .hr-hero-ctas { flex-direction: column; }
  .hr-btn-primary, .hr-btn-secondary { width: 100%; justify-content: center; }

  .hr-why-grid { grid-template-columns: 1fr; gap: 12px; }

  .hr-feature-strip { flex-direction: column; }
  .hr-feature-item { border-right: none; border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.06)); }
  .hr-feature-item:last-child { border-bottom: none; }

  .hr-premium-banner { flex-direction: column; text-align: center; padding: 20px; }
  .hr-premium-left { flex-direction: column; text-align: center; }
  .hr-premium-btn { width: 100%; }

  .hr-trust-strip { gap: 0; }
  .hr-trust-item { padding: 6px 12px; font-size: .72rem; }
}

@media (max-width: 480px) {
  .hr-hero-eyebrow { font-size: .62rem; padding: 5px 12px; }
  .hr-hero-search input { font-size: .85rem; padding: 13px 16px 13px 42px; }
  .hr-hero-socials { gap: 8px; }
  .hr-hero-social { width: 40px; height: 40px; }
}

/* ── DARK/LIGHT MODE ADAPTATION ────────────────────────────────── */
body.light .hr-why-card { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.06); }
body.light .hr-why-card:hover { border-color: rgba(147,2,5,0.25); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
body.light .hr-feature-strip { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.06); }
body.light .hr-feature-item { border-color: rgba(0,0,0,0.06); }
body.light .hr-feature-item:hover { background: rgba(0,0,0,0.02); }
body.light .hr-trust-item { border-color: rgba(0,0,0,0.06); }
body.light .hr-see-all { border-color: rgba(0,0,0,0.1); }
body.light .hr-see-all:hover { border-color: #930205; }
body.light .hr-premium-banner { background: linear-gradient(135deg, rgba(251,191,36,0.06) 0%, rgba(245,158,11,0.04) 100%); border-color: rgba(251,191,36,0.25); }


/* ═══════════════════════════════════════════════════════════════
   4. LIBRARY PAGE (ottlib-) — Cream/maroon/gold light theme
   Converts the dark-navy Studyria Library hero to match site paper theme
   ═══════════════════════════════════════════════════════════════ */

body.light .ottlib-hero {
  background: linear-gradient(145deg, #faf7f2 0%, #f1ece3 40%, #f5f0e6 100%) !important;
}
body.light .ottlib-orb-1 { background: radial-gradient(circle, rgba(147,2,5,0.14) 0%, transparent 68%) !important; }
body.light .ottlib-orb-2 { background: radial-gradient(circle, rgba(201,154,60,0.16) 0%, transparent 68%) !important; }
body.light .ottlib-orb-3 { background: radial-gradient(circle, rgba(147,2,5,0.08) 0%, transparent 68%) !important; }

body.light .ottlib-hero-badge {
  background: rgba(147,2,5,0.08) !important;
  border-color: rgba(147,2,5,0.25) !important;
  color: #930205 !important;
}
body.light .ottlib-hero-badge-dot {
  background: #930205 !important;
  box-shadow: 0 0 8px rgba(147,2,5,0.6) !important;
}

body.light .ottlib-hero-title {
  background: linear-gradient(135deg, #1c1b1a 0%, #930205 50%, #c99a3c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
body.light .ottlib-hero-sub { color: #6b6358 !important; }

body.light .ottlib-search-icon { color: rgba(28,27,26,0.4) !important; }
body.light .ottlib-search-input {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(28,27,26,0.14) !important;
  color: #1c1b1a !important;
}
body.light .ottlib-search-input::placeholder { color: rgba(28,27,26,0.4) !important; }
body.light .ottlib-search-input:focus {
  border-color: rgba(147,2,5,0.45) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(147,2,5,0.12), 0 8px 24px rgba(147,2,5,0.1) !important;
}
body.light .ottlib-sort-select {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(28,27,26,0.14) !important;
  color: #1c1b1a !important;
}
body.light .ottlib-sort-select option { background: #ffffff !important; color: #1c1b1a !important; }
body.light .ottlib-free-btn {
  background: rgba(16,150,105,0.1) !important;
  border-color: rgba(16,150,105,0.3) !important;
  color: #0d9668 !important;
}
body.light .ottlib-free-btn:hover, body.light .ottlib-free-btn.active {
  background: rgba(16,150,105,0.2) !important;
  border-color: rgba(16,150,105,0.5) !important;
}

body.light .ottlib-stat {
  background: rgba(255,255,255,0.7) !important;
  border-color: rgba(28,27,26,0.1) !important;
}
body.light .ottlib-stat:hover { border-color: rgba(147,2,5,0.3) !important; }
body.light .ottlib-stat-num { color: #1c1b1a !important; }
body.light .ottlib-stat-label { color: rgba(28,27,26,0.5) !important; }

body.light .ottlib-streak-sub { color: rgba(28,27,26,0.55) !important; }
body.light .ottlib-ai-sub { color: rgba(28,27,26,0.5) !important; }

body.light .ottlib-cat-pill {
  background: rgba(28,27,26,0.05) !important;
  border-color: rgba(28,27,26,0.1) !important;
  color: rgba(28,27,26,0.65) !important;
}
body.light .ottlib-cat-pill:hover {
  background: rgba(147,2,5,0.08) !important;
  border-color: rgba(147,2,5,0.25) !important;
  color: #930205 !important;
}

body.light .ottlib-section-text { color: #1c1b1a !important; }
body.light .ottlib-divider { background: rgba(28,27,26,0.08) !important; }

body.light .ottlib-card {
  background: rgba(255,255,255,0.7) !important;
  border-color: rgba(28,27,26,0.1) !important;
}
body.light .ottlib-card:hover {
  box-shadow: 0 16px 40px rgba(28,27,26,0.12), 0 0 0 1px rgba(147,2,5,0.25) !important;
  border-color: rgba(147,2,5,0.3) !important;
}
body.light .ottlib-cover-fallback { color: rgba(28,27,26,0.15) !important; }

body.light .ottlib-card-info { background: rgba(255,255,255,0.4) !important; }
body.light .ottlib-card-title { color: #1c1b1a !important; }
body.light .ottlib-card-meta {
  color: rgba(28,27,26,0.5) !important;
  background: rgba(28,27,26,0.05) !important;
}
body.light .ottlib-card-price { color: #930205 !important; }
body.light .ottlib-card-price-orig { color: rgba(28,27,26,0.35) !important; }
body.light .ottlib-progress-bar { background: rgba(28,27,26,0.08) !important; }
body.light .ottlib-dl-badge {
  background: rgba(255,255,255,0.7) !important;
  color: rgba(28,27,26,0.65) !important;
}
