/* Variables CSS pour les thèmes */
:root {
  --bg-gradient-light: linear-gradient(135deg, #f0f9ff 0%, #f3e8ff 50%, #fdf2f8 100%);
  --bg-gradient-dark: linear-gradient(135deg, #1f2937 0%, #581c87 50%, #1e3a8a 100%);
  --container-bg-light: rgba(255, 255, 255, 0.8);
  --container-bg-dark: rgba(31, 41, 55, 0.3);
  --container-border-light: rgba(255, 255, 255, 0.2);
  --container-border-dark: rgba(107, 114, 128, 0.5);
  --text-primary-light: #1f2937;
  --text-primary-dark: #ffffff;
  --text-secondary-light: #7c3aed;
  --text-secondary-dark: #c4b5fd;
  --text-muted-light: #6b7280;
  --text-muted-dark: #9ca3af;
  --btn-primary-bg: #7c3aed;
  --btn-primary-hover: #6d28d9;
  --btn-secondary-bg-light: #f3f4f6;
  --btn-secondary-bg-dark: #374151;
  --btn-secondary-hover-light: #e5e7eb;
  --btn-secondary-hover-dark: #4b5563;
  --btn-twitter-bg: #3b82f6;
  --btn-twitter-hover: #2563eb;
  --theme-btn-bg-light: #ffffff;
  --theme-btn-bg-dark: #1f2937;
  --theme-btn-hover-light: #f9fafb;
  --theme-btn-hover-dark: #374151;
  --theme-btn-text-light: #374151;
  --theme-btn-text-dark: #fbbf24;
  --logo-bg-light: rgba(255, 255, 255, 0.7);
  --logo-bg-dark: rgba(31, 41, 55, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  transition: all 0.5s ease;
}

.app {
  min-height: 100vh;
  background: var(--bg-gradient-light);
  transition: all 0.5s ease;
}

.app.dark {
  background: var(--bg-gradient-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.theme-btn {
  padding: 0.75rem;
  border-radius: 50%;
  border: none;
  background: var(--theme-btn-bg-light);
  color: var(--theme-btn-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app.dark .theme-btn {
  background: var(--theme-btn-bg-dark);
  color: var(--theme-btn-text-dark);
}

.theme-btn:hover {
  background: var(--theme-btn-hover-light);
  transform: scale(1.05);
}

.app.dark .theme-btn:hover {
  background: var(--theme-btn-hover-dark);
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

.app.dark .sun-icon {
  display: none;
}

.app.dark .moon-icon {
  display: block;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: var(--logo-bg-light);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.app.dark .logo {
  background: var(--logo-bg-dark);
}

.quote-icon {
  color: var(--text-secondary-light);
  transition: all 0.3s ease;
}

.app.dark .quote-icon {
  color: var(--text-secondary-dark);
}

.logo h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary-light);
  transition: all 0.3s ease;
}

.app.dark .logo h1 {
  color: var(--text-primary-dark);
}

/* Quote Container */
.quote-container {
  max-width: 64rem;
  width: 100%;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  background: var(--container-bg-light);
  border: 1px solid var(--container-border-light);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.5s ease;
}

.app.dark .quote-container {
  background: var(--container-bg-dark);
  border-color: var(--container-border-dark);
}

.quote-content {
  text-align: center;
  transition: all 0.3s ease;
}

.quote-content.fade-out {
  opacity: 0;
  transform: translateY(1rem);
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--text-primary-light);
  font-weight: 400;
  transition: all 0.3s ease;
}

.app.dark .quote-text {
  color: var(--text-primary-dark);
}

.quote-author {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary-light);
  transition: all 0.3s ease;
}

.app.dark .quote-author {
  color: var(--text-secondary-dark);
}

/* Actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: scale(1.05);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--btn-secondary-bg-light);
  color: var(--text-primary-light);
}

.app.dark .btn-secondary {
  background: var(--btn-secondary-bg-dark);
  color: var(--text-primary-dark);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover-light);
}

.app.dark .btn-secondary:hover {
  background: var(--btn-secondary-hover-dark);
}

.btn-secondary.copied {
  background: #10b981;
  color: white;
}

.btn-twitter {
  background: var(--btn-twitter-bg);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
}

.btn-twitter:hover {
  background: var(--btn-twitter-hover);
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  transition: all 0.3s ease;
}

.app.dark .footer p {
  color: var(--text-muted-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .quote-container {
    padding: 2rem 1.5rem;
  }
  
  .quote-text {
    font-size: 1.5rem;
  }
  
  .quote-author {
    font-size: 1.125rem;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .theme-toggle {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .quote-text {
    font-size: 1.25rem;
  }
  
  .quote-author {
    font-size: 1rem;
  }
  
  .logo h1 {
    font-size: 1.125rem;
  }
}