/* ===================================================================
   UNACADEMY OFFLINE (KOTA / CENTERS) BATCH & LECTURE PORTAL
   Study Squad Modern Dark-Glassmorphic UI/UX
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-main: #0A0216;
  --card-bg: #11052C;
  --card-hover: #19093e;
  --primary-accent: #F1A0FF;
  --accent-glow: rgba(241, 160, 255, 0.2);
  --accent-glow-strong: rgba(241, 160, 255, 0.45);
  --community-accent: #2AABEE;
  --border-default: rgba(241, 160, 255, 0.15);
  --border-hover: rgba(241, 160, 255, 0.5);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --emerald-pill: rgba(16, 185, 129, 0.2);
  --emerald-text: #6ee7b7;
  --emerald-border: rgba(16, 185, 129, 0.3);
  --danger: #ef4444;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

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

::selection {
  background: rgba(241, 160, 255, 0.3);
  color: #F1A0FF;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(241, 160, 255, 0.08) 0%, rgba(17, 5, 44, 0.45) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ===================== HEADER ===================== */
header {
  position: sticky;
  top: 0;
  background: #0A0216 !important;
  border-bottom: 1px solid rgba(241, 160, 255, 0.2);
  z-index: 50;
  padding: 0 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
}

.hi {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 74px;
  gap: 16px;
}

.hb {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}

.hb-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(241, 160, 255, 0.4);
  background: #11052C;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(241, 160, 255, 0.25);
  flex-shrink: 0;
  overflow: hidden;
}
.hb-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hb-text h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 1px;
  color: #FFFFFF;
  line-height: 1.1;
  transition: color 0.2s;
}
.hb:hover .hb-text h1 {
  color: var(--primary-accent);
}
.hb-text p {
  font-size: 10px;
  color: rgba(241, 160, 255, 0.85);
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
}

.h-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-tg-btn {
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.4);
  color: var(--community-accent);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.h-tg-btn:hover {
  background: var(--community-accent);
  color: #fff;
  box-shadow: 0 0 18px rgba(42, 171, 238, 0.5);
  transform: translateY(-1px);
}

/* ===================== MAIN CONTAINER ===================== */
#main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  min-height: calc(100vh - 74px);
  position: relative;
  z-index: 1;
}

/* HERO SECTION */
.home-hero {
  background: #11052C;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(241, 160, 255, 0.12);
}
.ambient-glow {
  position: absolute;
  top: -64px;
  right: -64px;
  width: 280px;
  height: 280px;
  background: rgba(241, 160, 255, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(241, 160, 255, 0.1);
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 0 14px var(--accent-glow);
}
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #FFFFFF;
  line-height: 1.15;
}
.gradient-text {
  background: linear-gradient(135deg, #F1A0FF 0%, #d8b4fe 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 500;
  max-width: 760px;
  line-height: 1.6;
}

/* LIVE SEARCH BAR */
.sw {
  position: relative;
  margin-bottom: 24px;
}
.sw input {
  width: 100%;
  background: #11052C;
  border: 2px solid var(--border-default);
  color: var(--text-primary);
  padding: 18px 54px 18px 54px;
  border-radius: 20px;
  font-size: 1.08rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.sw input:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 25px var(--accent-glow);
  background: #17073b;
}
.sw input::placeholder {
  color: var(--text-muted);
}
.sil {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-accent);
  pointer-events: none;
  display: flex;
}
.scl {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  display: none;
  border-radius: 50%;
}
.scl:hover {
  color: var(--primary-accent);
}
.scl.vis {
  display: block;
}

/* SECTION LABEL & BREADCRUMB */
.slb {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.slb::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.bc {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-family: 'Space Mono', monospace;
  font-weight: 600;
}
.bc span {
  color: var(--text-muted);
}
.bc a {
  color: var(--primary-accent);
  cursor: pointer;
  text-decoration: none;
}
.bc a:hover {
  text-decoration: underline;
}

/* BACK BUTTON */
.bb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #11052C;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 24px;
  transition: all 0.2s;
}
.bb:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-2px);
}

/* ===================== FOLDER CARDS (Categories, Batches, Subjects) ===================== */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.folder-card {
  background: #11052C;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.folder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241, 160, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.folder-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(241, 160, 255, 0.15);
  background: var(--card-hover);
}
.folder-card:hover::before {
  opacity: 1;
}

.folder-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(241, 160, 255, 0.12);
  border: 1px solid rgba(241, 160, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-accent);
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow);
  transition: all 0.25s ease;
}
.folder-card:hover .folder-icon {
  background: var(--primary-accent);
  color: #0A0216;
  box-shadow: 0 0 25px var(--accent-glow-strong);
  transform: scale(1.05);
}

.folder-info {
  flex: 1;
  min-width: 0;
}
.folder-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.35;
}
.folder-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.folder-arrow {
  margin-left: auto;
  color: var(--primary-accent);
  font-size: 1.2rem;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
}
.folder-card:hover .folder-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ===================== LECTURES LIST & FILTERS ===================== */
.lecture-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.filter-select {
  background: #11052C;
  border: 2px solid var(--border-default);
  color: #FFFFFF;
  padding: 16px 20px;
  border-radius: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-select:focus {
  border-color: var(--primary-accent);
}
.filter-select option {
  background: #11052C;
  color: #FFFFFF;
}

.ll {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lc {
  background: #11052C;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.lc:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(241, 160, 255, 0.15);
}
.lnum {
  font-size: 0.75rem;
  color: var(--primary-accent);
  font-family: 'Space Mono', monospace;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lt {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #FFFFFF;
}
.lm {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: 'Space Mono', monospace;
  margin-bottom: 18px;
  font-weight: 600;
}
.la {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-accent);
  color: #0A0216;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px var(--accent-glow);
}
.bw:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-glow-strong);
}
.bp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--community-accent);
  border: 1px solid var(--community-accent);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.bp:hover {
  background: var(--community-accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(42, 171, 238, 0.4);
  transform: translateY(-2px);
}

/* ===================== ARTPLAYER VIDEO MODAL ===================== */
#player-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#player-modal.active {
  display: flex;
}
.player-box {
  width: 100%;
  max-width: 1100px;
  background: #000;
  border: 1px solid var(--primary-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 50px var(--accent-glow-strong);
  display: flex;
  flex-direction: column;
}
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #11052C;
  border-bottom: 1px solid var(--border-default);
}
.player-title {
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 60px);
}
.player-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.player-close:hover {
  background: var(--danger);
}
.artplayer-container {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 75vh;
  background: #000;
}

/* ===================== SPINNER & EMPTY ===================== */
.spin {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(241, 160, 255, 0.15);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: sp 0.8s linear infinite;
  margin: 80px auto;
  box-shadow: 0 0 20px var(--accent-glow);
}
@keyframes sp {
  to { transform: rotate(360deg); }
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 600;
}
.eic {
  font-size: 3.4rem;
  margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .folder-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .folder-grid { grid-template-columns: 1fr; }
  .lecture-filter-bar { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .home-hero { padding: 28px 20px; }
  #main { padding: 20px 16px 40px; }
}

/* ===================== TELEGRAM SUBSCRIBE MODAL ===================== */
.tg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 2, 22, 0.85);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tg-modal-overlay.active {
  display: flex;
}
.tg-modal-card {
  max-width: 460px;
  width: 100%;
  background: linear-gradient(135deg, #180933 0%, #11052C 100%);
  border: 1px solid rgba(42, 171, 238, 0.5);
  border-radius: 24px;
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(42, 171, 238, 0.35);
  animation: popTg 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes popTg {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.tg-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.tg-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}
.tg-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42, 171, 238, 0.15);
  border: 1px solid rgba(42, 171, 238, 0.4);
  color: #2AABEE;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.tg-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px rgba(42, 171, 238, 0.35);
}
.tg-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.65rem;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.tg-modal-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 24px;
}
.tg-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #2AABEE;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(42, 171, 238, 0.5);
  transition: all 0.25s ease;
  margin-bottom: 12px;
}
.tg-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(42, 171, 238, 0.7);
  background: #229ed9;
}
.tg-modal-dismiss {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.tg-modal-dismiss:hover {
  color: #fff;
}

/* ===================== SHIMMER SKELETON LOADING SCREENS ===================== */
@keyframes shimmerAnim {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(241, 160, 255, 0.04) 25%, rgba(241, 160, 255, 0.16) 50%, rgba(241, 160, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.6s infinite ease-in-out;
  border-radius: var(--radius-sm);
}

.sk-folder-card {
  background: #11052C;
  border: 1px solid rgba(241, 160, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 110px;
}

.sk-folder-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex-shrink: 0;
}

.sk-folder-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-title {
  height: 22px;
  width: 75%;
  border-radius: 6px;
}

.sk-sub {
  height: 14px;
  width: 45%;
  border-radius: 4px;
}

.sk-lecture-card {
  background: #11052C;
  border: 1px solid rgba(241, 160, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sk-lecture-top {
  height: 14px;
  width: 120px;
  border-radius: 4px;
}

.sk-lecture-title {
  height: 24px;
  width: 85%;
  border-radius: 6px;
}

.sk-lecture-meta {
  height: 16px;
  width: 50%;
  border-radius: 4px;
}

.sk-lecture-actions {
  display: flex;
  gap: 12px;
}

.sk-btn {
  height: 40px;
  width: 140px;
  border-radius: var(--radius-sm);
}


