/* ============================================
   Bhandara Individual Page Styles
   ============================================ */

.back-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }

.bhandara-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.status-banner.live { background: rgba(5,150,105,0.1); color: var(--live); }
.status-banner.upcoming { background: rgba(37,99,235,0.1); color: var(--upcoming); }
.dot-pulse {
  width: 10px;
  height: 10px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse2 1.5s infinite;
  display: inline-block;
}
@keyframes pulse2 {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(5,150,105,0); }
}

.dates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--section-bg);
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
}

.countdown-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(236,72,153,0.05));
  border: 2px solid rgba(124,58,237,0.15);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  margin-bottom: 32px;
}
.countdown-label {
  font-family: 'Baloo 2', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-unit {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 80px;
  box-shadow: var(--shadow);
}
.cd-num {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.cd-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}
.cd-sep {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  align-self: center;
}

.description {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 720px;
}

.action-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.action-row .btn { flex: 1 1 240px; }

/* === SCRATCH CARD === */
.scratch-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(236,72,153,0.06));
  border: 2px dashed var(--primary);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin: 32px 0 48px;
}
.scratch-title { font-size: 26px; margin-bottom: 8px; }
.scratch-sub { color: var(--text-secondary); margin-bottom: 28px; }

.scratch-card-wrap {
  display: flex;
  justify-content: center;
}
.scratch-card {
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 180px;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.scratch-card.disabled { cursor: not-allowed; opacity: 0.85; }

.scratch-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #C0C0C0, #E8E8E8 30%, #A8A8A8 70%, #D0D0D0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 18px;
  transition: opacity 0.6s, transform 0.6s;
  z-index: 2;
}
.scratch-cover-text { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; text-align: center; }
.scratch-icon { font-size: 32px; }
.scratch-card.scratched .scratch-cover {
  opacity: 0;
  transform: scale(1.2) rotate(-8deg);
  pointer-events: none;
}

.scratch-result {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  flex-direction: column;
  gap: 8px;
  font-family: 'Baloo 2', sans-serif;
}
.scratch-result .res-title { font-size: 16px; color: var(--text-secondary); font-weight: 600; }
.scratch-result .res-gift {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.scratch-result .res-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--section-bg);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'DM Sans', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-top: 4px;
}
.scratch-result .res-code button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.scratch-result .res-emoji { font-size: 34px; }
.scratch-result .res-sponsor { font-size: 11px; color: var(--text-light); margin-top: 6px; }

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0); opacity: 1; }
  100% { transform: translateY(220px) rotate(720deg); opacity: 0; }
}
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  animation: confetti-fall 1.8s ease-in forwards;
}

/* === SPONSORS === */
.sponsors-section { margin-top: 32px; }
.section-h {
  font-size: 26px;
  margin-bottom: 16px;
}
.gold-box {
  background: linear-gradient(135deg, rgba(217,119,6,0.08), rgba(217,119,6,0.04));
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.sponsor-card {
  background: #fff;
  
  border: 1px solid #007bff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sponsor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.maha-strip {
  height: 6px;
  background: linear-gradient(90deg, #D97706, #F59E0B, #D97706);
}
.sponsor-content { padding: 28px 24px; }

.sponsor-badge {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.sponsor-badge.maha { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #92400E; }
.sponsor-badge.daani { background: rgba(124,58,237,0.1); color: var(--primary); }

.brand-logo-box {
  width: 180px;
  height: 100px;
  background: #ffffff;
  border: 0px dashed #dcdcdc;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 16px;
}
.brand-logo-box.small { width: 140px; height: 80px; }

.brand-name {
  font-size: 22px;
  margin-bottom: 14px;
}

.offer-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(236,72,153,0.06));
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 16px;
}

.coupon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--section-bg);
  border: 1px dashed var(--primary);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.coupon-code {
  font-family: 'DM Sans', monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  letter-spacing: 1.5px;
  flex: 1;
  min-width: 100px;
}
.copy-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
}
.copy-btn:hover { transform: scale(1.05); }
.copy-btn:disabled { opacity: 0.7; cursor: default; }

.sponsor-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sponsor-links a {
  background: #fff;
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.sponsor-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.daani-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.daani-grid .sponsor-card { margin-bottom: 0; }

/* === NEW UNIFIED SPONSOR CARDS === */
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0 32px;
}
.sponsor-grid .sponsor-card { margin-bottom: 0; }
.sponsor-content.centered {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sponsor-content.centered .brand-logo-box { margin-left: auto; margin-right: auto; }
.sponsor-content.centered .brand-name { text-align: center; }
.sponsor-content.centered .offer-box {
  width: 100%;
  text-align: center;
}
.sponsor-content.centered .coupon-row {
  width: 100%;
  justify-content: center;
}
.sponsor-content.centered .sponsor-links { justify-content: center; }

.contributed {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

/* Upcoming notice box */
.upcoming-info-box {
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02));
  border-left: 4px solid var(--upcoming);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
}
.upcoming-info-box strong { color: var(--upcoming); }

/* Scratch placeholder (upcoming) */
.scratch-placeholder {
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(236,72,153,0.04));
  border: 2px dashed rgba(124,58,237,0.3);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  margin: 32px 0 48px;
}
.scratch-placeholder .ico { font-size: 38px; margin-bottom: 10px; }
.scratch-placeholder h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.scratch-placeholder p {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === WIN SHARE SECTION (appears after scratch win) === */
.win-share-section {
  margin: 24px auto 48px;
  max-width: 520px;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(236,72,153,0.06));
  border: 2px dashed var(--primary);
  border-radius: 18px;
  padding: 26px 24px;
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ws-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.ws-sub {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.ws-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  flex: 1 1 140px;
  text-decoration: none;
  min-height: 44px;
}
.ws-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.ws-btn.ws-wa { background: var(--whatsapp); }
.ws-btn.ws-copy { background: var(--gradient); }
.ws-btn.ws-share { background: #6B7280; }
.ws-btn:disabled { opacity: 0.75; cursor: default; transform: none; }

@media (max-width: 768px) {
  .ws-btn { flex: 1 1 100%; }
}

/* === FLOATING SIDE SHARE BAR === */
.floating-share {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
}
.fs-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.18s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
}
.fs-btn:hover {
  transform: scale(1.08) translateX(-2px);
  box-shadow: -3px 3px 14px rgba(0,0,0,0.14);
  color: #fff;
}
.fs-wa { background: #25D366; }
.fs-copy { background: #7C3AED; }
.fs-share { background: #6B7280; }

.fs-tooltip {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #1A1033;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.fs-tooltip.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .fs-btn { width: 38px; height: 38px; font-size: 16px; }
}

.invite-box {
  border: 2px dashed var(--primary);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  background: rgba(124,58,237,0.03);
  margin-top: 28px;
}
.invite-box h3 { font-size: 22px; margin-bottom: 18px; }

@media (max-width: 768px) {
  .daani-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; gap: 16px; }
  .action-row .btn { flex: 1 1 100%; }
  .cd-unit { padding: 12px 14px; min-width: 64px; }
  .cd-sep { font-size: 22px; }
  .brand-logo-box { width: 100%; }
  .dates-row { flex-direction: column; gap: 8px; }
  .contributed { font-size: 22px; }
}
