/*
Theme Name: Recipes Ground Child
Theme URI: https://recipesground.com
Author: Assistant
Author URI: https://recipesground.com
Description: A child theme for the Astra parent theme, built specifically for a cooking recipes blog.
Template: astra
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recipesground-child
Tags: astra-child, responsive, recipe-blog, schema, seo-friendly
*/

/* Import parent theme styles */
/* Note: The parent theme’s stylesheet is enqueued via functions.php. */

/* Base typography and colors */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #fafcff;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  color: #005177;
  text-decoration: underline;
}

/* Hero section */
.rg-hero {
  background: linear-gradient(135deg, #0099cc 0%, #00b39f 100%);
  color: #ffffff;
  text-align: center;
  padding: 4rem 1.5rem;
}
.rg-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.rg-hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.rg-hero .cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #0073aa;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}
.rg-hero .cta-button:hover {
  background-color: #0073aa;
  color: #ffffff;
}

/* Category navigation */
.rg-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1.5rem;
}
.rg-categories a {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #0073aa;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.rg-categories a:hover {
  background-color: #0073aa;
  color: #ffffff;
  border-color: #0073aa;
}

/* Recipe grid */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  padding: 0 1.5rem;
  max-width: 1200px;
}
.rg-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}
.rg-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.rg-card img {
  width: 100%;
  height: auto;
  display: block;
}
.rg-card-content {
  padding: 1rem;
  flex: 1;
}
.rg-card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.rg-card-content .meta {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.75rem;
}
.rg-card-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.rg-card-content a {
  font-weight: 600;
}

/* Subscribe call-to-action section */
.rg-subscribe {
  background-color: #f7f9fc;
  border-top: 1px solid #e5e5e5;
  padding: 3rem 1.5rem;
  text-align: center;
}
.rg-subscribe h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.rg-subscribe p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}
.rg-subscribe .subscribe-button {
  display: inline-block;
  background-color: #0099cc;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}
.rg-subscribe .subscribe-button:hover {
  background-color: #0073aa;
}

/* Breadcrumbs */
.rg-breadcrumbs {
  font-size: 0.85rem;
  margin: 1rem 1.5rem;
  color: #555;
}
.rg-breadcrumbs a {
  color: #0073aa;
  text-decoration: none;
}
.rg-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Recipe Card Styles */
.recipe-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
}
.recipe-card .recipe-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.recipe-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.recipe-card .recipe-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1rem;
}
.recipe-card .recipe-ingredients,
.recipe-card .recipe-instructions {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.recipe-card .recipe-print {
  display: inline-block;
  margin-top: 1rem;
  background-color: #0099cc;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}
.recipe-card .recipe-print:hover {
  background-color: #0073aa;
}

/* Print styles */
@media print {
  /* Hide non-essential elements for print */
  .site-header,
  .rg-hero,
  .rg-categories,
  .rg-subscribe,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .recipe-card {
    border: none;
    margin: 0;
    max-width: 100%;
  }
}