/* ============================================
   OnlineBhandara.in - Shared Stylesheet
   ============================================ */

:root {
  --bg: #FFFFFF;
  --section-bg: #F8F5FF;
  --card-bg: #FFFFFF;
  --card-border: #E8E0F5;
  --primary: #7C3AED;
  --accent: #EC4899;
  --gradient: linear-gradient(135deg, #7C3AED, #EC4899);
  --text-primary: #1A1033;
  --text-secondary: #6B5B95;
  --text-light: #9B8BBF;
  --live: #059669;
  --upcoming: #2563EB;
  --closed: #9CA3AF;
  --whatsapp: #25D366;
  --gold: #D97706;
  --shadow: 0 2px 16px rgba(124, 58, 237, 0.08);
  --shadow-lg: 0 8px 32px rgba(124, 58, 237, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============= NAVBAR ============= */
.navbar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Baloo 2', sans-serif;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand .brand-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  padding: 24px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
}
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}
.mobile-menu-links a {
  display: block;
  font-size: 22px;
  font-weight: 600;
  padding: 16px 8px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-primary);
  font-family: 'Baloo 2', sans-serif;
}
.mobile-menu-links a.active { color: var(--primary); }

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  min-height: 44px;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { color: #fff; box-shadow: 0 6px 20px rgba(124,58,237,0.3); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { color: #fff; background: #1eb858; }

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-full { width: 100%; }
.btn-large { padding: 18px 36px; font-size: 17px; }

/* ============= PAGE WRAPPER ============= */
.page {
  min-height: calc(100vh - 200px);
  padding: 48px 0;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 12px;
}
.page-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ============= BHANDARA LIST ROW ============= */
.bhandara-list { margin: 32px 0; }
.bhandara-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid transparent;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--text-primary);
}
.bhandara-row:hover {
  background: var(--section-bg);
  border-left-color: var(--primary);
  transform: translateX(4px);
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.live { background: var(--live); box-shadow: 0 0 0 4px rgba(5,150,105,0.15); animation: pulse 2s infinite; }
.status-dot.upcoming { background: var(--upcoming); }
.status-dot.closed { background: var(--closed); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(5,150,105,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(5,150,105,0.05); }
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.status-badge.live { background: rgba(5,150,105,0.1); color: var(--live); }
.status-badge.upcoming { background: rgba(37,99,235,0.1); color: var(--upcoming); }
.status-badge.closed { background: rgba(156,163,175,0.15); color: #6B7280; }

.bhandara-name {
  flex: 1;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
}
.bhandara-arrow {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ============= CARD ============= */
.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-top-border-purple { border-top: 4px solid var(--primary); }
.card-top-border-gold { border-top: 4px solid var(--gold); }
.card-left-border-purple { border-left: 4px solid var(--primary); }
.card-left-border-gold { border-left: 4px solid var(--gold); }

/* ============= FOOTER ============= */
.footer {
  background: #fff;
  border-top: 1px solid var(--card-border);
  padding: 56px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-brand .brand-text {
  font-family: 'Baloo 2', sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-tagline { color: var(--text-secondary); font-size: 14px; margin: 8px 0 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

/* ============= TOAST ============= */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transition: transform 0.3s ease-out;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .page { padding: 32px 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 16px;
  }
  .footer-grid > div {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
  }
  .footer-grid > div:last-child {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .footer h4 {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
  }
  .footer ul {
    align-items: center;
  }
  .footer ul a {
    font-size: 15px;
    padding: 8px 0;
    display: inline-block;
  }
  .footer-tagline {
    text-align: center;
  }
  .footer-brand .brand-text {
    display: block;
    text-align: center;
  }
  .footer-bottom {
    font-size: 13px;
    padding: 18px 0;
    text-align: center;
  }
  .bhandara-row { padding: 18px 16px; gap: 12px; }
  .bhandara-name { font-size: 15px; }
  .status-badge { font-size: 10px; padding: 3px 8px; }
  .btn { padding: 14px 22px; font-size: 14px; }
  .btn-large { padding: 16px 26px; font-size: 15px; }
}
