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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #2D2D2D 0%, #1a1a1a 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 179, 71, 0.1) 0%, transparent 40%);
}

/* Phone Frame */
.phone-frame-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 390px;
  height: 844px;
  background: #1a1a1a;
  border-radius: 50px;
  padding: 12px;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 35px;
  background: #1a1a1a;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #FFF8F0;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 430px) {
  body {
    padding: 0;
    background: #FFF8F0;
  }
  
  .phone-frame-container,
  .phone-frame {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  
  .phone-notch {
    display: none;
  }
  
  .phone-screen {
    border-radius: 0;
  }
}

/* Animations */
.slide-in {
  animation: slideIn 0.3s ease-out;
}

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

.pop-in {
  animation: popIn 0.3s ease-out forwards;
  opacity: 0;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Splash Screen */
.splash-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #FFF8F0 0%, #FFE8D6 100%);
  padding: 40px;
}

.splash-logo {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.splash-logo.animate {
  opacity: 1;
  transform: translateY(0);
}

.chef-hat {
  width: 100px;
  height: 100px;
  position: relative;
}

.hat-top {
  width: 80px;
  height: 50px;
  background: #fff;
  border-radius: 50px 50px 0 0;
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hat-band {
  width: 90px;
  height: 25px;
  background: #FF6B35;
  border-radius: 5px;
  position: absolute;
  bottom: 20px;
  left: 5px;
}

.steam {
  width: 6px;
  height: 30px;
  background: linear-gradient(to top, transparent, rgba(255, 107, 53, 0.5));
  position: absolute;
  top: -25px;
  border-radius: 3px;
  animation: steam 2s ease-in-out infinite;
}

.steam-1 { left: 25px; animation-delay: 0s; }
.steam-2 { left: 45px; animation-delay: 0.3s; }
.steam-3 { left: 65px; animation-delay: 0.6s; }

@keyframes steam {
  0%, 100% { 
    opacity: 0;
    transform: translateY(0) scaleY(0.5);
  }
  50% { 
    opacity: 1;
    transform: translateY(-15px) scaleY(1);
  }
}

.splash-title {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 8px;
}

.splash-tagline {
  font-size: 16px;
  color: #9E9E9E;
  margin-bottom: 60px;
}

.splash-button {
  background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
  color: white;
  border: none;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
  transition: all 0.2s ease;
}

.splash-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.splash-button.bounce {
  animation: bounce 2s ease-in-out infinite;
}

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

/* Progress Dots */
.progress-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 60px 0 30px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E0E0E0;
  transition: all 0.3s ease;
}

.dot.active {
  background: #FF6B35;
  width: 30px;
  border-radius: 5px;
}

.dot.completed {
  background: #4CAF50;
}

/* Onboarding */
.onboarding-flow {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFF8F0;
}

.onboarding-step {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}

.step-question {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 30px;
  text-align: center;
}

.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill-button {
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid #E0E0E0;
  background: white;
  font-size: 16px;
  font-weight: 500;
  color: #2D2D2D;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-button:hover {
  border-color: #FF6B35;
}

.pill-button.selected {
  background: #FF6B35;
  border-color: #FF6B35;
  color: white;
}

.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip-button {
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid #E0E0E0;
  background: white;
  font-size: 14px;
  color: #2D2D2D;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.chip-button.selected {
  background: #FFE8D6;
  border-color: #FF6B35;
  color: #FF6B35;
}

.chip-x {
  font-size: 16px;
}

.custom-input-row {
  display: flex;
  gap: 10px;
}

.custom-input-row input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid #E0E0E0;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.custom-input-row input:focus {
  border-color: #FF6B35;
}

.add-custom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FF6B35;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.skill-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border: 2px solid #E0E0E0;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-card:hover {
  border-color: #FF6B35;
  transform: translateY(-2px);
}

.skill-card.selected {
  border-color: #FF6B35;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
}

.skill-emoji {
  font-size: 40px;
  margin-bottom: 10px;
}

.skill-label {
  font-size: 18px;
  font-weight: 600;
  color: #2D2D2D;
}

.skill-desc {
  font-size: 14px;
  color: #9E9E9E;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.equipment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 2px solid #E0E0E0;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.equipment-btn:hover {
  border-color: #FF6B35;
}

.equipment-btn.selected {
  border-color: #4CAF50;
  background: #E8F5E9;
}

.eq-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.eq-label {
  font-size: 14px;
  color: #2D2D2D;
}

.eq-check {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #4CAF50;
  font-weight: bold;
}

.onboarding-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px 40px;
  background: #FFF8F0;
}

.nav-back {
  background: none;
  border: none;
  color: #9E9E9E;
  font-size: 16px;
  cursor: pointer;
}

.nav-next {
  background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}

/* Home Screen */
.home-screen {
  height: 100%;
  padding: 60px 20px 80px;
  overflow-y: auto;
  background: #FFF8F0;
}

.home-header {
  text-align: center;
  margin-bottom: 30px;
}

.greeting {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: #2D2D2D;
}

.subgreeting {
  font-size: 16px;
  color: #9E9E9E;
  margin-top: 4px;
}

.scan-button {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
  transition: all 0.2s ease;
}

.scan-button:hover {
  transform: translateY(-2px);
}

.scan-icon {
  font-size: 24px;
}

.last-scan-btn {
  width: 100%;
  padding: 14px;
  background: none;
  border: none;
  color: #FF6B35;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 30px;
}

.selection-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2D2D2D;
  margin-bottom: 12px;
}

.horizontal-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.occasion-chip {
  flex-shrink: 0;
  padding: 12px 18px;
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2D2D2D;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.occasion-chip:hover {
  border-color: #FF6B35;
}

.occasion-chip.selected {
  background: #FF6B35;
  border-color: #FF6B35;
  color: white;
}

.chip-check {
  font-size: 12px;
}

.cuisine-card {
  flex-shrink: 0;
  width: 100px;
  padding: 16px 12px;
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cuisine-card:hover {
  border-color: #FF6B35;
  transform: translateY(-2px);
}

.cuisine-card.selected {
  border-color: #FF6B35;
  background: #FFE8D6;
}

.cuisine-emoji {
  font-size: 32px;
}

.cuisine-label {
  font-size: 12px;
  font-weight: 500;
  color: #2D2D2D;
  text-align: center;
}

.bottom-cta {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, #FFF8F0 80%, transparent);
}

.generate-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
  transition: all 0.2s ease;
}

.generate-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #E0E0E0;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9E9E9E;
  transition: color 0.2s;
}

.nav-item.active {
  color: #FF6B35;
}

.nav-icon {
  font-size: 24px;
}

.nav-label {
  font-size: 12px;
}

/* Scan Screen */
.scan-screen {
  height: 100%;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.scan-header {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  color: white;
}

.scan-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.scan-header p {
  color: #9E9E9E;
  font-size: 14px;
}

.back-btn {
  position: absolute;
  top: 60px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

.back-btn.floating {
  background: rgba(0, 0, 0, 0.5);
}

.camera-view {
  flex: 1;
  background: #2D2D2D;
  border-radius: 24px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.upload-placeholder {
  text-align: center;
  color: #9E9E9E;
  cursor: pointer;
  padding: 40px;
  transition: all 0.2s ease;
}

.upload-placeholder:hover {
  color: #FF6B35;
}

.upload-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.upload-placeholder p {
  font-size: 16px;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px !important;
  opacity: 0.7;
}

.image-preview-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.fridge-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.change-photo-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.scanning-animation {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 4px;
  background: #FF6B35;
  animation: scanLine 2s linear infinite;
  box-shadow: 0 0 20px #FF6B35;
}

@keyframes scanLine {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.analyzing-text {
  color: #FF6B35;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.found-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  max-height: 200px;
  overflow-y: auto;
}

.found-item {
  background: rgba(255, 107, 53, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.scan-error {
  text-align: center;
  padding: 20px;
  color: white;
}

.scan-error p {
  margin-bottom: 16px;
  color: #FF6B6B;
}

.retry-btn {
  background: none;
  border: 2px solid #FF6B35;
  color: #FF6B35;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
}

.analyze-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.skip-scan-btn {
  background: none;
  border: none;
  color: #9E9E9E;
  font-size: 14px;
  cursor: pointer;
  margin: 0 auto 40px;
  display: block;
}

.photo-indicator {
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.photo-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.photo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.photo-dot.taken {
  background: #FF6B35;
}

.capture-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  border: 4px solid #FF6B35;
  margin: 0 auto 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
}

.capture-btn:active {
  transform: scale(0.95);
}

.capture-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FF6B35;
}

.skip-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin: 0 auto 40px;
  display: block;
}

/* Confirm Screen */
.confirm-screen {
  height: 100%;
  background: #FFF8F0;
  padding: 80px 20px 40px;
  overflow-y: auto;
}

.confirm-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: #2D2D2D;
  text-align: center;
  margin-bottom: 24px;
}

.ingredient-list {
  margin-bottom: 20px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ing-name {
  flex: 1;
  font-weight: 500;
  color: #2D2D2D;
}

.ing-qty {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.ing-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFE8E8;
  border: none;
  color: #E53935;
  font-size: 18px;
  cursor: pointer;
}

.add-ingredient-row {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.add-ingredient-row input {
  flex: 1;
  padding: 14px 18px;
  border: 2px dashed #E0E0E0;
  border-radius: 12px;
  font-size: 14px;
  background: white;
}

.add-ingredient-row button {
  width: 50px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
}

.confirm-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Generating Screen */
.generating-screen {
  height: 100%;
  background: linear-gradient(180deg, #FFF8F0 0%, #FFE8D6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.cooking-animation {
  margin-bottom: 40px;
}

.pot {
  width: 120px;
  height: 100px;
  position: relative;
}

.pot-body {
  width: 100px;
  height: 70px;
  background: linear-gradient(135deg, #5D4E37 0%, #3E3428 100%);
  border-radius: 0 0 40px 40px;
  position: absolute;
  bottom: 0;
  left: 10px;
}

.pot-handle-left,
.pot-handle-right {
  width: 20px;
  height: 15px;
  background: #5D4E37;
  position: absolute;
  top: 35px;
  border-radius: 5px;
}

.pot-handle-left { left: -5px; }
.pot-handle-right { right: -5px; }

.bubble {
  width: 12px;
  height: 12px;
  background: rgba(255, 107, 53, 0.6);
  border-radius: 50%;
  position: absolute;
  animation: bubbleRise 1.5s ease-in-out infinite;
}

.bubble-1 { left: 30px; bottom: 60px; }
.bubble-2 { left: 55px; bottom: 65px; animation-delay: 0.3s; }
.bubble-3 { left: 75px; bottom: 55px; animation-delay: 0.6s; }

@keyframes bubbleRise {
  0% { 
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% { 
    opacity: 1;
  }
  100% { 
    transform: translateY(-40px) scale(0.5);
    opacity: 0;
  }
}

.generating-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.gen-tag {
  padding: 8px 16px;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  color: #FF6B35;
  font-weight: 500;
}

.loading-message {
  font-size: 16px;
  color: #2D2D2D;
  text-align: center;
  margin-bottom: 30px;
  height: 24px;
}

.progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B35, #FFB347);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* Recipe List Screen */
.recipe-list-screen {
  height: 100%;
  background: #FFF8F0;
  padding: 60px 20px 20px;
  overflow-y: auto;
}

.list-header {
  text-align: center;
  margin-bottom: 20px;
}

.list-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 10px;
}

.list-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.list-tag {
  padding: 6px 14px;
  background: #FFE8D6;
  border-radius: 20px;
  font-size: 12px;
  color: #FF6B35;
  font-weight: 500;
}

.recipe-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recipe-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.recipe-card:hover {
  transform: translateY(-2px);
}

.recipe-image {
  height: 160px;
  position: relative;
  background: #E0E0E0;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-info {
  padding: 16px;
}

.recipe-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2D2D2D;
  margin-bottom: 10px;
}

.recipe-meta {
  display: flex;
  gap: 10px;
}

.meta-badge {
  padding: 6px 12px;
  background: #F5F5F5;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
}

.meta-badge.difficulty.easy { color: #4CAF50; }
.meta-badge.difficulty.medium { color: #FF9800; }
.meta-badge.difficulty.advanced { color: #F44336; }

/* Recipe Detail Screen */
.recipe-detail-screen {
  height: 100%;
  background: #FFF8F0;
  overflow-y: auto;
}

.detail-hero {
  height: 280px;
  position: relative;
  background: #E0E0E0;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  position: absolute;
  top: 60px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.save-btn-lg,
.share-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.detail-content {
  background: #FFF8F0;
  margin-top: -30px;
  border-radius: 30px 30px 0 0;
  padding: 30px 20px 100px;
  position: relative;
}

.detail-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2D2D2D;
  margin-bottom: 16px;
}

.ingredient-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  cursor: pointer;
}

.check-item.checked .check-text {
  text-decoration: line-through;
  color: #9E9E9E;
}

.check-item input {
  width: 22px;
  height: 22px;
  accent-color: #4CAF50;
}

.substitutions {
  margin-top: 16px;
  padding: 16px;
  background: #FFF3E0;
  border-radius: 12px;
}

.sub-text {
  font-size: 14px;
  color: #E65100;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #FF6B35, #FFB347);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
  line-height: 1.5;
  color: #2D2D2D;
}

.step-timer-btn {
  margin-top: 8px;
  padding: 8px 14px;
  background: #E3F2FD;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  color: #1976D2;
  cursor: pointer;
}

.detail-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 30px;
  background: linear-gradient(to top, #FFF8F0 80%, transparent);
}

.cook-mode-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

/* Cooking Mode Screen */
.cooking-mode-screen {
  height: 100%;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  color: white;
}

.cooking-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.cooking-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  transition: width 0.3s ease;
}

.exit-cooking-btn {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.cooking-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  text-align: center;
}

.step-indicator {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
}

.cooking-instruction {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 40px;
}

.cooking-timer {
  text-align: center;
}

.timer-display {
  font-size: 64px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 20px;
  color: #4CAF50;
}

.timer-control {
  padding: 14px 32px;
  background: #4CAF50;
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.timer-control.running {
  background: #FFA000;
}

.cooking-nav {
  display: flex;
  gap: 16px;
  padding: 20px 30px 50px;
}

.cooking-nav .nav-btn {
  flex: 1;
  padding: 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cooking-nav .nav-btn.prev {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
}

.cooking-nav .nav-btn.prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cooking-nav .nav-btn.next {
  background: #4CAF50;
  border: none;
  color: white;
}

/* Profile Screen */
.profile-screen {
  height: 100%;
  background: #FFF8F0;
  padding: 60px 20px 100px;
  overflow-y: auto;
}

.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FFE8D6, #FFD0B0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 12px;
}

.profile-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: #2D2D2D;
}

.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-section {
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-header span {
  font-weight: 600;
  color: #2D2D2D;
}

.edit-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.section-content {
  color: #666;
  font-size: 14px;
}

.profile-footer {
  text-align: center;
  margin-top: 40px;
  color: #9E9E9E;
  font-size: 14px;
}

.profile-footer a {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 500;
}