/* SongSearchers.com - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Proxima+Nova:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #fe2c55;
  --primary-hover: #ef1d46;
  --primary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --destructive: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Container */
.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 4rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.nav-links {
  display: none;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--foreground);
}

.nav-link-desktop {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link-desktop:hover {
  color: var(--primary);
}

.nav-link-desktop.nav-link-active {
  color: var(--muted-foreground);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hide auth container and Find Songs link on mobile - sign-in button is in mobile menu */
@media (max-width: 767px) {
  #auth-container,
  .nav-link-desktop {
    display: none;
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: var(--muted);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  background: var(--muted);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--muted);
  color: var(--foreground);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--muted) 0%, var(--background) 100%);
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* Search Form */
.search-form {
  max-width: 40rem;
  margin: 0 auto;
}

.search-input-wrapper {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.search-input {
  flex: 1;
  min-height: 5rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.search-input.single-line {
  min-height: auto;
  height: 3.5rem;
  resize: none;
  padding: 0.75rem 1.25rem;
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.search-btn {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
}

/* Search Type Options (Radio-style links) */
.search-type-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.search-type-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.search-type-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-type-option:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.search-type-option:hover .radio-circle {
  border-color: var(--primary);
}

.radio-circle {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s ease;
}

.search-type-option:hover .radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.search-type-option.active {
  pointer-events: none;
  cursor: default;
}

.search-type-option.active .radio-circle {
  border-color: var(--primary);
}

.search-type-option.active .radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Input Helper Text */
.input-helper-text {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  text-align: center;
}

/* Loading Spinner */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* Results Section */
.results-section {
  padding: 2rem 0 4rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.results-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Result Card */
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

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

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.result-song-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.result-artist {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}

.confidence-high {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.confidence-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.confidence-low {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.result-reason {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.amazon-btn {
  width: 100%;
  background: #ff9900;
  color: #0f1111;
  border-color: #ff9900;
  font-weight: 600;
}

.amazon-btn:hover:not(:disabled) {
  background: #e68a00;
  border-color: #e68a00;
}

.amazon-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--muted-foreground);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--muted-foreground);
  max-width: 24rem;
  margin: 0 auto;
}

/* Error Message */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--destructive);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 1rem;
  text-align: center;
}

/* Disclaimer */
.disclaimer {
  background: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 1.5rem;
}

/* Usage Counter */
.usage-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.usage-counter strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--background);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-xl);
  max-width: 28rem;
  width: 100%;
  padding: 2rem;
  position: relative;
  animation: modal-enter 0.2s ease;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.modal-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.modal-icon svg {
  width: 2rem;
  height: 2rem;
}

.modal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal p {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.google-btn {
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  font-weight: 500;
}

.google-btn:hover {
  background: var(--muted);
}

.google-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
.footer {
  margin-top: auto;
  background: var(--foreground);
  color: #ffffff;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-col p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

/* Subfooter */
.subfooter {
  background: #0a0a0a;
  padding: 1rem 0;
  text-align: center;
}

.subfooter p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* How It Works Section */
.how-it-works {
  padding: 3rem 0;
  background: var(--background);
}

.how-it-works h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Rate Limit Message */
.rate-limit-message {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #92400e;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1rem;
}

.rate-limit-message strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--background);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.5rem;
}

.mobile-menu-links {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  background: var(--muted);
}

.mobile-menu-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu-footer .btn {
  width: 100%;
}

/* Hero Simple (for Find Songs page) */
.hero-simple {
  padding: 2rem 0;
  text-align: center;
}

.hero-simple h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-simple p {
  color: var(--muted-foreground);
}

/* Methods Section */
.methods-section {
  padding: 2rem 0 4rem;
}

.methods-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .methods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.method-card {
  display: block;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.method-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.method-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(254, 44, 85, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.method-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.method-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Auth Page Styles */
.auth-page {
  min-height: 100vh;
  background: var(--background);
}

.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--background);
}

.auth-left-inner {
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  display: inline-flex;
  margin-bottom: 2rem;
}

.auth-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-google:hover {
  border-color: var(--foreground);
  background: var(--muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.forgot-link:hover {
  color: var(--primary);
}

.form-group input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.25rem;
}

.password-toggle:hover {
  color: var(--foreground);
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.auth-footer-text {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.auth-footer-text a {
  color: var(--primary);
  font-weight: 500;
}

.auth-right {
  flex: 1;
  display: none;
  background: #1a1a2e;
  color: #ffffff;
  padding: 3rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .auth-right {
    display: flex;
  }
}

.auth-right-inner {
  max-width: 480px;
}

.auth-right h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(254, 44, 85, 0.15);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.benefit-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.benefit-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--foreground);
}

.cookie-banner a {
  color: var(--primary);
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Legal Pages */
.legal-page {
  flex: 1;
  padding: 3rem 0;
}

.legal-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.legal-updated {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  color: var(--foreground);
}

.legal-section p {
  margin-bottom: 1rem;
  color: var(--foreground);
  line-height: 1.7;
}

.legal-section ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  color: var(--foreground);
  line-height: 1.6;
}

.legal-section li strong {
  color: var(--foreground);
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--primary-hover);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 2rem 0;
  }

  .legal-page h1 {
    font-size: 1.75rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }
}

/* Homepage Content Sections */
.content-section,
.search-methods-section,
.speed-section,
.start-section,
.why-section,
.faq-section,
.cta-section {
  padding: 4rem 0;
}

.content-section {
  background: var(--muted);
}

.content-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.trends-source {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  margin: -1rem auto 1.5rem;
  font-style: italic;
  opacity: 0.8;
  display: none;
}

.use-cases {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  display: inline-block;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Search Methods Grid */
.search-methods-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.method-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}

.method-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.method-card h3 {
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.method-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* Speed Section */
.speed-section {
  background: var(--muted);
}

.speed-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.speed-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.speed-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.speed-item svg {
  color: var(--primary);
}

.speed-cta {
  text-align: center;
  font-size: 1.125rem;
  color: var(--foreground);
  font-weight: 600;
}

/* Start Section */
.start-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.highlight-text {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 1.5rem 0;
}

.start-content {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.simple-list li {
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Why Section */
.why-section {
  background: var(--muted);
}

.why-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.benefits-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  color: var(--foreground);
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  background: var(--success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.section-outro {
  text-align: center;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 2rem auto 0;
}

.section-note {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 1.5rem;
}

/* FAQ Section */
.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--card);
  padding: 1.25rem 1.5rem;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--foreground);
}

.faq-item p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4d6d 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.cta-tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem !important;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .content-section,
  .search-methods-section,
  .speed-section,
  .start-section,
  .why-section,
  .faq-section,
  .cta-section {
    padding: 3rem 0;
  }

  .section-intro {
    font-size: 1rem;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }

  .speed-features {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Additional Page Content Sections */
.how-it-works-detailed {
  padding: 4rem 0;
}

.how-it-works-detailed h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.use-case-section {
  padding: 4rem 0;
  background: var(--muted);
}

.use-case-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.tips-section {
  padding: 4rem 0;
}

.tips-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.tips-list {
  list-style: none;
  padding: 0;
  max-width: 40rem;
  margin: 2rem auto;
}

.tips-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  line-height: 1.6;
}

.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--primary);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .how-it-works-detailed,
  .use-case-section,
  .tips-section {
    padding: 3rem 0;
  }
}

/* Examples Section */
.examples-section {
  padding: 4rem 0;
  background: var(--muted);
}

.examples-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 48rem;
  margin: 2rem auto;
}

.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.example-card p {
  font-style: italic;
  color: var(--foreground);
  margin: 0;
}

/* Centered Simple List */
.simple-list-centered {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 24rem;
  text-align: center;
}

.simple-list-centered li {
  padding: 0.5rem 0;
  color: var(--foreground);
}

@media (max-width: 768px) {
  .examples-section {
    padding: 3rem 0;
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
  }
}

/* TikTok Trending Songs Section */
.trending-section {
  padding: 4rem 0;
  background: var(--muted);
}

.trending-section h2,
.hashtags-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.trending-songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.trending-song-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  width: 100%;
}

.trending-song-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.trending-song-card:active {
  transform: translateY(0);
}

.trending-song-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), #25f4ee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trending-song-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.trending-song-info {
  flex: 1;
  min-width: 0;
}

.trending-song-title {
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-song-artist {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hashtags Section */
.hashtags-section {
  padding: 4rem 0;
}

.hashtags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.hashtag-btn {
  display: inline-block;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hashtag-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Challenges List */
.challenges-list {
  list-style: none;
  padding: 0;
  max-width: 40rem;
  margin: 2rem auto;
}

.challenges-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  line-height: 1.6;
}

.challenges-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--warning);
  border-radius: 50%;
}

/* TikTok Status Badge */
.tiktok-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
}

.tiktok-status-trending {
  background: rgba(37, 244, 238, 0.15);
  color: #00a79d;
}

.tiktok-status-popular {
  background: rgba(254, 44, 85, 0.1);
  color: var(--primary);
}

.tiktok-status-low {
  background: var(--muted);
  color: var(--muted-foreground);
}

.loading-text {
  text-align: center;
  color: var(--muted-foreground);
  font-style: italic;
}

@media (max-width: 768px) {
  .trending-section,
  .hashtags-section {
    padding: 3rem 0;
  }
  
  .trending-songs-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Page */
/* Dashboard Hero */
.dashboard-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4d6d 100%);
  padding: 2.5rem 0;
  color: white;
}

.dashboard-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-avatar {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.dashboard-avatar svg {
  color: white;
}

.dashboard-hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: white;
}

.dashboard-email {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.dashboard-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.dashboard-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Dashboard Content */
.dashboard-section {
  padding: 2rem 0 3rem;
  min-height: 50vh;
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dashboard-card-header svg {
  color: var(--primary);
}

.dashboard-card h2 {
  font-size: 1.25rem;
  margin: 0;
}

.dashboard-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.dashboard-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--muted);
  border-radius: var(--radius);
  color: var(--foreground);
  font-weight: 500;
  transition: background 0.2s ease;
}

.dashboard-link:hover {
  background: var(--border);
}

.dashboard-link svg {
  color: var(--primary);
}

.dashboard-usage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.usage-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.usage-label {
  color: var(--muted-foreground);
}

.usage-value {
  font-weight: 600;
  font-size: 1.25rem;
}

.usage-bar {
  height: 8px;
  background: var(--muted);
  border-radius: 4px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff4d6d);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.usage-remaining {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

