/* Kiddies Corner Specific Styles */
:root {
  /* Main colours*/
  --pink-dark: #d83d7f;
  --pink-bright: #ff5da4;
  --pink-medium: #ffa8ce;
  --pink-light: #ffc0dc;
  --pink-lighter: #ffe8f4;
  --white: #ffffff;
  --gray-medium: #868686;
  --black: #000000;

  /* Button colours */
  --button-bg: #ff5da4; /* Vibrant Pink for default button background */
  --button-hover-bg: #d83d7f; /* Darker Pink on hover */
  --button-text: #ffffff; /* White text for contrast */
  --button-border: #ffa8ce; /* Medium Pink for border */
}

.kiddies-hero {
  background: linear-gradient(135deg, var(--pink-medium) 0%, var(--white) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: "Fredoka", sans-serif;
  font-size: 3rem;
  color: var(--pink-dark);
  margin-bottom: 1.5rem;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--black);
}

.hero-text p {
  margin-bottom: 1rem;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-sprinkle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--pink-bright);
  border-radius: 50%;
  opacity: 0.6;
}

.floating-sprinkle:nth-child(1) {
  top: 20%;
  left: 10%;
}

.floating-sprinkle:nth-child(2) {
  top: 60%;
  right: 15%;
}

.floating-sprinkle:nth-child(3) {
  bottom: 30%;
  left: 20%;
}

/* Blog Grid Section */
.blog-grid-section {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.section-title {
  font-family: "Fredoka", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: var(--pink-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-medium);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--white);
  z-index: 2;
}

.beginner-badge {
  background: #4caf50;
}
.easy-badge {
  background: #2196f3;
}
.medium-badge {
  background: #ff9800;
}
.advanced-badge {
  background: #f44336;
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  color: #092c4c;
  margin-bottom: 0.5rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
  font-style: italic;
}

.blog-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.blog-features li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.blog-features li:before {
  content: "•";
  color: var(--pink-bright);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.blog-button {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.blog-button:hover {
  background: var(--button-hover-bg);
}

/* Recipe Finder Section */
.recipe-finder-section {
  padding: 4rem 2rem;
  background: var(--white);
  text-align: center;
}

.search-suggestions {
  margin-bottom: 1.5rem;
}

.suggestion-tag {
  background: #fde3fb;
  color: #4c092a;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  margin: 0 0.3rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block;
}

.suggestion-tag:hover {
  background: #fbbbf0;
}

.recipe-search {
  max-width: 500px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: var(--pink-bright);
}

.search-button {
  background: #ff5da4;
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-family: "Fredoka", sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-button:hover {
  background: #d83d7f;
}
.download-btn {
  font-family: "Glacial Indifference", sans-serif;
  font-size: 1.8rem;
  background-color: #ff5da4;
  color: white;
  border: none;
  padding: 1em 2em;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 93, 164, 0.3);
  font-weight: 600;
  /* Ensure it looks like a button */
  text-align: center;
}

.download-btn:hover {
  background-color: #d83d7f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 93, 164, 0.4);
  color: white;
  text-decoration: none;
}
.recipe-results {
  max-width: 1200px;
  margin: 2rem auto;
  text-align: left;
}

/* Recipe Results Styles */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.recipe-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.recipe-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.recipe-info {
  padding: 1.5rem;
}

.recipe-info h3 {
  font-family: "Fredoka", sans-serif;
  color: #092c4c;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gray-medium);
}

.ready-time,
.servings {
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

.recipe-summary {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.recipe-actions {
  display: flex;
  gap: 1rem;
}

.view-recipe-btn,
.save-recipe-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-family: "Fredoka", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  flex: 1;
  transition: all 0.3s ease;
}

.view-recipe-btn {
  background: #d83d7f;
  color: var(--white);
}

.view-recipe-btn:hover {
  background: #ff5da4;
}

.save-recipe-btn {
  background: var(--button-bg);
  color: var(--button-text);
}

.save-recipe-btn:hover {
  background: var(--button-hover-bg);
}

/* Saved Recipes Section */
.saved-recipes-section {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.saved-recipes-list {
  max-width: 1200px;
  margin: 0 auto;
}

.no-saved {
  text-align: center;
  padding: 3rem;
  color: var(--gray-medium);
  font-style: italic;
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 3rem;
  font-size: 1.1rem;
  color: #092c4c;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--gray-medium);
  font-style: italic;
}

.error {
  text-align: center;
  padding: 2rem;
  background: #ffebee;
  border-radius: 10px;
  color: #c62828;
}

.api-message {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/* Kiddies Blog Page Styles */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-post {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-header {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    var(--pink-lighter) 0%,
    var(--white) 100%
  );
  position: relative;
}

.blog-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-family: "Fredoka", sans-serif;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1rem;
}

.beginner-badge {
  background: #4caf50;
}
.easy-badge {
  background: #2196f3;
}
.medium-badge {
  background: #ff9800;
}
.advanced-badge {
  background: #f44336;
}

.blog-title {
  font-family: "Fredoka", sans-serif;
  font-size: 3rem;
  color: #d83d7f;
  margin-bottom: 1rem;
}

.blog-meta {
  font-size: 1.2rem;
  color: var(--gray-medium);
  margin-bottom: 2rem;
  font-style: italic;
}

.blog-hero-image {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-content {
  padding: 3rem;
}

.blog-content section {
  margin-bottom: 3rem;
}

.blog-content h2 {
  font-family: "Fredoka", sans-serif;
  color: #d83d7f;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-family: "Fredoka", sans-serif;
  color: var(--pink-bright);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.blog-content h4 {
  font-family: "Fredoka", sans-serif;
  color: #000000;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
  display: list-item;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-content li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.blog-content li strong {
  color: #092c4c;
}

.recipe-variation {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--pink-bright);
}

.download-btn {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 1rem 0;
}

.download-btn:hover {
  background: var(--button-hover-bg);
}

.blog-navigation {
  display: flex;
  justify-content: space-between;
  padding: 2rem 3rem;
  background: #f8f9fa;
  border-top: 2px solid #e9ecef;
}

.nav-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-weight: bold;
  transition: all 0.3s ease;
}

.back-btn {
  background: #6c757d;
  color: var(--white);
}

.back-btn:hover {
  background: #5a6268;
}

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

.next-btn:hover {
  background: #ff5da4;
}

.blog-celebration {
  text-align: center;
  background: linear-gradient(135deg, #fde3f0 0%, #f5e5e7 100%);
  padding: 2rem;
  border-radius: 15px;
  border: 2px dashed var(--pink-bright);
}

.blog-celebration h3 {
  color: #d83d7f;
  font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .search-button {
    width: 100%;
  }

  .recipe-actions {
    flex-direction: column;
  }

  .recipe-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-container {
    padding: 1rem;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-content {
    padding: 1.5rem;
  }

  .blog-navigation {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .blog-hero-image {
    height: 250px;
  }
}
