/* ===================================
   AAA - The Amazing Alternative to Awesome
   Soft Light Blue Yoga Theme
   =================================== */

:root {
  /* Soft Light Blue Palette */
  --primary-light: #e8f4f8;
  --primary: #b8d4e3;
  --primary-medium: #89b4c8;
  --primary-dark: #5a8fa8;
  --accent: #7eb8c9;
  --accent-hover: #6aa8b9;
  
  /* Neutral Colors */
  --white: #ffffff;
  --cream: #fafcfd;
  --text-dark: #2c4a56;
  --text-medium: #4a6b7a;
  --text-light: #6b8a99;
  
  /* Warm Accents */
  --warm-accent: #d4a574;
  --warm-light: #f5e6d3;
  
  /* Shadows & Effects */
  --shadow-soft: 0 4px 20px rgba(90, 143, 168, 0.12);
  --shadow-medium: 0 8px 30px rgba(90, 143, 168, 0.18);
  --shadow-hover: 0 12px 40px rgba(90, 143, 168, 0.22);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--cream) 50%, var(--primary-light) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-md);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Decorative Elements */
.lotus-decoration {
  position: fixed;
  width: 200px;
  height: 200px;
  opacity: 0.06;
  background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 0;
}

.lotus-decoration.top-left {
  top: -50px;
  left: -50px;
}

.lotus-decoration.bottom-right {
  bottom: -50px;
  right: -50px;
}

/* Header */
.header {
  text-align: center;
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.logo-icon {
  font-size: 2.5rem;
  animation: gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.logo-text h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.1em;
  margin: 0;
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 400;
  margin: 0;
}

.subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: var(--space-xs);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-medium);
}

.card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
  text-align: center;
}

.section-description {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(90, 143, 168, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 143, 168, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(126, 184, 201, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 184, 201, 0.4);
}

.btn-icon {
  font-size: 1.1rem;
}

/* Input Group */
.input-group {
  margin-bottom: var(--space-md);
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: var(--space-xs);
}

.text-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: all 0.3s ease;
}

.text-input::placeholder {
  color: var(--text-light);
  font-style: italic;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(90, 143, 168, 0.15);
}

.input-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
  font-style: italic;
}

/* Result Box */
.result-box {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--warm-light) 100%);
  border-radius: var(--radius-md);
  text-align: center;
  animation: fadeIn 0.4s ease;
  border-left: 4px solid var(--primary-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-word {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: capitalize;
}

.result-cue {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
  font-style: italic;
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary-dark);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

/* Tips Section */
.tips-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
}

.tip-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tip-content p {
  font-size: 0.95rem;
  color: var(--text-medium);
  padding-left: var(--space-xs);
}

.tip-content em {
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 500;
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 1;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  margin-top: var(--space-xs);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .app-container {
    padding: var(--space-sm);
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .logo-text h1 {
    font-size: 2rem;
  }
  
  .logo-icon {
    font-size: 2rem;
  }
  
  .result-word {
    font-size: 1.75rem;
  }
  
  .result-cue {
    font-size: 1.1rem;
  }
}

/* Touch-friendly adjustments */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .card:hover {
    box-shadow: var(--shadow-soft);
  }
}

/* Dark mode support (optional enhancement) */
@media (prefers-color-scheme: dark) {
  /* Could add dark mode styles here if needed */
}

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

/* Focus styles for accessibility */
.btn:focus-visible,
.text-input:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}
