﻿/* Custom UI & Typography enhancements for Syntrophy Global Conferences */

:root {
  --brand-navy: #0a192f;
  --brand-teal: #0d9488;
  --brand-teal-light: #14b8a6;
  --brand-teal-dark: #0f766e;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

html.dark {
  --bg-primary: #0a192f;
  --bg-secondary: #030712;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
}

body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Card subtle transitions */
.group:hover .line-clamp-2 {
  transition: color 0.2s ease;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

html.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Modal animation */
#abstract-modal:not(.hidden),
#highlight-modal:not(.hidden),
#brochure-modal:not(.hidden),
#submission-success-modal:not(.hidden),
#gallery-lightbox-modal:not(.hidden),
#policy-details-modal:not(.hidden),
#payment-success-modal:not(.hidden) {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

/* Slider scroll utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 16:9 Rectangular Gallery Card */
.gallery-rect-card {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 420px;
  min-width: 290px;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-rect-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(13, 148, 136, 0.25), 0 8px 10px -6px rgba(13, 148, 136, 0.2);
}

.gallery-rect-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-rect-card:hover img {
  transform: scale(1.06);
}

/* Continuous Auto-Scrolling Marquee Track */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track,
.marquee-wrapper:active .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Dark mode overrides for high contrast and readability */
html.dark .bg-white {
  background-color: #0f172a !important;
}

html.dark .bg-slate-50 {
  background-color: #030712 !important;
}

html.dark .bg-slate-100 {
  background-color: #1e293b !important;
}

html.dark .border-slate-200,
html.dark .border-slate-100 {
  border-color: #1e293b !important;
}

html.dark .text-slate-900,
html.dark .text-slate-800 {
  color: #f1f5f9 !important;
}

html.dark .text-slate-700,
html.dark .text-slate-600 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-500 {
  color: #94a3b8 !important;
}

html.dark .shadow-xl,
html.dark .shadow-2xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
}


/* ==========================================================================
   Global High-Contrast Form Inputs for Light and Dark Themes
   ========================================================================== */

/* Light theme defaults */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  caret-color: #0d9488 !important;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

input:focus,
textarea:focus,
select:focus {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
  outline: none !important;
}

/* Dark theme overrides - 100% visible, high-contrast text and dark slate inputs */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark input[type="number"],
html.dark input[type="password"],
html.dark input[type="search"],
html.dark input[type="url"],
html.dark textarea,
html.dark select {
  color: #ffffff !important;
  background-color: #1e293b !important; /* deep slate-800 */
  border-color: #475569 !important; /* slate-600 */
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #14b8a6 !important; /* glowing teal typing cursor */
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #94a3b8 !important; /* slate-400 - clean and clearly distinct from typed white text */
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1 !important;
}

html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  background-color: #0f172a !important; /* deeper slate-900 on focus */
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #14b8a6 !important; /* teal focus ring */
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3) !important;
  outline: none !important;
}

/* Select options in dark mode */
html.dark select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* Chrome / Safari / Edge Autofill fix in dark mode */
html.dark input:-webkit-autofill,
html.dark input:-webkit-autofill:hover, 
html.dark input:-webkit-autofill:focus, 
html.dark input:-webkit-autofill:active,
html.dark textarea:-webkit-autofill,
html.dark textarea:-webkit-autofill:hover,
html.dark textarea:-webkit-autofill:focus,
html.dark select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #14b8a6 !important;
  border-color: #475569 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Checkbox styling in dark mode */
html.dark input[type="checkbox"],
html.dark input[type="radio"] {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  accent-color: #0d9488 !important;
}

/* Specific elements in checkout portal */
html.dark #promo-input {
  background-color: #1e293b !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #475569 !important;
}

html.dark #promo-input:focus {
  background-color: #0f172a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #14b8a6 !important;
}

html.dark .pass-qty-input {
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* -------------------------------------------------------------------------
   Registration Pricing Buttons - Vibrant Interactive Hover Color Transitions
   ------------------------------------------------------------------------- */
.reg-tier-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

/* 1. Standard Registration Tiers (Student, One Day, Delegate) */
.reg-tier-btn-standard:hover,
a[href*="tier=Student"]:hover,
a[href*="tier=One+Day"]:hover,
a[href*="tier=Delegate"]:hover {
  background-color: #0d9488 !important; /* Vibrant Brand Teal */
  color: #ffffff !important;
  border-color: #0d9488 !important;
  box-shadow: 0 10px 20px -3px rgba(13, 148, 136, 0.4) !important;
  transform: translateY(-2px) !important;
}

html.dark .reg-tier-btn-standard:hover,
html.dark a[href*="tier=Student"]:hover,
html.dark a[href*="tier=One+Day"]:hover,
html.dark a[href*="tier=Delegate"]:hover {
  background-color: #14b8a6 !important; /* Luminous Teal in Dark Mode */
  color: #ffffff !important;
  border-color: #14b8a6 !important;
  box-shadow: 0 10px 25px -3px rgba(20, 184, 166, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* 2. Speaker Registration Tier */
.reg-tier-btn-speaker:hover,
a[href*="tier=Speaker"]:hover {
  background-color: #0f766e !important; /* Rich Dark Teal */
  color: #ffffff !important;
  box-shadow: 0 10px 25px -3px rgba(13, 148, 136, 0.5) !important;
  outline: 2px solid rgba(20, 184, 166, 0.5) !important;
  transform: translateY(-2px) !important;
}

html.dark .reg-tier-btn-speaker:hover,
html.dark a[href*="tier=Speaker"]:hover {
  background-color: #0d9488 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -3px rgba(20, 184, 166, 0.55) !important;
  outline: 2px solid rgba(45, 212, 191, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* 3. Package Plan B (Hotel + Reg) */
.reg-tier-btn-plan-b:hover,
a[href*="tier=Package+Plan+B"]:hover,
a[href*="tier=Plan+B"]:hover {
  background-color: #4f46e5 !important; /* Rich Indigo */
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 10px 20px -3px rgba(79, 70, 229, 0.4) !important;
  transform: translateY(-2px) !important;
}

html.dark .reg-tier-btn-plan-b:hover,
html.dark a[href*="tier=Package+Plan+B"]:hover,
html.dark a[href*="tier=Plan+B"]:hover {
  background-color: #6366f1 !important; /* Luminous Indigo in Dark Mode */
  color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 10px 25px -3px rgba(99, 102, 241, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* 4. Package Plan A (VIP 3 Nights) */
.reg-tier-btn-plan-a:hover,
a[href*="tier=Package+Plan+A"]:hover,
a[href*="tier=Plan+A"]:hover {
  background-color: #4338ca !important; /* Deep Royal Indigo */
  color: #ffffff !important;
  box-shadow: 0 10px 25px -3px rgba(79, 70, 229, 0.5) !important;
  outline: 2px solid rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px) !important;
}

html.dark .reg-tier-btn-plan-a:hover,
html.dark a[href*="tier=Package+Plan+A"]:hover,
html.dark a[href*="tier=Plan+A"]:hover {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -3px rgba(99, 102, 241, 0.55) !important;
  outline: 2px solid rgba(129, 140, 248, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* Active Press State */
.reg-tier-btn:active,
a[href*="tier="]:active {
  transform: translateY(0px) scale(0.99) !important;
}

/* Quantity Plus/Minus buttons in Checkout Matrix */
.qty-btn-minus:hover,
.qty-btn-plus:hover {
  background-color: #0d9488 !important;
  color: #ffffff !important;
}
html.dark .qty-btn-minus:hover,
html.dark .qty-btn-plus:hover {
  background-color: #14b8a6 !important;
  color: #ffffff !important;
}
