/* Thai Class Global Styles */
/* Shared across all pages */

:root {
  --teal-deep: #0A4D52;
  --teal-mid: #0D5C63;
  --teal-light: #1A7A82;
  --gold-rich: #B8860B;
  --gold-warm: #D4A84B;
  --gold-pale: #E8D5B5;
  --gold-shimmer: linear-gradient(135deg, #B8860B 0%, #D4A84B 50%, #B8860B 100%);
  --cream: #FDF8F3;
  --cream-dark: #F5EDE3;
  --charcoal: #1A1A1A;
  --charcoal-soft: #4A4A4A;
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --nav-height: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 243, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-pale);
  padding-top: var(--safe-top);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  background: var(--gold-shimmer);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-cta-wrapper {
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: calc(var(--nav-height) + var(--safe-top));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-pale);
  transition: color 0.2s;
}

.mobile-menu-links a::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold-rich);
  border-bottom: 2px solid var(--gold-rich);
  transform: rotate(-45deg);
  opacity: 0.6;
}

.mobile-menu-links a.coming-soon {
  opacity: 0.4;
  pointer-events: none;
}

.mobile-menu-links .soon-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-rich);
  background: var(--gold-pale);
  padding: 4px 8px;
  border-radius: 4px;
}

.mobile-menu-signin {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gold-pale);
}

.mobile-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-signin-btn:hover {
  border-color: var(--teal-deep);
  background: var(--cream-dark);
}

.mobile-signin-btn svg {
  color: var(--teal-deep);
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.mobile-user-info.hidden {
  display: none;
}

.mobile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold-pale);
}

.mobile-menu-cta {
  margin-top: auto;
  padding-top: 2rem;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-inner {
    padding: 0 2rem;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .nav-cta-wrapper {
    display: block;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-soft);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover {
    color: var(--teal-deep);
  }

  .nav-links .coming-soon-link {
    opacity: 0.5;
    pointer-events: none;
  }

  .nav-links .soon-badge {
    font-size: 0.6rem;
    background: var(--gold-pale);
    color: var(--gold-rich);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

/* ============================================
   SLIDE BUTTON
   ============================================ */

.slide-button {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 52px;
  background: var(--teal-deep);
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  margin: 0 auto;
}

.slide-button-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: opacity 0.15s;
}

.slide-button-text::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.slide-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: left 0.2s ease-out;
  z-index: 2;
}

.slide-thumb svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal-deep);
  stroke-width: 2.5;
  fill: none;
}

.slide-button.sliding .slide-thumb {
  transition: none;
}

.slide-button.success {
  background: #25D366;
}

.slide-button.success .slide-button-text {
  opacity: 0;
}

@media (min-width: 768px) {
  .slide-button {
    width: 180px;
    height: 46px;
    border-radius: 23px;
  }

  .slide-button-text {
    left: 40px;
    right: 10px;
    font-size: 0.85rem;
  }

  .slide-thumb {
    width: 38px;
    height: 38px;
  }

  .slide-thumb svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 2.5rem 1.5rem calc(2.5rem + var(--safe-bottom));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-logo span {
  color: var(--gold-warm);
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-warm);
  margin-bottom: 0.75rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  font-size: 0.85rem;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-section .soon {
  font-size: 0.65rem;
  opacity: 0.5;
  text-transform: uppercase;
  margin-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.5;
}

@media (min-width: 768px) {
  footer {
    padding: 3rem 2rem;
  }

  .footer-links {
    grid-template-columns: 2fr repeat(3, 1fr);
    text-align: left;
    gap: 3rem;
  }

  .footer-brand {
    text-align: left;
    margin-bottom: 0;
    grid-column: 1;
  }
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
  padding-top: calc(var(--nav-height) + var(--safe-top));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
