/* Minimal Custom CSS - Only for features Tailwind can't handle */

/* CSS Variables for Theme Colors (set dynamically by theme.js) */
/* These are set via JavaScript in theme.js, but we define defaults here */
:root {
  --color-primary: #b563cd;
  --color-secondary: #b563cd;
  --color-primary-hover: #9a4fb0;
  --color-text: #000000;
  --color-text-light: #666666;
  --color-background: #ffffff;
  --color-background-alt: #f5f5f5;
  --font-sans: "Hind Siliguri", sans-serif;
  --max-width-container: 448px;
}

/* Tailwind v4 Utility Classes using CSS Variables */
/* These allow us to use classes like bg-primary, text-primary, etc. */
.bg-primary {
  background-color: var(--color-primary);
}
.bg-secondary {
  background-color: var(--color-secondary);
}
.bg-primary-hover {
  background-color: var(--color-primary-hover);
}
.bg-background {
  background-color: var(--color-background);
}
.bg-background-alt {
  background-color: var(--color-background-alt);
}

.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--color-secondary);
}
.text-primary-hover {
  color: var(--color-primary-hover);
}
.text-text {
  color: var(--color-text);
}
.text-text-light {
  color: var(--color-text-light);
}

.border-primary {
  border-color: var(--color-primary);
}
.border-secondary {
  border-color: var(--color-secondary);
}

.hover\:bg-primary:hover {
  background-color: var(--color-primary) !important;
}
.hover\:bg-primary-hover:hover {
  background-color: var(--color-primary-hover) !important;
}

/* Sidebar menu hover - make text and icons white when hovering */
.hover\:bg-primary:hover .text-primary,
.hover\:bg-primary:hover span {
  color: white !important;
}

/* Gradient utilities for primary color */
.from-primary {
  --tw-gradient-from: var(--color-primary);
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-primary-hover {
  --tw-gradient-to: var(--color-primary-hover);
}
.hover\:from-primary-hover:hover {
  --tw-gradient-from: var(--color-primary-hover);
}
.hover\:to-primary:hover {
  --tw-gradient-to: var(--color-primary);
}

/* Font Family */
.font-sans {
  font-family: var(--font-sans);
}

/* Max Width Container */
.max-w-container {
  max-width: var(--max-width-container);
}

/* Cursor pointer for all clickable elements */
button,
a,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
label[for],
.cursor-pointer {
  cursor: pointer;
}

/* Banner images should not be clickable */
.banner-item img,
.banner-image {
  cursor: default;
  pointer-events: none;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Font Display Optimization - Ensure text remains visible during font load */
@font-face {
  font-family: "bootstrap-icons";
  font-display: swap;
}

/* Horizontal Scrolling Lists - Mobile First Design */
.quiz-tournament-list,
.subscription-pack-list {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.quiz-tournament-list::-webkit-scrollbar,
.subscription-pack-list::-webkit-scrollbar {
  display: none;
}

/* Fixed width for horizontal scroll items */
.quiz-tournament-list > * {
  display: inline-block;
  width: 85%;
  margin-right: 1rem;
  vertical-align: top;
  flex-shrink: 0;
}

.quiz-tournament-list > *:last-child {
  margin-right: 0;
}

.subscription-pack-list > * {
  display: inline-block;
  width: 85%;
  margin-right: 1rem;
  vertical-align: top;
  flex-shrink: 0;
}

.subscription-pack-list > *:last-child {
  margin-right: 0;
}

.subscription-pack-list > .subscription-pack-card {
  width: 82%;
  min-width: 280px;
  white-space: normal;
  scroll-snap-align: start;
}

.subscription-pack-list {
  scroll-snap-type: x mandatory;
}

.subscription-pack-list > .subscription-pack-list-message {
  width: 100%;
  margin-right: 0;
}

.subscription-pack-card {
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.pack-card-body {
  padding: 1.35rem 1.2rem 1.2rem;
}

.pack-card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.pack-card-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pack-card-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.pack-card-duration {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.pack-card-meta {
  margin: 0.4rem 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pack-card-perday {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
}

.pack-card-divider {
  height: 1px;
  margin: 1rem 0;
  background: #e2e8f0;
}

.subscription-pack-usps {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.subscription-pack-usp {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #334155;
}

.pack-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.7rem;
}

.pack-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.pack-card-default {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.pack-card-default .pack-card-cta {
  color: #2563eb;
  background: #fff;
  border: 1.5px solid #2563eb;
}

.pack-card-savings {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.pack-card-savings .pack-card-perday {
  background: #dcfce7;
  color: #15803d;
}

.pack-card-savings .pack-card-cta {
  color: #fff;
  background: #2563eb;
  border: 1.5px solid #2563eb;
}

.pack-card-featured {
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.pack-card-featured .pack-card-title,
.pack-card-featured .pack-card-price,
.pack-card-featured .subscription-pack-usp {
  color: #fff;
}

.pack-card-featured .pack-card-duration {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
}

.pack-card-featured .pack-card-meta {
  color: rgba(255, 255, 255, 0.72);
}

.pack-card-featured .pack-card-perday {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pack-card-featured .pack-card-divider {
  background: rgba(255, 255, 255, 0.22);
}

.pack-card-featured .pack-check {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pack-card-featured .pack-card-cta {
  color: #1d4ed8;
  background: #fff;
  border: 0;
}

.pack-card-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.pack-card-badge-popular {
  color: #fff;
  background: #f97316;
}

.pack-card-badge-savings {
  color: #166534;
  background: #dcfce7;
}

.site-footer {
  background-color: #0b1220;
  color: #94a3b8;
  margin: 0;
  padding: 2.5rem 1rem 1.25rem;
  container-type: inline-size;
  container-name: site-footer;
}

.site-footer-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0.4rem;
  background: #fff;
  border-radius: 0.9rem;
}

.site-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer-kicker {
  margin: 0.9rem 0 0.4rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-blurb {
  margin: 0;
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
}

.site-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.site-footer-webapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  color: #0b1220;
  background: #fff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-webapp:hover {
  opacity: 0.92;
}

.site-footer-heading {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-footer-links,
.site-footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links li + li,
.site-footer-contact li + li {
  margin-top: 0.55rem;
}

.site-footer-links a,
.site-footer-contact a {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-contact a:hover {
  color: #fff;
}

.site-footer-contact {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #94a3b8;
}

.site-footer-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.6rem;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-social a:hover {
  color: #fff;
  border-color: #64748b;
}

.site-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #1e293b;
}

.site-footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

@container site-footer (min-width: 420px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@container site-footer (min-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1.35fr 0.9fr 0.9fr 1fr 1.25fr;
    gap: 1.75rem 1.5rem;
  }

  .site-footer-brand {
    grid-column: auto;
  }
}

/* Banner Carousel - Minimal CSS for transitions (Tailwind handles most styling) */
.banner-item {
  display: block;
  width: 100%;
}

.banner-carousel .banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.banner-carousel .banner-item.active {
  position: relative;
  height: auto;
  opacity: 1;
  z-index: 2;
}

.banner-carousel .banner-item:not(.active) .banner-image {
  height: 100%;
  object-fit: contain;
}

.banner-indicator.active {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  width: 8px !important;
  height: 8px !important;
  transform: none;
}

/* Category selection state */
.category-item.selected {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Loading spinner animation */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Toast animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Filter for primary color on images */
.filter-primary {
  filter: brightness(0) saturate(100%) invert(28%) sepia(8%) saturate(800%)
    hue-rotate(220deg) brightness(90%) contrast(95%);
}

/* Offcanvas menu open state */
.offcanvas-open {
  transform: translateX(0) !important;
}

.overlay-visible {
  display: block !important;
}

/* Ordered list styling for terms & conditions */
ol.list-decimal > li.list-item {
  list-style-position: inside;
  margin-left: 0;
  padding: 1rem;
}

ol.list-decimal > li.list-item::marker {
  font-weight: bold;
  color: black;
}

ol.list-decimal > li.list-item > h6 {
  display: inline;
  margin-left: 0.5rem;
  margin-bottom: 0;
}

/* OTP input active state */
.otp-input.otp-active,
.otp-input:focus {
  border-width: 2px !important;
  border-color: var(--color-primary) !important;
}

/* Offcanvas menu open state */
.offcanvas-open {
  transform: translateX(0) !important;
}

.overlay-visible {
  display: block !important;
}

/* Menu overlay - semi-transparent backdrop */
#menuOverlay {
  background-color: rgba(0, 0, 0, 0.25) !important;
}

/* FAQ / disclosures: hide default triangle for custom chevron */
details.info-disclosure summary {
  list-style: none;
}
details.info-disclosure summary::-webkit-details-marker {
  display: none;
}

/* Homepage / site navbar */
.site-nav-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.75rem 1rem 0;
}

.site-nav-brand {
  min-height: 40px;
}

.site-nav-links {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.5rem;
}

.site-nav-link {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.2rem;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #4b5563;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--color-primary);
}

.site-nav-link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Full-width desktop layout (home + content pages) */
.page-wide {
  background-color: #f3f4f6;
}

.page-wide .home-shell,
.page-wide .page-shell {
  width: 100%;
  max-width: none;
}

.page-wide .site-nav-inner,
.page-wide .home-main,
.page-wide .page-main,
.page-wide .site-footer-inner {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.page-wide .home-main,
.page-wide .page-main {
  padding: 1.25rem 1rem 2rem;
}

.page-wide .site-footer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.page-home .home-banner {
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-wide .site-nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
  }

  .page-wide .site-nav-links {
    flex: 0 0 auto;
    width: auto;
    gap: 0.25rem;
    margin-top: 0;
    border-top: 0;
  }

  .page-wide .site-nav-link {
    flex: 0 0 auto;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    white-space: nowrap;
  }

  .page-wide .home-main,
  .page-wide .page-main {
    padding: 2rem 1.5rem 3rem;
  }

  .page-home .home-see-all-packs {
    display: none;
  }

  .page-home .subscription-pack-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    overflow: visible;
    white-space: normal;
    scroll-snap-type: none;
    align-items: stretch;
  }

  .page-home .subscription-pack-list > *,
  .page-home .subscription-pack-list > .subscription-pack-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin-right: 0;
  }
}

@media (min-width: 1024px) {
  .page-home .subscription-pack-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .page-home .pack-card-featured {
    transform: translateY(-8px);
  }
}
