/* *,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
} */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #be185d;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  font-weight: 400;
}

/* Controls */
.controls {
  background: #fdf2f8;
  border: 1px solid #fbcfe8 !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  margin-bottom: 32px;
}

.preset-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.preset-buttons .label {
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
}

.preset-btn {
  background: #ffffff !important;
  border: 2px solid #f9a8d4 !important;
  color: #be185d !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.preset-btn:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.preset-btn.active {
  background: #db2777;
  border-color: #db2777;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.input-row input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #fbcfe8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: inherit;
  transition: border-color 0.2s ease;
  outline: none;
  min-width: 0;
}

.input-row input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

.input-row input::placeholder {
  color: #9ca3af;
}

.generate-btn {
  background: #ec4899 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 28px !important;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.generate-btn:hover {
  background: #db2777;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

.generate-btn:active {
  transform: translateY(0);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: #ec4899;
  font-weight: 500;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #fbcfe8;
  border-top-color: #ec4899;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error */
.error {
  background: #fef2f2;
  border: 1px solid #fecaca !important;
  color: #b91c1c !important;
  padding: 16px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Quotes */
.quotes-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-card {
  background: #ffffff;
  border: 1px solid #fce7f3;
  border-left: 4px solid #f472b6;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.quote-card:hover {
  border-left-color: #ec4899;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 12px;
  padding-right: 40px;
}

.quote-text::before {
  content: '\201C';
  font-size: 2rem;
  color: #f9a8d4;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
}

.quote-author {
  font-size: 0.9rem;
  color: #db2777;
  font-weight: 600;
}

.quote-author::before {
  content: '\2014\00a0';
}

.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fdf2f8 !important;
  border: 1px solid #fbcfe8 !important;
  color: #db2777 !important;
  width: 36px;
  height: 36px;
  border-radius: 8px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 12px;
  padding: 0 !important;
}

.copy-btn:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
}

.copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

/* Download */
.download-section {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #fce7f3 !important;
}

.download-btn {
  background: #ffffff !important;
  border: 2px solid #f472b6 !important;
  color: #be185d !important;
  padding: 14px 32px !important;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-btn:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

/* No quotes message */
.no-quotes {
  text-align: center;
  padding: 60px 20px;
  color: #d1d5db;
}

.no-quotes p {
  font-size: 1.1rem;
  margin-top: 12px;
}

.no-quotes svg {
  width: 64px;
  height: 64px;
  color: #fbcfe8;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: #ffffff;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 24px 16px 40px;
  }

  .header h1 {
    font-size: 1.65rem;
  }

  .controls {
    padding: 20px 16px;
  }

  .preset-buttons {
    gap: 8px;
  }

  .preset-buttons .label {
    width: 100%;
    margin-bottom: -4px;
  }

  .preset-btn {
    padding: 6px 16px;
    font-size: 0.88rem;
  }

  .input-row {
    flex-direction: column;
  }

  .generate-btn {
    padding: 12px 20px;
  }

  .quote-card {
    padding: 18px;
  }

  .quote-text {
    font-size: 0.95rem;
    padding-right: 0;
    padding-top: 0;
  }

  .copy-btn {
    top: auto;
    bottom: 12px;
    right: 12px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
}
