/* Updated Base Styles */
:root {
  --primary: #f9a8d4;       /* Pink-300 */
  --primary-light: #fce7f3;  /* Pink-100 */
  --primary-dark: #ec4899;   /* Pink-500 */
  --bg-color: #fdf2f8;       /* Pink-50 */
  --text-color: #831843;     /* Pink-900 */
  --text-light: #9d174d;     /* Pink-800 */
  --white: #ffffff;
  --gray-light: #f3f4f6;
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

/* Header */
.header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-back {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: calc(100vh - 80px);
  gap: 0;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--text-color);
  font-size: 1.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.category-card:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Recipe Detail Page - Improved */
.recipe-detail {
  padding: 1rem;
  height: calc(100vh - 80px);
  overflow-y: auto;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.recipe-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
}

.back-button {
  color: var(--primary-dark);
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
}

.ingredients-section, .steps-section {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.ingredients-list {
  list-style-type: none;
}

.ingredients-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--primary-light);
}

.steps-list {
  list-style-type: decimal;
  padding-left: 1.5rem;
}

.steps-list li {
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.start-cooking-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: auto;
  cursor: pointer;
  transition: background-color 0.2s;
}

.start-cooking-btn:hover {
  background-color: var(--primary-dark);
}

/* Cooking Mode Styles */
.cooking-mode {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  padding: 1rem;
  background-color: var(--bg-color);
}

.current-step {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.upcoming-steps {
  padding: 1rem;
  background-color: white;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  flex-grow: 1;
}

.upcoming-steps p {
  padding: 0.5rem 0;
  color: var(--text-light);
}

.navigation-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.nav-btn {
  flex: 1;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

.prev-btn {
  background-color: var(--primary-light);
  color: var(--text-color);
}

.next-btn {
  background-color: var(--primary);
  color: white;
}

.prev-btn:hover {
  background-color: #f8c3e0;
}

.next-btn:hover {
  background-color: var(--primary-dark);
}

.timer-display {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.start-timer-btn {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.start-timer-btn:hover {
  background-color: var(--primary-dark);
}



/* Responsive Adjustments */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
  
  .header h1 {
    font-size: 1.25rem;
    padding-left: 2.5rem;
  }
}
