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

:root {
  --cream: #FFF8F0;
  --blush: #FFE5E5;
  --lavender: #E8E0F0;
  --rose: #E8B4B8;
  --gold: #C9A962;
  --gold-light: #F0E6C8;
  --text-dark: #2D2A32;
  --text-medium: #5A5560;
  --text-light: #8A8490;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: linear-gradient(135deg, #FFE5E5 0%, #E8E0F0 50%, #F0E6C8 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sparkles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-sparkle {
  position: absolute;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-15px) rotate(180deg); opacity: 0.8; }
}

.header-content {
  position: relative;
  z-index: 1;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.title-glow {
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-medium);
  letter-spacing: 0.05em;
}

/* Main */
.main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-form {
  margin-bottom: 1rem;
}

.search-wrapper {
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  border: 2px solid var(--lavender);
  border-radius: 50px;
  background: white;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(200, 180, 200, 0.15);
}

.search-input:focus {
  border-color: var(--rose);
  box-shadow: 0 4px 25px rgba(232, 180, 184, 0.3);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-button {
  padding: 1rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 180, 184, 0.4);
}

.search-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 80px;
  background: white;
  border: 1px solid var(--lavender);
  border-radius: 12px;
  margin-top: 0.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow: hidden;
}

.suggestion-item {
  width: 100%;
  padding: 0.75rem 1.5rem;
  text-align: left;
  border: none;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggestion-item:hover {
  background: var(--blush);
}

/* Chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.chips-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.chip {
  padding: 0.5rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  background: white;
  border: 1px solid var(--lavender);
  border-radius: 50px;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover:not(:disabled) {
  background: var(--blush);
  border-color: var(--rose);
  color: var(--text-dark);
}

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

.surprise-button {
  display: block;
  margin: 1rem auto 0;
  padding: 0.75rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  background: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: 50px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.surprise-button:hover:not(:disabled) {
  background: var(--gold);
  color: white;
  transform: scale(1.02);
}

/* Favorites */
.favorites-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--lavender);
}

.favorites-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.favorites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.favorite-item {
  display: flex;
  align-items: center;
  background: var(--blush);
  border-radius: 50px;
  overflow: hidden;
}

.favorite-name {
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border: none;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: var(--text-dark);
  cursor: pointer;
}

.favorite-name:hover {
  text-decoration: underline;
}

.remove-favorite {
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--text-light);
  cursor: pointer;
}

.remove-favorite:hover {
  color: var(--rose);
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 3rem;
}

.loading-animation {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.serum-drop {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: drop 1s ease-in-out infinite;
}

.serum-drop.delay-1 { animation-delay: 0.2s; }
.serum-drop.delay-2 { animation-delay: 0.4s; }

@keyframes drop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(0.9); }
}

.loading-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  font-style: italic;
}

.loading-celebrity {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 16px;
  border: 2px dashed var(--lavender);
}

.error-state p:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.error-suggestion {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Celebrity Card */
.celebrity-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(200, 180, 200, 0.15);
  border: 1px solid var(--lavender);
  animation: fadeIn 0.5s ease;
}

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

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

.celebrity-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.celebrity-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 0.25rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.favorite-btn,
.share-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--lavender);
  border-radius: 50%;
  background: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover,
.share-btn:hover {
  transform: scale(1.1);
  border-color: var(--rose);
}

.favorite-btn.favorited {
  background: var(--blush);
  border-color: var(--rose);
}

.celebrity-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--lavender);
}

/* Routines Container */
.routines-container {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .routines-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Routine Section */
.routine-section {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  font-size: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Routine Step */
.routine-step {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.routine-step:hover {
  border-color: var(--lavender);
}

.routine-step.expanded {
  border-color: var(--rose);
}

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

.step-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-title-section {
  flex: 1;
  min-width: 0;
}

.step-type {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.125rem;
}

.step-product {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-expand {
  color: var(--rose);
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
}

.step-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lavender);
  animation: expand 0.2s ease;
}

@keyframes expand {
  from { opacity: 0; }
  to { opacity: 1; }
}

.step-tip {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.5;
}

.tip-label {
  font-weight: 600;
  color: var(--gold);
}

.step-price {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Secret Weapons */
.secret-weapons {
  background: linear-gradient(135deg, var(--blush) 0%, var(--gold-light) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.secrets-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.secrets-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.secret-item {
  background: white;
  border-radius: 12px;
  padding: 1rem;
}

.secret-habit {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.secret-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-medium);
}

/* Skin Stats */
.skin-stats {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.stats-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.disclaimer-inline {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--lavender);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--rose);
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    padding: 2rem 1rem;
  }

  .title {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .search-wrapper {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .search-button {
    width: 100%;
  }

  .suggestions {
    right: 0;
  }

  .celebrity-name {
    font-size: 1.75rem;
  }

  .celebrity-card {
    padding: 1.5rem;
  }
}