/*
Theme Name: PennyRecipe
Theme URI: https://example.com/pennyrecipe
Author: PennyRecipe Theme
Author URI: https://example.com
Description: A premium recipe blog theme inspired by modern food blogs. Features beautiful recipe card grids, sticky navigation, search overlay, and full recipe plugin compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pennyrecipe
Tags: food-and-drink, blog, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, theme-options, sticky-post
*/

/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */
:root {
  /* Colors */
  --pr-primary: #802F51;
  --pr-primary-dark: #5D1A36;
  --pr-primary-light: #a3456e;
  --pr-secondary: #228284;
  --pr-secondary-dark: #1a6566;
  --pr-accent: #d4a853;
  --pr-bg: #FFFFFF;
  --pr-bg-alt: #F2F4F7;
  --pr-card-bg: #FAFAFA;
  --pr-text: #232323;
  --pr-text-light: #555555;
  --pr-text-muted: #888888;
  --pr-border: #E5E7EB;
  --pr-shadow: rgba(97, 97, 97, 0.12);
  --pr-shadow-hover: rgba(97, 97, 97, 0.28);
  --pr-overlay: rgba(0, 0, 0, 0.55);

  /* Typography */
  --pr-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --pr-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* Spacing */
  --pr-gap: 20px;
  --pr-gap-lg: 40px;
  --pr-gap-xl: 60px;
  --pr-radius: 10px;
  --pr-radius-sm: 6px;
  --pr-radius-lg: 16px;

  /* Layout */
  --pr-max-width: 1320px;
  --pr-sidebar-width: 336px;
  --pr-header-height: 70px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--pr-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--pr-text);
  background-color: var(--pr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pr-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pr-primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--pr-font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--pr-text);
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.section-title {
  font-family: var(--pr-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--pr-text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--pr-text-light);
  margin-bottom: var(--pr-gap-lg);
  max-width: 680px;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.pr-container {
  width: 100%;
  max-width: var(--pr-max-width);
  margin: 0 auto;
  padding: 0 var(--pr-gap);
}

.pr-section {
  padding: var(--pr-gap-xl) 0;
}

.pr-section--alt {
  background-color: var(--pr-bg-alt);
}

.pr-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pr-gap);
}

.pr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pr-gap);
}

.pr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pr-gap);
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--pr-sidebar-width);
  gap: var(--pr-gap-lg);
  align-items: start;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.pr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--pr-font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.pr-btn--primary {
  background-color: var(--pr-primary);
  color: #fff;
  border: 2px solid var(--pr-primary);
}

.pr-btn--primary:hover {
  background-color: var(--pr-primary-dark);
  border-color: var(--pr-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(128, 47, 81, 0.35);
}

.pr-btn--secondary {
  background-color: var(--pr-secondary);
  color: #fff;
  border: 2px solid var(--pr-secondary);
}

.pr-btn--secondary:hover {
  background-color: var(--pr-secondary-dark);
  border-color: var(--pr-secondary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.pr-btn--outline {
  background-color: transparent;
  color: var(--pr-text);
  border: 2px solid var(--pr-text);
}

.pr-btn--outline:hover {
  background-color: var(--pr-text);
  color: #fff;
  transform: translateY(-2px);
}

.pr-btn--dark {
  background-color: var(--pr-text);
  color: #fff;
  border: 2px solid var(--pr-text);
  border-radius: var(--pr-radius);
  text-transform: none;
  font-size: 1.1rem;
  padding: 16px 32px;
}

.pr-btn--dark:hover {
  background-color: #444;
  border-color: #444;
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   HEADER — TOP SOCIAL BAR
   ============================================= */
.site-header {
  position: relative;
  z-index: 1000;
}

.header-social-bar {
  background-color: var(--pr-text);
  padding: 6px 0;
}

.header-social-bar .pr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.header-social-bar a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.header-social-bar a:hover {
  color: var(--pr-primary-light);
  transform: scale(1.15);
}

/* =============================================
   HEADER — MAIN HEADER
   ============================================= */
.header-main {
  background-color: #fff;
  border-bottom: 1px solid var(--pr-border);
  padding: 12px 0;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.header-main .pr-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-main.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 20px var(--pr-shadow);
  padding: 8px 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  color: var(--pr-text);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.header-hamburger:hover {
  color: var(--pr-primary);
}

.header-hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--pr-text);
  position: relative;
  transition: all 0.3s ease;
}

.header-hamburger .bar::before,
.header-hamburger .bar::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: var(--pr-text);
  transition: all 0.3s ease;
}

.header-hamburger .bar::before { top: -7px; }
.header-hamburger .bar::after { top: 7px; }

.header-hamburger.is-active .bar {
  background-color: transparent;
}

.header-hamburger.is-active .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.header-hamburger.is-active .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Logo */
.site-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo img {
  max-width: 280px;
  max-height: 60px;
  width: auto;
  height: auto;
}

.site-logo .site-title-text {
  font-family: var(--pr-font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--pr-text);
  letter-spacing: -0.5px;
}

.site-logo .site-title-text span {
  color: var(--pr-primary);
}

.site-logo a {
  text-decoration: none;
}

/* Search Toggle */
.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: var(--pr-text);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.header-search-toggle:hover {
  color: var(--pr-primary);
}

/* =============================================
   HEADER — NAVIGATION BAR
   ============================================= */
.header-nav {
  background-color: #fff;
  border-bottom: 1px solid var(--pr-border);
}

.header-nav .pr-container {
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  font-family: var(--pr-font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pr-text);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--pr-primary);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #fff;
  border: 1px solid var(--pr-border);
  border-top: 3px solid var(--pr-primary);
  box-shadow: 0 8px 30px var(--pr-shadow);
  border-radius: 0 0 var(--pr-radius-sm) var(--pr-radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--pr-text);
  border-bottom: 1px solid var(--pr-border);
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nav-menu .sub-menu li:last-child a {
  border-bottom: none;
}

.nav-menu .sub-menu li a:hover {
  background-color: var(--pr-bg-alt);
  color: var(--pr-primary);
  padding-left: 26px;
}

/* Nested sub-menu */
.nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: 3px solid var(--pr-secondary);
}

/* =============================================
   MOBILE NAVIGATION (SLIDE-OUT)
   ============================================= */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -320px;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-nav.is-active {
  transform: translateX(320px);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pr-border);
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pr-text);
}

.mobile-nav-menu {
  padding: 10px 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 12px 24px;
  font-family: var(--pr-font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pr-text);
  border-bottom: 1px solid var(--pr-border);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-menu a:hover {
  background-color: var(--pr-bg-alt);
  color: var(--pr-primary);
}

.mobile-nav-menu .sub-menu {
  display: none;
  background-color: var(--pr-bg-alt);
}

.mobile-nav-menu .sub-menu a {
  padding-left: 44px;
  font-weight: 500;
  font-size: 0.875rem;
}

.mobile-nav-menu .menu-item-has-children > a::after {
  content: '›';
  float: right;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.mobile-nav-menu .menu-item-has-children.is-open > a::after {
  transform: rotate(90deg);
}

.mobile-nav-menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 90%;
  max-width: 700px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.search-overlay.is-active .search-overlay-inner {
  transform: translateY(0);
}

.search-overlay-title {
  font-family: var(--pr-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--pr-gap);
  color: var(--pr-text);
}

.search-overlay-form {
  position: relative;
}

.search-overlay-form input[type="search"] {
  width: 100%;
  padding: 18px 60px 18px 24px;
  font-size: 1.125rem;
  border: 2px solid var(--pr-border);
  border-radius: 50px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.search-overlay-form input[type="search"]:focus {
  border-color: var(--pr-primary);
  box-shadow: 0 0 0 4px rgba(128, 47, 81, 0.1);
}

.search-overlay-form button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background-color: var(--pr-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.search-overlay-form button:hover {
  background-color: var(--pr-primary-dark);
}

.search-overlay-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--pr-text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-overlay-close:hover {
  color: var(--pr-primary);
  transform: rotate(90deg);
}

/* Floating Search Button */
.floating-search-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: var(--pr-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(128, 47, 81, 0.4);
  z-index: 990;
  transition: all 0.3s ease;
}

.floating-search-btn:hover {
  background-color: var(--pr-primary-dark);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(128, 47, 81, 0.5);
}

/* =============================================
   HERO SECTION (HOMEPAGE)
   ============================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  border-radius: var(--pr-radius-lg);
  overflow: hidden;
  margin-bottom: var(--pr-gap);
}

.hero-grid-item {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.hero-grid-item:first-child {
  grid-row: 1 / 3;
  min-height: 420px;
}

.hero-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-grid-item:hover img {
  transform: scale(1.05);
}

.hero-grid-item a {
  display: block;
  height: 100%;
}

.hero-grid-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-family: var(--pr-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.hero-grid-item:first-child .hero-grid-label {
  font-size: 1.5rem;
}

/* =============================================
   CATEGORY BROWSE CIRCLES
   ============================================= */
.browse-categories {
  padding: var(--pr-gap-lg) 0;
}

.browse-categories-title {
  font-family: var(--pr-font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: var(--pr-gap);
  color: var(--pr-text-light);
}

.browse-categories-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.browse-categories-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.browse-categories-list a:hover {
  transform: translateY(-4px);
}

.browse-cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--pr-bg-alt);
  border: 2px solid var(--pr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.browse-categories-list a:hover .browse-cat-icon {
  border-color: var(--pr-primary);
  background-color: rgba(128, 47, 81, 0.06);
}

.browse-cat-label {
  font-family: var(--pr-font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pr-text);
}

/* =============================================
   RECIPE CARDS
   ============================================= */
.recipe-card {
  background-color: var(--pr-card-bg);
  border-radius: var(--pr-radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--pr-border);
}

.recipe-card:hover {
  box-shadow: 0 6px 24px var(--pr-shadow-hover);
  transform: translateY(-4px);
}

.recipe-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}

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

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

.recipe-card-body {
  padding: 16px 18px;
}

.recipe-card-title {
  font-family: var(--pr-font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.recipe-card-title a {
  color: var(--pr-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.recipe-card-title a:hover {
  color: var(--pr-primary);
}

.recipe-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--pr-primary);
  font-weight: 500;
  border-top: 1px solid var(--pr-border);
  padding-top: 10px;
  width: 100%;
}

.recipe-card-category svg {
  width: 16px;
  height: 16px;
  fill: var(--pr-primary);
  flex-shrink: 0;
}

.recipe-card-category a {
  color: var(--pr-primary);
}

.recipe-card-category a:hover {
  color: var(--pr-primary-dark);
}

/* Horizontal/small card */
.recipe-card--small {
  display: flex;
  gap: 0;
  border-radius: var(--pr-radius-sm);
}

.recipe-card--small .recipe-card-image {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1;
}

.recipe-card--small .recipe-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
}

.recipe-card--small .recipe-card-title {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.recipe-card--small .recipe-card-category {
  border-top: none;
  padding-top: 0;
  font-size: 0.75rem;
}

/* =============================================
   SECTION: LATEST RECIPES / MOST LOVED, etc.
   ============================================= */
.recipe-section {
  padding: var(--pr-gap-xl) 0;
}

.recipe-section + .recipe-section {
  padding-top: 0;
}

.recipe-section-header {
  margin-bottom: var(--pr-gap);
}

.recipe-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--pr-gap);
  font-family: var(--pr-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pr-primary);
}

.recipe-section-link:hover {
  color: var(--pr-primary-dark);
  gap: 10px;
}

.recipe-section-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.recipe-section-link:hover::after {
  transform: translateX(3px);
}

/* Party Pleasing Snacks / Horizontal Scroll */
.horizontal-scroll-section {
  overflow: hidden;
}

.horizontal-scroll {
  display: flex;
  gap: var(--pr-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 10px;
}

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

.horizontal-scroll .recipe-card--small {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 280px;
}

/* =============================================
   SINGLE POST — TITLE BANNER
   ============================================= */
.single-banner {
  background-color: var(--pr-primary);
  padding: var(--pr-gap-lg) 0;
  text-align: center;
}

.single-banner-title {
  color: #fff;
  font-family: var(--pr-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto;
}

/* Author Info Bar */
.author-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pr-border);
  margin-bottom: var(--pr-gap);
  flex-wrap: wrap;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-family: var(--pr-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pr-text);
}

.post-date {
  font-size: 0.875rem;
  color: var(--pr-text-muted);
}

.post-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--pr-accent);
  font-size: 0.9rem;
}

/* Jump To Recipe / Email buttons */
.post-action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: var(--pr-gap);
  flex-wrap: wrap;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--pr-primary);
  color: #fff;
  font-family: var(--pr-font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.post-action-btn:hover {
  background-color: var(--pr-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.post-action-btn--secondary {
  background-color: #fff;
  color: var(--pr-primary);
  border: 2px solid var(--pr-primary);
}

.post-action-btn--secondary:hover {
  background-color: var(--pr-primary);
  color: #fff;
}

/* Post Content */
.post-content {
  font-size: 1.125rem;
  line-height: 1.85;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content img {
  border-radius: var(--pr-radius);
  margin: 1.5rem 0;
}

.post-content ul, .post-content ol {
  margin: 1rem 0;
  padding-left: 1.75rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Pin It overlay */
.pin-it-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.post-content .wp-block-image:hover .pin-it-overlay,
.recipe-card-image:hover .pin-it-overlay {
  opacity: 1;
}

.pin-it-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: #e60023;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  transition: background-color 0.2s ease;
}

.pin-it-btn:hover {
  background-color: #c7001d;
  color: #fff;
}

/* Related Posts */
.related-posts {
  margin-top: var(--pr-gap-xl);
  padding-top: var(--pr-gap-lg);
  border-top: 2px solid var(--pr-border);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: sticky;
  top: calc(var(--pr-header-height) + 20px);
}

.sidebar-widget {
  margin-bottom: var(--pr-gap);
  padding: var(--pr-gap);
  background-color: var(--pr-card-bg);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
}

.sidebar-widget-title {
  font-family: var(--pr-font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: lowercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pr-primary);
}

.reader-favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.reader-favorites-grid .fav-item {
  border-radius: var(--pr-radius-sm);
  overflow: hidden;
}

.reader-favorites-grid .fav-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reader-favorites-grid .fav-item:hover img {
  transform: scale(1.05);
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  background-color: var(--pr-bg-alt);
  padding: var(--pr-gap-xl) 0;
  text-align: center;
}

.newsletter-title {
  font-family: var(--pr-font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-subtitle {
  font-size: 1rem;
  color: var(--pr-text-light);
  margin-bottom: var(--pr-gap);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--pr-border);
  border-radius: 50px;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--pr-primary);
}

.newsletter-form button {
  padding: 14px 28px;
  background-color: var(--pr-primary);
  color: #fff;
  font-family: var(--pr-font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--pr-primary-dark);
}

/* =============================================
   ABOUT SECTION (HOMEPAGE)
   ============================================= */
.about-home {
  display: flex;
  align-items: center;
  gap: var(--pr-gap-lg);
  padding: var(--pr-gap-lg) 0;
}

.about-home-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--pr-primary);
}

.about-home-content {
  flex: 1;
}

.about-home-content h2 {
  margin-bottom: 0.5rem;
}

.about-home-content p {
  color: var(--pr-text-light);
  margin-bottom: 1rem;
}

.about-home-social {
  display: flex;
  gap: 12px;
}

.about-home-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--pr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.about-home-social a:hover {
  background-color: var(--pr-primary-dark);
  transform: scale(1.1);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--pr-text);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--pr-gap-xl);
}

.footer-top {
  display: flex;
  justify-content: center;
  gap: var(--pr-gap);
  padding-bottom: var(--pr-gap-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--pr-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: var(--pr-gap-lg) 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--pr-font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: var(--pr-gap) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--pr-font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 100px;
  width: 44px;
  height: 44px;
  background-color: var(--pr-text);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 989;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--pr-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* =============================================
   ARCHIVE PAGE
   ============================================= */
.archive-header {
  background-color: var(--pr-primary);
  padding: var(--pr-gap-lg) 0;
  text-align: center;
}

.archive-header h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.archive-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: var(--pr-gap-lg) 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--pr-radius-sm);
  font-family: var(--pr-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination a {
  background-color: var(--pr-bg-alt);
  color: var(--pr-text);
}

.pagination a:hover {
  background-color: var(--pr-primary);
  color: #fff;
}

.pagination .current {
  background-color: var(--pr-primary);
  color: #fff;
}

/* =============================================
   404 PAGE
   ============================================= */
.error-404 {
  text-align: center;
  padding: var(--pr-gap-xl) 0;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--pr-primary);
  margin-bottom: 0.5rem;
}

.error-404 h2 {
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--pr-text-light);
  margin-bottom: var(--pr-gap);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-404 .search-form {
  max-width: 500px;
  margin: 0 auto var(--pr-gap-lg);
}

/* =============================================
   SEARCH FORM (IN-PAGE)
   ============================================= */
.search-form {
  display: flex;
  gap: 10px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--pr-border);
  border-radius: 50px;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
  border-color: var(--pr-primary);
}

.search-form button {
  padding: 12px 24px;
  background-color: var(--pr-primary);
  color: #fff;
  font-family: var(--pr-font-heading);
  font-weight: 700;
  border-radius: 50px;
  transition: background-color 0.2s ease;
}

.search-form button:hover {
  background-color: var(--pr-primary-dark);
}

/* =============================================
   WP RECIPE MAKER COMPATIBILITY
   ============================================= */
.wprm-recipe-container {
  border: 2px solid var(--pr-border);
  border-radius: var(--pr-radius-lg);
  overflow: hidden;
  margin: 2rem 0;
}

.wprm-recipe {
  font-family: var(--pr-font-body);
}

.wprm-recipe .wprm-recipe-name {
  font-family: var(--pr-font-heading);
  color: var(--pr-text);
}

.wprm-recipe .wprm-recipe-header {
  background-color: var(--pr-primary);
  color: #fff;
}

.wprm-recipe .wprm-recipe-button {
  background-color: var(--pr-primary);
  border-radius: 50px;
}

.wprm-recipe .wprm-recipe-button:hover {
  background-color: var(--pr-primary-dark);
}

/* Star Ratings */
.wprm-rating-star svg {
  fill: var(--pr-accent);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .pr-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .hero-grid-item:first-child {
    grid-row: auto;
    min-height: 300px;
  }

  .about-home {
    flex-direction: column;
    text-align: center;
  }

  .header-nav {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --pr-gap: 15px;
    --pr-gap-lg: 25px;
    --pr-gap-xl: 40px;
  }

  .pr-grid-4,
  .pr-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pr-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-grid-item:first-child {
    min-height: 250px;
  }

  .hero-grid-item:nth-child(n+4) {
    display: none;
  }

  .browse-categories-list {
    gap: 14px;
  }

  .browse-cat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .recipe-card-image {
    aspect-ratio: 4/3;
  }

  .site-logo img {
    max-width: 200px;
  }

  .site-logo .site-title-text {
    font-size: 1.25rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .post-action-buttons {
    flex-direction: column;
  }

  .post-action-btn {
    justify-content: center;
  }

  .author-info-bar {
    flex-direction: column;
    gap: 10px;
  }

  .floating-search-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    right: 78px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .pr-grid-4,
  .pr-grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-grid-item:nth-child(n+3) {
    display: none;
  }

  .browse-categories-list {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .pr-container {
    padding: 0 40px;
  }
}

/* =============================================
   WORDPRESS DEFAULT ALIGNMENT CLASSES
   ============================================= */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  margin-left: -5%;
  margin-right: -5%;
  max-width: 110%;
}

.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

/* WordPress caption */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--pr-text-muted);
  text-align: center;
  padding-top: 8px;
}

/* WordPress blocks */
.wp-block-image {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Accessibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  clip: auto;
  height: auto;
  width: auto;
  padding: 1rem;
  z-index: 100000;
}
