/* ============================================================
   AARAMBHX TECHNOLOGY — HIGHLIGHTS & MEDIA HUB STYLES
   Instagram Reels, Campus Footages & Theater Mode Lightbox
   ============================================================ */

:root {
  --hl-bg: #090d16;
  --hl-surface: rgba(17, 24, 39, 0.7);
  --hl-surface-card: rgba(22, 31, 50, 0.65);
  --hl-surface-hover: rgba(30, 41, 59, 0.85);
  --hl-border: rgba(255, 255, 255, 0.1);
  --hl-border-focus: rgba(37, 99, 235, 0.5);
  --hl-text: #f8fafc;
  --hl-text-muted: #94a3b8;
  --hl-primary: #2563eb;
  --hl-primary-hover: #1d4ed8;
  --hl-primary-glow: rgba(37, 99, 235, 0.35);
  --hl-accent: #60a5fa;
  --hl-ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --hl-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --hl-mono: 'Space Grotesk', monospace;
}

[data-theme="light"], .light-theme {
  --hl-bg: #f8fafc;
  --hl-surface: rgba(255, 255, 255, 0.85);
  --hl-surface-card: rgba(255, 255, 255, 0.9);
  --hl-surface-hover: rgba(241, 245, 249, 0.95);
  --hl-border: rgba(0, 0, 0, 0.08);
  --hl-border-focus: rgba(37, 99, 235, 0.4);
  --hl-text: #0f172a;
  --hl-text-muted: #64748b;
  --hl-primary: #2563eb;
  --hl-primary-hover: #1d4ed8;
  --hl-primary-glow: rgba(37, 99, 235, 0.2);
  --hl-accent: #2563eb;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--hl-bg);
  color: var(--hl-text);
  font-family: var(--hl-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.highlights-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 80% 60%, rgba(220, 39, 67, 0.05) 0%, transparent 50%),
              var(--hl-bg);
  transition: background-color 0.3s ease;
}

/* ============================================================
   TOP GLASS NAVBAR
   ============================================================ */
.hl-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--hl-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hl-border);
  z-index: 100;
}

.hl-nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hl-text);
  text-decoration: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hl-border);
  transition: all 0.2s ease;
}

.hl-back-btn:hover {
  background: var(--hl-primary);
  color: #ffffff;
  border-color: var(--hl-primary);
  transform: translateX(-2px);
}

.hl-brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.hl-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.hl-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hl-text);
}

.hl-brand-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--hl-accent);
  border-radius: 9999px;
  font-weight: 700;
  margin-left: 0.35rem;
}

.hl-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hl-ig-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--hl-ig-gradient);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
  transition: all 0.2s ease;
}

.hl-ig-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
}

.hl-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hl-border);
  color: var(--hl-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hl-theme-btn:hover {
  background: var(--hl-surface-hover);
  border-color: var(--hl-border-focus);
}

/* ============================================================
   HERO / CREATOR PROFILE BANNER
   ============================================================ */
.hl-hero-section {
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hl-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: 2rem 2.25rem;
  background: var(--hl-surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hl-border);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.hl-profile-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hl-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: var(--hl-ig-gradient);
  flex-shrink: 0;
}

.hl-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000000;
  object-fit: cover;
  border: 2px solid var(--hl-bg);
}

.hl-profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hl-profile-handle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hl-verified-badge {
  color: #38bdf8;
}

.hl-profile-bio {
  font-size: 0.9rem;
  color: var(--hl-text-muted);
  max-width: 540px;
  line-height: 1.5;
}

.hl-profile-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.hl-meta-pill {
  font-size: 0.75rem;
  font-family: var(--hl-mono);
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hl-border);
  border-radius: 9999px;
  color: var(--hl-accent);
}

.hl-profile-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ============================================================
   CATEGORY FILTER TABS
   ============================================================ */
.hl-filters-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1.5rem 0 1rem 0;
  scrollbar-width: none;
}

.hl-filters-bar::-webkit-scrollbar {
  display: none;
}

.hl-filter-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--hl-border);
  background: var(--hl-surface-card);
  color: var(--hl-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hl-filter-btn:hover {
  background: var(--hl-surface-hover);
  color: var(--hl-text);
  border-color: var(--hl-border-focus);
}

.hl-filter-btn.active {
  background: var(--hl-primary);
  color: #ffffff;
  border-color: var(--hl-primary);
  box-shadow: 0 4px 14px var(--hl-primary-glow);
}

/* ============================================================
   REELS & HIGHLIGHTS GRID
   ============================================================ */
.hl-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem 1.5rem;
}

.hl-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Social Reel Card */
.hl-card {
  position: relative;
  background: var(--hl-surface-card);
  border: 1px solid var(--hl-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hl-card:hover {
  transform: translateY(-4px);
  border-color: var(--hl-border-focus);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--hl-border);
  background: rgba(255, 255, 255, 0.02);
}

.hl-card-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hl-text);
}

.hl-ig-icon-gradient {
  display: inline-flex;
  padding: 4px;
  border-radius: 6px;
  background: var(--hl-ig-gradient);
  color: #ffffff;
}

.hl-card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 9999px;
  color: var(--hl-accent);
}

/* Video / Embed Container (9:16 vertical ratio) */
.hl-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 580px;
  background: #000000;
  overflow: hidden;
}

.hl-embed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Card Body */
.hl-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.hl-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hl-text);
  line-height: 1.35;
}

.hl-card-desc {
  font-size: 0.85rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
}

.hl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hl-border);
}

.hl-watch-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #f43f5e;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hl-watch-ig-link:hover {
  color: #e11d48;
  transform: translateX(2px);
}

/* Follow Card in Grid */
.hl-follow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.75rem;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(220, 39, 67, 0.1)), var(--hl-surface-card);
  border: 1px dashed var(--hl-border-focus);
}

.hl-follow-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hl-ig-gradient);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.35);
}

.hl-follow-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hl-text);
}

.hl-follow-card p {
  font-size: 0.875rem;
  color: var(--hl-text-muted);
  max-width: 280px;
}

/* ============================================================
   HOME PAGE GLIMPSE SECTION STYLES
   ============================================================ */
.home-reels-section {
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.home-reels-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-reels-titles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-reels-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--hl-mono);
  color: #f43f5e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-reels-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-reels-sub {
  font-size: 0.95rem;
  color: var(--hl-text-muted);
  max-width: 540px;
}

.home-reels-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hl-text);
  background: var(--hl-surface-card);
  border: 1px solid var(--hl-border);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-reels-explore-btn:hover {
  background: var(--hl-primary);
  color: #ffffff;
  border-color: var(--hl-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--hl-primary-glow);
}

.home-reels-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.home-reel-card {
  position: relative;
  background: var(--hl-surface-card);
  border: 1px solid var(--hl-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-reel-card:hover {
  transform: translateY(-6px);
  border-color: var(--hl-border-focus);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.home-reel-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000000;
  overflow: hidden;
}

.home-reel-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-reel-card:hover .home-reel-preview img {
  transform: scale(1.05);
}

.home-reel-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.home-reel-card:hover .home-reel-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.play-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-reel-card:hover .play-icon-pill {
  transform: scale(1.15);
  background: #ffffff;
}

.home-reel-info {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-reel-tag {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--hl-mono);
  color: var(--hl-accent);
  text-transform: uppercase;
}

.home-reel-title {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hl-text);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 960px) {
  .home-reels-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hl-navbar {
    padding: 0 1rem;
  }
  .hl-profile-card {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hl-back-btn span {
    display: none;
  }
  .hl-ig-cta-btn span {
    display: none;
  }
  .hl-ig-cta-btn {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .hl-media-grid {
    grid-template-columns: 1fr;
  }
  .hl-embed-wrap {
    max-height: 520px;
  }
}
