/*
Theme Name: GeneratePress Child - RezepteProfi Style
Description: Child theme for GeneratePress with rezepteprofi-inspired design
Author: Your Name
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* Import Parent Theme Styles */
@import url("../generatepress vcld/style.css");

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =======================
   GRANDMAEATS COLOR SCHEME
   ======================= */
:root {
  /* Primary Colors */
  --primary-orange: #8FB072;
  --primary-white: #ffffff;
  --primary-black: #000000;
  --accent-yellow: #f58765;
  
  /* Secondary Colors */
  --light-gray: #f8f8f8;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --border-color: #eeeeee;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-base: 18px;
  --font-size-mobile: 16px;
  --line-height: 1.6;
  
  /* Spacing */
  --container-width: 1200px;
  --grid-gap: 30px;
  --border-radius: 12px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =======================
   GLOBAL TYPOGRAPHY & LAYOUT
   ======================= */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--primary-black);
  margin: 0;
  padding: 0;
}

/* Ensure the entire site is centered */
#page,
.site {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* =======================
   HEADER CUSTOMIZATION
   ======================= */
.site-header {
  background: var(--primary-white);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.site-header .inside-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
}

.site-description {
  font-size: 1.1rem;
  color: var(--dark-gray);
  font-weight: 400;
}

/* =======================
   NAVIGATION STYLING
   ======================= */
.main-navigation {
  background: transparent;
}

.main-navigation .inside-navigation {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.main-navigation .main-nav ul li a {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: var(--primary-black);
  padding: 12px 20px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
  color: var(--primary-orange);
  border-bottom-color: var(--primary-orange);
  text-decoration: none;
}

.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--primary-orange);
  border-bottom-color: var(--primary-orange);
}

/* =======================
   HERO SECTION
   ======================= */
.hero-section {
  background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-gray) 100%);
  padding: 80px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.3rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-author {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

.hero-author-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.hero-author-image {
  flex-shrink: 0;
}

.hero-author-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-orange);
  box-shadow: 0 4px 15px rgba(228, 126, 75, 0.3);
}

.hero-author-info {
  text-align: left;
}

.hero-author-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0 0 8px 0;
}

.hero-author-info p {
  font-size: 1rem;
  color: var(--dark-gray);
  margin: 0;
  font-weight: 500;
}

/* =======================
   RECIPE CARDS GRID
   ======================= */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap);
  margin: 60px 0;
}

.recipe-card {
  background: var(--primary-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.recipe-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card-image {
  transform: scale(1.05);
}

.recipe-card-content {
  padding: 25px;
  text-align: center;
}

.recipe-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 10px;
  line-height: 1.3;
}

.recipe-card-excerpt {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.5;
  margin-bottom: 15px;
}

.recipe-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.recipe-card-button {
  background: var(--primary-orange);
  color: var(--primary-white);
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.recipe-card-button:hover {
  background: #d66d3a;
  color: var(--primary-white);
}

/* =======================
   CATEGORY SECTIONS
   ======================= */
.category-section {
  margin: 80px 0;
}

.category-header {
  text-align: center;
  margin-bottom: 50px;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 15px;
}

.category-description {
  font-size: 1.1rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* =======================
   TRENDING SECTION
   ======================= */
.trending-section {
  background: var(--light-gray);
  padding: 80px 0;
}

.trending-badge {
  background: var(--accent-yellow);
  color: var(--primary-black);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */
@media (max-width: 768px) {
  :root {
    --font-size-base: var(--font-size-mobile);
    --grid-gap: 20px;
    --container-width: 100%;
  }
  
  /* Ensure mobile centering */
  #page,
  .site,
  .container-custom,
  .grid-container,
  .inside-container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .recipes-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-author {
    margin-top: 30px;
  }
  
  .hero-author-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    max-width: 300px;
    padding: 25px 20px;
  }
  
  .hero-author-info {
    text-align: center;
  }
  
  .hero-author-image img {
    width: 80px;
    height: 80px;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .main-navigation .main-nav ul li a {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .recipe-card-content {
    padding: 20px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .category-title {
    font-size: 1.8rem;
  }
}

/* =======================
   ARCHIVE/CATEGORY PAGES
   ======================= */
.archive-header {
  text-align: center;
  padding: 60px 0;
  background: var(--light-gray);
}

.archive-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 15px;
}

.archive-description {
  font-size: 1.2rem;
  color: var(--dark-gray);
  max-width: 800px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--grid-gap);
  padding: 60px 0;
}

/* =======================
   FOOTER STYLING
   ======================= */
.site-footer {
  background: var(--dark-gray);
  color: var(--primary-white);
  padding: 60px 0 30px;
  text-align: center;
}

.site-footer .inside-site-info {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.footer-widgets {
  margin-bottom: 40px;
}

.footer-bar {
  border-top: 1px solid #555;
  padding-top: 30px;
  font-size: 0.9rem;
  color: #ccc;
}

/* =======================
   UTILITY CLASSES
   ======================= */
.container-custom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure main content areas are centered */
.site-content,
.site-content-custom,
.main-content,
.content-area {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Center the entire site wrapper */
.site,
.hfeed {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

/* Override any left-aligned parent theme styles */
.inside-article,
.entry-content,
.post,
.page {
  margin: 0 auto;
  width: 100%;
  text-align: left;
}

/* GeneratePress specific centering */
.grid-container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.inside-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Ensure full-width sections are contained */
.site-header,
.main-navigation,
.site-main,
.site-footer {
  width: 100%;
  box-sizing: border-box;
}

/* Container for full-width backgrounds but centered content */
.full-width-section {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.full-width-section .container-custom {
  max-width: var(--container-width);
  margin: 0 auto;
}

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

.btn-primary {
  background: var(--primary-orange);
  color: var(--primary-white);
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #d66d3a;
  color: var(--primary-white);
}

/* =======================
   PINTEREST STYLE IMPROVEMENTS
   ======================= */
.pinterest-grid {
  columns: 3;
  column-gap: var(--grid-gap);
}

.pinterest-grid .recipe-card {
  break-inside: avoid;
  margin-bottom: var(--grid-gap);
  display: inline-block;
  width: 100%;
}

@media (max-width: 1024px) {
  .pinterest-grid {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .pinterest-grid {
    columns: 1;
  }
}

.category-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.category-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}
