@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Sarabun', 'Noto Sans Thai', sans-serif;
  --bg-primary: #0a0c10;
  --bg-surface: rgba(18, 22, 34, 0.75);
  --border-glow: rgba(99, 102, 241, 0.2);
  --primary-accent: #6366f1;
  --google-blue: #4285F4;
  --google-green: #34A853;
  --google-yellow: #FBBC05;
  --google-red: #EA4335;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.glass-card {
  background: rgba(18, 22, 34, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 32px -8px rgba(99, 102, 241, 0.25);
}

/* Google Flow Badge */
.gflow-badge {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.15));
  border: 1px solid rgba(66, 133, 244, 0.3);
  color: #93c5fd;
}

/* Neon Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modal Transitions */
.modal-overlay {
  background-color: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
}

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

::-webkit-scrollbar-track {
  background: #0b0f19;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* Hide scrollbar utility for horizontal navigation */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sound Equalizer Animation for Official Theme */
@keyframes eq-bar {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}
.animate-eq-1 { animation: eq-bar 0.7s ease-in-out infinite; }
.animate-eq-2 { animation: eq-bar 0.5s ease-in-out infinite 0.15s; }
.animate-eq-3 { animation: eq-bar 0.9s ease-in-out infinite 0.3s; }
.animate-eq-4 { animation: eq-bar 0.6s ease-in-out infinite 0.45s; }
.animate-eq-5 { animation: eq-bar 0.8s ease-in-out infinite 0.2s; }

/* Bottom Music Player Layout Spacing */
body.has-music-player {
  padding-bottom: 74px !important;
}

@media (max-width: 768px) {
  body.has-music-player {
    padding-bottom: 120px !important;
  }
}
