/**
 * RSSDI-JHCON 2027 — PHASE 2 REUSABLE COMPONENT LIBRARY
 * Extended with Schedule Tabs, Speaker Shells, Registration Tier Tables,
 * Sponsor Logo Strip, Map Embed, and Scroll Reveal Animations.
 */

/* ==========================================================================
   1. BUTTONS (Primary, Secondary, Gold, Outline)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-light) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-forest);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-forest-light) 0%, var(--color-kelly) 100%);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(76, 154, 42, 0.4);
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: rgba(27, 77, 46, 0.08);
  color: var(--color-forest-dark);
  border-color: var(--color-forest-dark);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
  color: var(--color-navy-dark);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FFDE6A 0%, var(--color-gold-bright) 100%);
  box-shadow: 0 10px 28px rgba(232, 185, 35, 0.5);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 0.45rem 1rem;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 0.95rem 2.2rem;
}

/* ==========================================================================
   2. CARDS (Clean White, Rounded-Square Radii, Subtle Hover Micro-Interactions)
   ========================================================================== */

.conference-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-square-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.conference-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-kelly);
}

.conference-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border-light);
  gap: 0.75rem;
}

.conference-card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-forest-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.conference-card-header .badge-pill {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.28rem 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.conference-card-body {
  color: var(--color-text-main);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-square-xs);
  background: rgba(76, 154, 42, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item-content {
  flex: 1;
}

.contact-item-content strong {
  display: block;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
}

.contact-item-content span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.conference-card-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: auto;
  padding: 0.72rem 1.25rem;
  font-size: 0.88rem;
  font-weight: var(--weight-bold);
}

/* ==========================================================================
   3. SECTION HEADERS
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  z-index: 2;
}

.section-header-left {
  text-align: left;
  margin-inline: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-kelly);
  background: rgba(76, 154, 42, 0.1);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(76, 154, 42, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
  line-height: 1.08;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.5;
}

/* ==========================================================================
   4. REGISTRATION: 3 PRICING CATEGORIES & CANONICAL RAZORPAY CTA
   ========================================================================== */

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 1060px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-tier-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-square-lg);
  padding: 1.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-kelly);
}

.pricing-tier-card.tier-featured {
  border-color: var(--color-kelly);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-cream-card) 100%);
  box-shadow: var(--shadow-md);
}

.tier-pill {
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--color-kelly);
  color: var(--color-white);
  width: fit-content;
  margin-bottom: 0.75rem;
}

.tier-pill.tier-pill-neutral {
  background: var(--color-cream-wash);
  color: var(--color-forest);
  border: 1px solid var(--color-border);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-navy);
  margin-bottom: 0.25rem;
  line-height: 1.15;
}

.tier-eligibility {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  min-height: 2.2rem;
  line-height: 1.35;
}

.tier-price-box {
  background: var(--color-cream-wash);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-square-xs);
  padding: 0.75rem;
  text-align: center;
  margin-bottom: 1.15rem;
}

.tier-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-forest);
}

.tier-note {
  display: block;
  font-size: 0.75rem;
  color: var(--color-burnt-orange);
  font-style: italic;
  font-weight: var(--weight-semibold);
  margin-top: 2px;
}

.tier-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-main);
  margin-top: auto;
}

.tier-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.3;
}

.tier-benefits li::before {
  content: "✓";
  color: var(--color-kelly);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.registration-table-section {
  max-width: 960px;
  margin-inline: auto;
  margin-top: 2rem;
}

.registration-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-square-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.registration-tiers-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

.registration-tiers-table th {
  background: var(--color-forest-dark);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  text-align: left;
}

.registration-tiers-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.registration-tiers-table tr:last-child td {
  border-bottom: none;
}

.registration-tiers-table tr:hover td {
  background: var(--color-cream-wash);
}

.tier-table-price {
  color: var(--color-forest);
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.registration-table-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 0.75rem;
}

.tier-pending-text {
  font-style: italic;
  color: var(--color-burnt-orange);
  font-weight: var(--weight-semibold);
}

/* Single Canonical Razorpay Registration CTA Wrap */
.registration-single-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.registration-primary-btn {
  font-size: 1.15rem;
  padding: 1.05rem 2.75rem;
  box-shadow: 0 8px 24px rgba(27, 77, 46, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-square-sm);
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
}

.registration-primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 77, 46, 0.32);
}

.registration-cta-trust {
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero Registration Callout */
.hero-reg-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-cream-card);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-square-md);
  border: 1px solid var(--color-border);
  margin-top: 1.25rem;
}

.reg-callout-badge {
  font-size: 0.7rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  color: var(--color-kelly);
  background: rgba(76, 154, 42, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.reg-callout-content {
  flex: 1;
}

.reg-callout-content strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-navy);
  line-height: 1.2;
}

.reg-callout-content p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.3;
}

/* ==========================================================================
   5. VENUE MAP PLACEHOLDER COMPONENT
   ========================================================================== */

.venue-map-frame {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-square-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #EBF0DA 0%, #DCE5CB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-inner);
}

.venue-map-pin-badge {
  background: var(--color-white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid var(--color-kelly);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.venue-map-pin-badge:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   6. SCROLL REVEAL ANIMATIONS (Restrained & Professional)
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for Grid Children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   7. REUSABLE ROUNDED-SQUARE CONFETTI MOTIF
   ========================================================================== */

.motif-block-cluster {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.motif-block {
  position: absolute;
  border-radius: var(--radius-square-sm);
  opacity: 0.85;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.motif-xs { width: 14px; height: 14px; border-radius: var(--radius-square-xs); }
.motif-sm { width: 22px; height: 22px; border-radius: var(--radius-square-xs); }
.motif-md { width: 34px; height: 34px; border-radius: var(--radius-square-sm); }
.motif-lg { width: 48px; height: 48px; border-radius: var(--radius-square-md); }
.motif-xl { width: 64px; height: 64px; border-radius: var(--radius-square-lg); }

.motif-forest { background-color: var(--color-forest); }
.motif-kelly  { background-color: var(--color-kelly); }
.motif-lime   { background-color: var(--color-lime); }
.motif-soft   { background-color: var(--color-lime-soft); }
.motif-orange { background-color: var(--color-burnt-orange); }

@keyframes motifDriftA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}

@keyframes motifDriftB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(12px) rotate(-8deg); }
}

.motif-float-slow    { animation: motifDriftA 8s ease-in-out infinite; }
.motif-float-reverse { animation: motifDriftB 9s ease-in-out infinite; }

/* ==========================================================================
   8. BADGES & PILLS
   ========================================================================== */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-forest {
  background: var(--color-forest);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(27, 77, 46, 0.2);
}

.badge-gold {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
  color: var(--color-navy-dark);
  box-shadow: 0 4px 14px rgba(232, 185, 35, 0.3);
}

.badge-outline-forest {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-forest);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   9. MODALS, LIGHTBOX & TOAST OVERLAYS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 51, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--color-white);
  border-radius: var(--radius-square-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-window-wide {
  max-width: 960px;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-cream-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-maroon);
  color: var(--color-white);
  border-color: var(--color-maroon);
}

.lightbox-window {
  background: transparent;
  box-shadow: none;
  max-width: 1000px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  position: relative;
  background: #000000;
  border-radius: var(--radius-square-md);
  overflow: hidden;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-img-wrapper img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption-bar {
  margin-top: 1rem;
  background: rgba(27, 42, 74, 0.96);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-square-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  max-width: 800px;
  width: min(92%, 800px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-caption-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

.lightbox-maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, #d8a517 100%);
  color: #1a1a1a !important;
  font-weight: var(--weight-bold);
  font-size: 0.85rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(232, 185, 35, 0.4);
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-top: 0.25rem;
}

.lightbox-maps-btn:hover {
  background: #ffffff;
  color: var(--color-forest-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.lightbox-maps-btn:focus-visible {
  outline: 2px solid var(--color-gold-bright);
  outline-offset: 2px;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--color-white);
  color: var(--color-kelly);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.toast-message {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-message.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  z-index: 90;
  border: 2px solid var(--color-white);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--color-kelly);
  transform: translateY(-3px);
}
