/* ============================================
   Roxie Tee — Premium Landing Page
   Dark, elegant, mobile-first
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text-primary: #f5f0eb;
  --text-secondary: rgba(245, 240, 235, 0.55);
  --accent-warm: #e84545;
  --accent-glow: rgba(232, 69, 69, 0.35);
  --accent-gold: #d4a853;
  --accent-gradient: linear-gradient(135deg, #e84545 0%, #d4a853 100%);
  --glass-bg: rgba(15, 15, 15, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --slider-track: rgba(255, 255, 255, 0.06);
  --slider-fill: linear-gradient(90deg, #e84545, #d4a853);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 30px rgba(232, 69, 69, 0.2);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 69, 69, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(212, 168, 83, 0.05) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* --- Main Container --- */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.25rem;
  max-width: 420px;
  margin: 0 auto;
}

/* --- Profile Section --- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.25rem;
}

.avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.5;
  filter: blur(12px);
  animation: avatarGlow 3s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
  0% { opacity: 0.3; transform: scale(0.95); }
  100% { opacity: 0.6; transform: scale(1.05); }
}

.avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.profile-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  text-align: center;
  line-height: 1.5;
}

.profile-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  font-weight: 400;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
}

.social-icon:hover,
.social-icon:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Slider CTA --- */
.slider-section {
  width: 100%;
  margin-bottom: 1.5rem;
}

.slider-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: labelPulse 2.5s ease-in-out infinite;
}

@keyframes labelPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.slider-track {
  position: relative;
  width: 100%;
  height: 60px;
  background: var(--slider-track);
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Fill gradient behind the thumb */
.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--slider-fill);
  opacity: 0.2;
  border-radius: var(--radius-full);
  transition: none;
  pointer-events: none;
}

/* Shimmer hint animation on the track */
.slider-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 69, 69, 0.06) 40%, rgba(212, 168, 83, 0.08) 60%, transparent 100%);
  animation: trackShimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes trackShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* CTA text inside track */
.slider-text {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245, 240, 235, 0.4);
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-text-arrow {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(245, 240, 235, 0.6);
  display: inline-block;
  margin-right: 4px;
}

.slider-text-fire {
  font-size: 2.2rem;
  display: inline-block;
}

/* Arrow hints */
.slider-arrows {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  pointer-events: none;
  z-index: 1;
  animation: arrowSlide 2s ease-in-out infinite;
}

.slider-arrows span {
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.15);
  font-weight: 300;
}

.slider-arrows span:nth-child(1) { animation: arrowFade 2s ease-in-out infinite 0s; }
.slider-arrows span:nth-child(2) { animation: arrowFade 2s ease-in-out infinite 0.15s; }
.slider-arrows span:nth-child(3) { animation: arrowFade 2s ease-in-out infinite 0.3s; }

@keyframes arrowFade {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.5; }
}

@keyframes arrowSlide {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
}

/* Thumb handle */
.slider-thumb {
  position: absolute;
  top: 0;
  left: 4px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  z-index: 2;
  cursor: grab;
  user-select: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.slider-thumb:active {
  cursor: grabbing;
}

.slider-thumb.idle {
  animation: thumbAttention 3s infinite;
}

@keyframes thumbAttention {
  0%, 100% { transform: translateX(0) scale(1.0); }
  10% { transform: translateX(8px) scale(1.1); }
  20% { transform: translateX(0) scale(1.0); }
  30% { transform: translateX(8px) scale(1.1); }
  40% { transform: translateX(0) scale(1.0); }
}

/* Completed state */
.slider-track.completed .slider-fill {
  width: 100% !important;
  opacity: 0.35;
  transition: all 0.3s var(--transition-smooth);
}

.slider-track.completed .slider-thumb {
  animation: none;
  box-shadow: 0 4px 24px rgba(232, 69, 69, 0.5);
}

.slider-track.completed .slider-text {
  opacity: 0;
}

.slider-track.completed .slider-arrows {
  opacity: 0;
}

/* Snap-back animation */
.slider-thumb.snap-back {
  transition: left 0.4s var(--transition-smooth);
}

.slider-fill.snap-back {
  transition: width 0.4s var(--transition-smooth);
}

/* --- Age Verification Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  visibility: hidden;
  transition: all 0.35s var(--transition-smooth);
  padding: 1.25rem;
}

.modal-overlay.active {
  visibility: visible;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  max-width: 340px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.35s var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover { color: var(--text-primary); }

.modal-inner {
  position: relative;
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Custom checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.checkbox-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-enter-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  opacity: 0.4;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.modal-enter-btn.enabled {
  opacity: 1;
  pointer-events: auto;
}

.modal-enter-btn.enabled:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 69, 69, 0.3);
}

.modal-enter-btn.enabled:active {
  transform: translateY(0);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
}

.footer-text {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.03em;
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .container {
    max-width: 440px;
    padding: 3rem 2rem;
  }

  .avatar-wrapper {
    width: 140px;
    height: 140px;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .profile-name {
    font-size: 2rem;
  }

  .slider-track {
    height: 68px;
  }

  .slider-thumb {
    width: 68px;
    height: 68px;
    font-size: 2.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Loading state --- */
.slider-thumb.loading {
  pointer-events: none;
}

.slider-thumb.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
