/*
Theme Name: TalkAboutCoffee
Theme URI: https://talkaboutcoffee.com
Author: TalkAboutCoffee Team
Author URI: https://talkaboutcoffee.com
Description: A custom WordPress theme for TalkAboutCoffee - coffee reviews, recipes, and guides. Features a clean three-column layout with sticky TOC, custom post types for Reviews, Previews, and Recipes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talkaboutcoffee
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

TalkAboutCoffee WordPress Theme
Copyright 2025 TalkAboutCoffee.com
*/

/* ============================================
   LOCAL FONTS (self-hosted for performance)
   ============================================ */
@font-face {
    font-family: 'Bree Serif';
    src: url('assets/fonts/bree-serif/BreeSerif-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/open-sans/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/open-sans/OpenSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/open-sans/OpenSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/open-sans/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-primary: #401303;
    --color-primary-light: #6b4423;
    --color-primary-dark: #4a2f1a;
    --color-accent-green: #1bbc9b;
    --color-accent-green-dark: #16a086;
    --color-accent-orange: #f39c12;
    --color-accent-amber: #c9a227;
    --color-text: #2c2c2c;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-background: #e7d7c0;
    --color-background-light: #f5f0e8;
    --color-border: #d4c4a8;
    --color-white: #ffffff;
    --color-footer: #1e1e1e;

    /* Typography */
    --font-heading: 'Bree Serif', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.6;

    /* Layout */
    --content-width: 850px;
    --sidebar-width: 380px;
    --toc-width: 160px;
    --container-max: 1450px;
    --gap: 30px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--color-accent-green);
    color: var(--color-white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
}

h1 {
    font-size: 32px;
    margin: 0 0 8px 0;
}

h2 {
    font-size: 26px;
    margin: 32px 0 16px 0;
    padding-top: 8px;
}

h3 {
    font-size: 20px;
    margin: 24px 0 12px 0;
}

h4 {
    font-size: 18px;
    margin: 20px 0 10px 0;
}

p {
    margin-bottom: 18px;
}

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

a:hover {
    color: var(--color-accent-green);
}

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

ul, ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

li {
    margin-bottom: 6px;
}

blockquote {
    border-left: 4px solid var(--color-accent-green);
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--color-background-light);
    font-style: italic;
}

/* ============================================
   HEADER (matches live site layout)
   ============================================ */
.site-header {
    background: url('assets/images/pattern.png') repeat scroll 0 0 #dcb797;
    border-bottom: 5px solid #ceac8e;
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Logo (Left Column) */
.header-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo {
    padding: 20px 20px 20px 0;
    line-height: 0;
}

.site-logo a,
.site-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.site-logo img,
.site-logo .custom-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Right Column (Search + Nav) */
.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 15px 0;
}

/* Search Box */
.header-search {
    position: relative;
    margin-bottom: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 20px;
    overflow: hidden;
    width: 300px;
    height: 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
}

.search-form .search-field,
.search-form .search-input {
    border: none;
    padding: 8px 15px 8px 20px;
    font-size: 16px;
    font-style: italic;
    font-family: inherit;
    flex-grow: 1;
    outline: none;
    height: 100%;
    background: transparent;
    color: #626262;
}

.search-form .search-field::placeholder,
.search-form .search-input::placeholder {
    color: #626262;
}

.search-form .search-submit,
.search-form .search-button {
    background: transparent;
    border: none;
    color: var(--color-primary);
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form .search-submit:hover,
.search-form .search-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.search-form .search-submit svg,
.search-form .search-button svg {
    width: 18px;
    height: 18px;
}

/* Navigation */
.main-navigation {
    padding: 0;
    margin: 10px 0 0 0;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0 40px 0 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 8px 18px;
    color: #1e1e1e;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

/* Mobile Menu Toggle (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    gap: 8px;
    color: #1e1e1e;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e1e1e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when open */
.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   MAIN LAYOUTS
   ============================================ */

/* Two Column Layout (Homepage, Submission Page) */
.layout-two-column {
    max-width: 1290px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    display: grid;
    grid-template-columns: 850px 380px;
    gap: var(--gap);
    align-items: start;
}

.layout-two-column .main-content {
    width: 850px;
}

/* Three Column Layout (Articles, Reviews, Recipes) */
.layout-three-column {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 30px 20px 60px;
    display: grid;
    grid-template-columns: var(--toc-width) var(--content-width) var(--sidebar-width);
    gap: var(--gap);
    align-items: start;
}

/* Content Area (directly on page background, no card) */
.content-area {
    background: transparent;
    padding: 0;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-container {
    position: sticky;
    top: 30px;
}

/* Empty placeholder when no TOC - maintains grid layout */
.toc-placeholder {
    /* Takes up grid space but shows nothing */
}

.toc-header {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary-light);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary-light);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin-bottom: 2px;
}

.toc-list a {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-light);
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    background: #f1e7d9;
    color: var(--color-primary);
    border-left-color: var(--color-border);
}

.toc-list a.active {
    background: #f1e7d9;
    border-left-color: var(--color-accent-green);
    color: var(--color-primary);
    font-weight: 500;
}

/* Mobile TOC - Hidden on desktop, visible on tablet/mobile */
.toc-mobile-wrapper {
    display: none;
    margin-bottom: 20px;
}

.toc-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #f1e7d9;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.toc-mobile-toggle:hover {
    background: #ede0d0;
}

.toc-mobile-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toc-mobile-content {
    display: none;
    background: #f9f6f2;
    border: 1px solid #e5e0d8;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.toc-mobile-content.open {
    display: block;
}

.toc-mobile-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-mobile-content li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e0d8;
}

.toc-mobile-content li:last-child {
    border-bottom: none;
}

.toc-mobile-content a {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.toc-mobile-content a:hover {
    color: var(--color-accent-green);
}

/* ============================================
   RIGHT SIDEBAR
   ============================================ */
.sidebar {
    /* Not sticky - allows ads to scroll with content */
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-header {
    background: var(--color-accent-green);
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 4px 0 0;
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ecf0f1;
}

.sidebar-header h3 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h3 svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Recent Articles Header - Blue with clock icon */
.sidebar-section-recent .sidebar-header {
    background: #0099b2;
}

/* Popular Articles Header - Green with star icon */
.sidebar-section-popular .sidebar-header {
    background: var(--color-accent-green);
}

/* Recent Articles - with images */
.recent-articles-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-article-card {
    display: flex;
    background: #f1e7d9;
    min-height: 140px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: background 0.2s ease;
}

.recent-article-card:hover {
    background: #ede0d0;
}

.recent-article-card img {
    width: 150px;
    min-height: 140px;
    object-fit: cover;
    flex-shrink: 0;
    align-self: stretch;
}

.recent-article-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-article-content h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-article-card:hover h4 {
    color: var(--color-primary);
}

.recent-article-content p {
    font-size: 14px;
    color: #070606;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Popular Articles - numbered list */
.popular-articles-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-article-item {
    display: flex;
    align-items: center;
    background: #f1e7d9;
    min-height: 56px;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.popular-article-item:hover {
    background: #ede0d0;
}

/* All items have same border-radius now */

.popular-number {
    width: 34px;
    height: 34px;
    background: var(--color-accent-green);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-right: 14px;
    flex-shrink: 0;
}

.popular-title {
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-primary);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-title a {
    color: inherit;
}

.popular-title a:hover {
    color: var(--color-accent-green);
}

/* Sidebar Sponsored Content */
.sidebar-promo {
    background: #faf8f5;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.sidebar-promo-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
}

.sidebar-promo-slot {
    background: #f0ebe4;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    border: 1px dashed #d4c4a8;
    border-radius: 4px;
}

/* When real content loads, hide placeholder styling */
.sidebar-promo-slot:has(> ins),
.sidebar-promo-slot:has(> iframe) {
    background: transparent;
    border: none;
}

/* =============================================
   Amazon Product Cards - Shared Styles
   ============================================= */
.product-card {
    border: 1px solid #e8e0d5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--color-white);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.product-card-title {
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    margin: 0 0 4px;
}

.product-card-title a {
    color: var(--color-text);
    text-decoration: none;
}

.product-card-title a:hover {
    color: #c45500;
}

.product-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
}

.product-card-price {
    font-weight: 700;
    color: var(--color-accent-green);
}

.product-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 6px;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.product-card-rating-text {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* =============================================
   Sidebar Product Card (compact, vertical)
   ============================================= */
.product-card--sidebar {
    border: 1px solid #e8e0d5;
}

.product-card--sidebar .product-card-link {
    display: block;
    padding: 14px;
    text-decoration: none;
    color: var(--color-text);
}

.product-card--sidebar .product-card-image {
    width: 100%;
    height: 160px;
    background: #f9f7f4;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card--sidebar .product-card-image img {
    max-width: 80%;
    max-height: 140px;
    object-fit: contain;
}

.product-card--sidebar .product-card-title {
    font-size: 14px;
}

.product-card--sidebar .product-card-desc {
    font-size: 12px;
    margin-bottom: 6px;
}

.product-card--sidebar .product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0ebe4;
}

.product-card--sidebar .product-card-price {
    font-size: 16px;
}

.product-card--sidebar .product-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #c45500;
    font-weight: 600;
}

.product-card--sidebar:hover .product-card-cta {
    text-decoration: underline;
}

/* =============================================
   Content Product Card (wide, horizontal)
   ============================================= */
.product-card--content {
    display: flex;
    align-items: stretch;
    border: 1px solid #e8e0d5;
}

.product-card--content .product-card-image-link {
    flex-shrink: 0;
    width: 180px;
    min-height: 160px;
    background: #f9f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-card--content .product-card-image-link img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.product-card--content .product-card-info {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card--content .product-card-title {
    font-size: 16px;
    margin-bottom: 6px;
}

.product-card--content .product-card-desc {
    font-size: 13px;
    margin-bottom: 12px;
}

.product-card--content .product-card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.product-card--content .product-card-price {
    font-size: 18px;
}

.product-card-button {
    display: inline-block;
    padding: 8px 20px;
    background: #c45500;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.product-card-button:hover {
    background: #a04000;
    color: white;
}

/* =============================================
   Amazon Fallback Link
   ============================================= */
.product-card-fallback {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #e8e0d5;
    border-radius: 8px;
    background: var(--color-white);
    transition: box-shadow 0.2s ease;
}

.product-card-fallback:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card-fallback-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #c45500;
    text-align: center;
}

.product-card-fallback:hover .product-card-fallback-inner {
    text-decoration: underline;
}

/* =============================================
   In-Article Promo
   ============================================= */
.content-promo--article {
    margin: 30px 0;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #e8e0d5;
    border-bottom: 1px solid #e8e0d5;
}

.content-promo-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
}

/* =============================================
   End-of-Post Product Section
   ============================================= */
.content-products {
    margin: 40px 0 20px;
    padding: 25px;
    background: #faf8f5;
    border-radius: 8px;
    border: 1px solid #e8e0d5;
}

.content-products-header h3 {
    font-size: 18px;
    margin: 0 0 5px;
    color: var(--color-text);
}

.affiliate-notice {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin: 0 0 15px;
}

.affiliate-notice--top {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f9fafb;
    border-left: 3px solid #d1d5db;
    border-radius: 0 4px 4px 0;
}

.content-products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-products-grid .product-card {
    margin-bottom: 0;
}

.content-products-grid .product-card--content {
    border: 1px solid #e0d8ce;
}

/* Promo fallback active state */
.promo-fallback-active {
    background: transparent;
    border: none;
    min-height: auto;
}

/* Mobile responsive for content product cards */
@media (max-width: 600px) {
    .product-card--content {
        flex-direction: column;
    }
    .product-card--content .product-card-image-link {
        width: 100%;
        min-height: 120px;
    }
}

/* Newsletter Signup */
.newsletter-box {
    background: var(--color-white);
    border: 1px solid #e8e0d5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 20px;
    text-align: center;
}

.newsletter-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.newsletter-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 10px;
}

.newsletter-btn {
    width: 100%;
    background: var(--color-accent-green);
    color: var(--color-white);
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: var(--color-accent-green-dark);
}

/* Social Follow Icons */
.social-follow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f1e7d9;
    border-radius: 0 0 4px 4px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-facebook {
    background: #3b5998;
    color: white;
}

.social-facebook:hover {
    background: #2d4373;
    transform: scale(1.1);
}

.social-twitter {
    background: #1a1a1a;
    color: white;
}

.social-twitter:hover {
    background: #333;
    transform: scale(1.1);
}

.social-pinterest {
    background: #bd081c;
    color: white;
}

.social-pinterest:hover {
    background: #8c0615;
    transform: scale(1.1);
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-instagram:hover {
    transform: scale(1.1);
}

/* Subscribe Box */
.subscribe-box {
    background: #f1e7d9;
    border-radius: 0 0 4px 4px;
    padding: 20px;
    text-align: center;
}

.subscribe-box p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
}

.subscribe-btn {
    width: 100%;
    background: var(--color-accent-green);
    color: var(--color-white);
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.subscribe-btn:hover {
    background: #159a80;
}

/* Recipe Sidebar Specific Styles */
.sidebar--recipe .sidebar-header {
    background: var(--color-accent-green);
}

.sidebar-header--recipe {
    background: var(--color-accent-green) !important;
}

.related-recipes-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-recipe-card {
    display: flex;
    background: #f1e7d9;
    min-height: 140px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: background 0.2s ease;
}

.related-recipe-card:hover {
    background: #ede0d0;
}

.related-recipe-image {
    width: 150px;
    flex-shrink: 0;
}

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

.related-recipe-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.related-recipe-content h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-recipe-card:hover h4 {
    color: var(--color-accent-green);
}

.related-recipe-excerpt {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-recipe-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.related-recipe-meta .recipe-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
}

.related-recipe-meta .recipe-time svg {
    flex-shrink: 0;
}

.related-recipe-meta .recipe-difficulty {
    font-weight: 500;
}

.related-recipe-meta .recipe-difficulty--easy {
    color: var(--color-accent-green);
}

.related-recipe-meta .recipe-difficulty--medium {
    color: var(--color-accent-amber);
}

.related-recipe-meta .recipe-difficulty--hard {
    color: #d35400;
}

/* Recipe Categories List */
.recipe-categories-list .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f1e7d9;
    border-radius: 0 0 4px 4px;
}

.recipe-categories-list .category-list li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.recipe-categories-list .category-list li:last-child {
    border-bottom: none;
}

.recipe-categories-list .category-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.recipe-categories-list .category-list a:hover {
    background: #ede0d0;
    color: var(--color-accent-amber);
}

.recipe-categories-list .category-count {
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.article-header {
    margin-bottom: 24px;
}

.article-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.article-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    font-style: italic;
    margin: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.author-name {
    font-weight: 600;
    color: var(--color-primary);
    display: block;
}

.post-date {
    font-size: 14px;
    color: var(--color-text-muted);
}

.article-hero {
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content h2 {
    margin-top: 40px;
}

.article-content img {
    border-radius: 6px;
    margin: 24px 0;
}

/* Legacy HTML Support - for older posts */
.article-content img[align="right"],
.article-content .pull-right,
.article-content .alignright {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 50%;
}

.article-content img[align="left"],
.article-content .pull-left,
.article-content .alignleft {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 50%;
}

.article-content img[align="center"],
.article-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content iframe {
    max-width: 100%;
    margin: 20px 0;
}

.article-content iframe.pull-left,
.article-content iframe[align="left"] {
    float: left;
    margin: 10px 20px 10px 0;
}

.article-content iframe.pull-right,
.article-content iframe[align="right"] {
    float: right;
    margin: 10px 0 10px 20px;
}

/* Clear floats after legacy content */
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Legacy shortcode placeholders - show as text if plugin missing */
.article-content p:has([adinserter]),
.article-content [class*="adinserter"] {
    display: block;
    background: #f5f5f5;
    padding: 10px;
    text-align: center;
    color: #999;
    font-size: 12px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Meta Item (author, date, etc) */
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-light);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.meta-updated {
    color: #c0392b;
    font-weight: 500;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 32px 0;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0a66c2; }
.share-pinterest { background: #e60023; }
.share-email { background: var(--color-primary-light); }

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
    margin: 40px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe3 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent-green);
}

.author-box-inner {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 20px;
}

.author-avatar {
    grid-column: 1;
    grid-row: 1 / 3;
}

.author-avatar img,
.author-avatar .team-avatar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent-green);
    display: block;
}

.team-avatar-icon svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
}

.author-content {
    grid-column: 2;
    grid-row: 1 / 3;
}

.author-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
    display: block;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.author-title {
    font-size: 13px;
    color: var(--color-accent-green-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.author-bio p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

.author-social {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: white;
    transition: background 0.2s ease, transform 0.2s ease;
}

.author-social-link:hover {
    background: var(--color-accent-green);
    transform: scale(1.1);
    color: white;
}

.author-social-link svg {
    width: 16px;
    height: 16px;
}

/* Author Box Responsive */
@media (max-width: 500px) {
    .author-box-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-avatar {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        margin-bottom: 12px;
    }

    .author-content {
        grid-column: 1;
        grid-row: 2;
    }

    .author-social {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
    }
}

/* More Articles Grid */
.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent-green);
}

/* Related Posts - YARPP-style text list */
.related-posts-list {
    margin: 40px 0;
}

.related-posts-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-decoration: underline;
}

.related-posts-ol {
    margin: 0;
    padding: 0 0 0 24px;
}

.related-posts-ol li {
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.5;
}

.related-posts-ol a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.related-posts-ol a:hover {
    color: var(--color-accent-green);
    text-decoration: underline;
}

.related-meta {
    color: #8a7e6e;
    font-size: 14px;
    font-weight: 400;
}

/* ============================================
   REVIEW SPECIFIC STYLES
   ============================================ */
.review-badge {
    display: inline-block;
    background: var(--color-accent-green);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Rating Box */
.review-rating-box {
    background: linear-gradient(135deg, var(--color-accent-green) 0%, var(--color-accent-green-dark) 100%);
    border-radius: 8px;
    padding: 28px;
    margin: 32px 0;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.rating-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
    display: block;
}

.rating-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.rating-verdict {
    flex: 1;
    padding-left: 28px;
    border-left: 1px solid rgba(255,255,255,0.3);
    margin-left: 28px;
}

.rating-verdict h3 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.rating-verdict p {
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
}

/* Pros & Cons Table */
.pros-cons-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2px solid var(--color-accent-green);
    border-radius: 8px;
    overflow: hidden;
    margin: 32px 0;
}

.pros-column,
.cons-column {
    padding: 0;
}

.pros-header,
.cons-header {
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-header {
    background: var(--color-accent-green);
    color: var(--color-white);
}

.cons-header {
    background: #e74c3c;
    color: var(--color-white);
}

.pros-header svg,
.cons-header svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pros-list,
.cons-list {
    list-style: none;
    margin: 0;
    padding: 16px 20px;
    background: var(--color-white);
}

.pros-list li,
.cons-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.pros-list li:last-child,
.cons-list li:last-child {
    border-bottom: none;
}

.pros-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: var(--color-accent-green);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.cons-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: #e74c3c;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================
   PREVIEW SPECIFIC STYLES (Orange Accent)
   ============================================ */
.preview-badge {
    display: inline-block;
    background: var(--color-accent-orange);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.preview-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-status-badge.upcoming {
    background: #fff3cd;
    color: #856404;
}

.preview-status-badge.launched {
    background: #d4edda;
    color: #155724;
}

/* ============================================
   RECIPE SPECIFIC STYLES (Amber Accent)
   ============================================ */
.recipe-badge {
    display: inline-block;
    background: var(--color-accent-amber);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Recipe Info Card */
.recipe-info-card {
    background: linear-gradient(135deg, #faf8f5 0%, var(--color-background-light) 100%);
    border: 2px solid var(--color-accent-amber);
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
}

.recipe-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recipe-difficulty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.difficulty-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.difficulty-badge {
    background: var(--color-accent-amber);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.print-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.print-btn:hover {
    background: var(--color-background-light);
}

.print-btn svg {
    width: 16px;
    height: 16px;
}

.recipe-times {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.time-item {
    text-align: center;
    padding: 12px;
    background: var(--color-white);
    border-radius: 6px;
}

.time-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.time-value {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
}

/* Recipe Card (used in single-recipe.php) */
.recipe-card {
    background: linear-gradient(135deg, #faf8f5 0%, var(--color-background-light) 100%);
    border: 2px solid var(--color-accent-amber);
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
}

.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.recipe-card-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin: 0;
}

.print-recipe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.print-recipe-btn:hover {
    background: var(--color-accent-amber);
    color: var(--color-white);
    border-color: var(--color-accent-amber);
}

.print-recipe-btn svg {
    width: 18px;
    height: 18px;
}

.recipe-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}

.recipe-card-item {
    text-align: center;
    padding: 16px 12px;
    background: var(--color-white);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.recipe-card-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.recipe-card-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 600;
}

.recipe-difficulty--easy { color: var(--color-accent-green); }
.recipe-difficulty--medium { color: var(--color-accent-amber); }
.recipe-difficulty--hard { color: #d35400; }

/* Recipe Ingredients Section */
.recipe-ingredients {
    margin: 32px 0;
    padding: 24px;
    background: var(--color-background-light);
    border-radius: 8px;
}

.recipe-ingredients h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent-amber);
}

.recipe-ingredients .ingredients-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recipe-ingredients .ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.recipe-ingredients .ingredients-list li:last-child {
    border-bottom: none;
}

.recipe-ingredients .ingredient-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.recipe-ingredients .ingredient-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-accent-amber);
    cursor: pointer;
    flex-shrink: 0;
}

.recipe-ingredients .ingredient-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.recipe-ingredients .ingredient-checkbox input:checked + .ingredient-text {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.recipe-ingredients .ingredient-amount {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 4px;
}

.recipe-ingredients .ingredient-notes {
    color: var(--color-text-muted);
    font-size: 14px;
    font-style: italic;
    margin-left: 4px;
}

.recipe-ingredients .ingredient-notes::before {
    content: '— ';
}

/* Recipe Equipment Section */
.recipe-equipment {
    margin: 32px 0;
    padding: 24px;
    background: #f0f7f4;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent-green);
}

.recipe-equipment h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin: 0 0 16px 0;
}

.equipment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.equipment-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--color-text);
}

.equipment-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent-green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Recipe Nutrition Section */
.recipe-nutrition {
    margin: 32px 0;
    padding: 24px;
    background: var(--color-background-light);
    border-radius: 8px;
}

.recipe-nutrition h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin: 0 0 8px 0;
}

.nutrition-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0 0 16px 0;
}

/* Note: Ingredient styles are scoped under .recipe-ingredients above */

/* Instructions */
.instruction-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--color-accent-amber);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 6px;
}

.step-content p {
    margin: 0;
}

/* Tip Box */
.tip-box {
    background: #fff8e6;
    border-left: 4px solid var(--color-accent-amber);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.tip-box strong {
    color: var(--color-accent-amber);
}

/* Nutrition Box */
.nutrition-box {
    background: var(--color-background-light);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.nutrition-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.nutrition-item {
    text-align: center;
    padding: 12px;
    background: var(--color-white);
    border-radius: 6px;
}

.nutrition-value {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    display: block;
}

.nutrition-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    text-align: left !important;
    margin: 40px 0;
}

.faq-section h2 {
    margin-top: 0;
    text-align: left !important;
}

.faq-list {
    border-top: 1px solid #e8e0d5;
    margin: 0;
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #e8e0d5;
    padding: 0;
    margin: 0;
}

.faq-question {
    padding: 8px 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left !important;
    font: inherit;
}

.faq-question:hover h3 {
    color: var(--color-accent-green);
}

.faq-question h3 {
    flex: 1;
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    text-align: left !important;
    transition: color 0.2s ease;
}

.faq-toggle {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--color-accent-green);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item--open .faq-question::after {
    content: '−';
}

.faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    padding-top: 10px;
}

.faq-answer p {
    margin: 0 0 8px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   BOTTOM LINE BOX
   ============================================ */
.bottom-line-box {
    background: linear-gradient(135deg, #faf8f5 0%, var(--color-background-light) 100%);
    border: 2px solid var(--color-accent-green);
    border-radius: 8px;
    padding: 28px;
    margin: 32px 0;
}

.bottom-line-box.amber {
    border-color: var(--color-accent-amber);
}

.bottom-line-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-line-title svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent-green);
}

.bottom-line-box.amber .bottom-line-title svg {
    fill: var(--color-accent-amber);
}

.bottom-line-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f0ebe4;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.comment-list,
.comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

.comment-author {
    font-weight: 600;
    color: var(--color-primary);
}

.comment-author.author-badge::after,
.comment-author.is-post-author::after {
    content: 'Author';
    background: var(--color-accent-green);
    color: var(--color-white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-date {
    font-size: 14px;
    color: var(--color-text-muted);
}

.comment-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.comment-content p {
    margin: 0 0 12px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link a,
a.comment-reply-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-accent-green);
    padding: 5px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.comment-reply-link a:hover,
a.comment-reply-link:hover {
    background: var(--color-accent-green-dark);
    text-decoration: none;
}

/* Nested Replies */
.comment-replies {
    margin-left: 60px;
    border-left: 2px solid #f0f0f0;
    padding-left: 24px;
}

.comment-replies .comment {
    padding: 20px 0;
}

/* Comment Form */
.comment-respond {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 3px rgba(27, 188, 155, 0.15);
}

.comment-form-comment textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit .submit {
    background: var(--color-accent-green);
    color: var(--color-white);
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-submit .submit:hover {
    background: var(--color-accent-green-dark);
}

/* Comment Form - Custom Classes */
.comment-form .form-row {
    display: flex;
    gap: 16px;
}

.comment-form .form-group {
    flex: 1;
    margin-bottom: 16px;
}

.comment-form .form-group.full-width {
    width: 100%;
}

.comment-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.comment-form .form-group input,
.comment-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .form-group input:focus,
.comment-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 3px rgba(27, 188, 155, 0.15);
}

.comment-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--color-text-light);
}

.comment-form .form-checkbox input {
    width: auto;
}

.comment-form .submit-btn {
    background: var(--color-accent-green);
    color: var(--color-white);
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form .submit-btn:hover {
    background: var(--color-accent-green-dark);
}

/* Comment Body Layout */
.comment-body {
    flex: 1;
}

.comment > .comment-avatar {
    float: left;
    margin-right: 16px;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.comment-edit-link a {
    font-size: 13px;
    color: var(--color-text-muted);
}

.comment-edit-link a:hover {
    color: var(--color-primary);
}

/* Nested Comments (WordPress children) */
.comment .children {
    margin-left: 60px;
    border-left: 2px solid #f0f0f0;
    padding-left: 24px;
    list-style: none;
}

.comment .children .comment {
    padding: 20px 0;
}

/* Comments Awaiting Moderation */
.comment-awaiting-moderation {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

/* No Comments Message */
.no-comments {
    font-style: italic;
    color: var(--color-text-muted);
}

/* ============================================
   HOMEPAGE SPECIFIC
   ============================================ */
.featured-article {
    margin-bottom: 50px;
}

.featured-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.featured-title a {
    color: inherit;
}

.featured-title a:hover {
    color: var(--color-accent-green);
}

.featured-image {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-meta {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.featured-excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.read-more {
    font-weight: 600;
    color: var(--color-accent-green);
}

.read-more:hover {
    text-decoration: underline;
}

/* Articles Grid */
.articles-section {
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-article {
    display: block;
}

.grid-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.grid-title a {
    color: inherit;
}

.grid-title a:hover {
    color: var(--color-accent-green);
}

.grid-image {
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.grid-image img {
    width: 100%;
    height: auto;
    display: block;
}

.grid-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.grid-excerpt {
    font-size: 17px;
    line-height: 1.55;
    color: var(--color-text-light);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    margin: 0;
    white-space: nowrap;
}

.section-line {
    flex-grow: 1;
    height: 2px;
    background: var(--color-border);
}

/* ============================================
   COOKING WITH COFFEE SECTION
   ============================================ */

.cooking-section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--color-background-light);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.cooking-section .section-header {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-accent-green);
}

.cooking-featured {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cooking-featured-image {
    flex-shrink: 0;
    width: 400px;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
}

.cooking-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 0.3s ease;
}

.cooking-featured-image:hover img {
    transform: scale(1.03);
}

.cooking-featured-content {
    flex: 1;
}

.cooking-featured-content h3 {
    font-size: 26px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.cooking-featured-content h3 a {
    color: var(--color-primary);
}

.cooking-featured-content h3 a:hover {
    color: var(--color-accent-green);
}

.cooking-featured-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

.cooking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cooking-item {
    display: flex;
    flex-direction: column;
}

.cooking-item-image {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cooking-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 0.3s ease;
}

.cooking-item:hover .cooking-item-image img {
    transform: scale(1.03);
}

.cooking-item h4 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
}

.cooking-item h4 a {
    color: var(--color-primary);
}

.cooking-item h4 a:hover {
    color: var(--color-accent-green);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form-label .required {
    color: #e74c3c;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 3px rgba(27, 188, 155, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.submit-btn {
    background: var(--color-accent-green);
    color: var(--color-white);
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: var(--color-accent-green-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-footer);
    color: #bababa;
    padding: 40px 0 20px;
}

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

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #bababa;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    background: #f1e7d9;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
}

.pagination .current,
.pagination span.current {
    background: var(--color-accent-green);
    color: var(--color-white);
}

.pagination .dots {
    background: transparent;
    color: var(--color-text-muted);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* WordPress pagination compatibility */
.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    background: #f1e7d9;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
}

.pagination .page-numbers.current {
    background: var(--color-accent-green);
    color: var(--color-white);
}

/* ============================================
   ARCHIVE & CATEGORY PAGES
   ============================================ */

.site-main--archive,
.site-main--search {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-container {
    min-width: 0;
}

.archive-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-border);
}

.archive-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px 0;
}

.archive-title span {
    color: var(--color-accent-green);
}

.archive-description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.archive-description p {
    margin: 0;
}

/* Search Page Specific */
.search-count {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.search-form-container {
    margin-bottom: 32px;
}

.search-form-container .search-form {
    max-width: 500px;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg-light);
    border-radius: 12px;
}

.no-results h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.no-results p {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.no-results .search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Suggested Categories */
.suggested-categories {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.suggested-categories h3,
.recent-suggestions h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-links li a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 25px;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-links li a:hover {
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
}

.recent-suggestions {
    margin-top: 40px;
    text-align: left;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */

.site-main--404 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.error-404-container {
    text-align: center;
}

.error-content {
    margin-bottom: 60px;
}

.error-title {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    color: var(--color-accent-green);
    line-height: 1;
    margin: 0 0 16px 0;
}

.error-subtitle {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 20px 0;
}

.error-message {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

.error-actions {
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

.btn-primary:hover {
    background: #5a8f5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 161, 111, 0.3);
}

.error-search {
    max-width: 500px;
    margin: 0 auto;
}

.error-search p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.error-suggestions {
    margin-bottom: 50px;
    text-align: left;
}

.error-suggestions h3,
.error-links h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.error-suggestions .articles-grid {
    max-width: 900px;
    margin: 0 auto;
}

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

.quick-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-list li a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-bg-light);
    border-radius: 25px;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-links-list li a:hover {
    background: var(--color-accent-green);
    color: var(--color-white);
}

/* ============================================
   CONTACT PAGE STYLES (page-contact.php)
   ============================================ */
.site-main--contact {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--gap);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 30px var(--gap) 60px;
}

.contact-content {
    min-width: 0;
}

.contact-header {
    margin-bottom: 32px;
}

.contact-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.contact-intro {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.contact-form-wrap {
    background: var(--color-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    transition: border-color 0.2s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 3px rgba(27, 188, 155, 0.1);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success svg {
    width: 56px;
    height: 56px;
    color: var(--color-accent-green);
    margin-bottom: 16px;
}

.contact-success h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 12px;
}

.contact-success p {
    color: var(--color-text-light);
    font-size: 16px;
}

.contact-error {
    background: #fff5f5;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c0392b;
    font-size: 14px;
}

/* Contact Info Sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.contact-info-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.contact-method {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0ebe3;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-method strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 2px;
}

.contact-method p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.contact-social-link:hover {
    background: var(--color-background-light);
}

.contact-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-cta-btn {
    display: inline-block;
    background: var(--color-accent-green);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.contact-cta-btn:hover {
    background: var(--color-accent-green-dark);
}

/* ============================================
   REVIEW TEMPLATE - Rating Box (single-review.php)
   ============================================ */
.rating-box {
    background: linear-gradient(135deg, var(--color-accent-green) 0%, var(--color-accent-green-dark) 100%);
    border-radius: 8px;
    padding: 28px;
    margin: 32px 0;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.rating-box .rating-score {
    text-align: center;
}

.rating-box .rating-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
    display: block;
}

.rating-box .rating-max {
    font-size: 18px;
    opacity: 0.8;
}

.rating-box .rating-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 600;
}

.rating-box .rating-price {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-left: auto;
}

.rating-buy-btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-accent-green-dark);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rating-buy-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* ============================================
   REVIEW TEMPLATE - Pros & Cons (single-review.php)
   ============================================ */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2px solid var(--color-accent-green);
    border-radius: 8px;
    overflow: hidden;
    margin: 32px 0;
}

.pros-section,
.cons-section {
    padding: 0;
}

/* ============================================
   REVIEW TEMPLATE - Verdict Box (single-review.php)
   ============================================ */
.verdict-box {
    background: #f5f0e8;
    border-left: 4px solid var(--color-accent-green);
    border-radius: 0 8px 8px 0;
    padding: 28px 32px;
    margin: 36px 0;
}

.verdict-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.verdict-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 20px;
}

.verdict-buy-btn {
    display: inline-block;
    background: var(--color-accent-green);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.verdict-buy-btn:hover {
    background: var(--color-accent-green-dark);
    transform: translateY(-1px);
}

/* ============================================
   PREVIEW TEMPLATE - Status Badges (single-preview.php)
   ============================================ */
.preview-status--upcoming {
    background: #fff3cd;
    color: #856404;
}

.preview-status--launched {
    background: #d4edda;
    color: #155724;
}

.preview-status--discontinued {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   PREVIEW TEMPLATE - Info Box (single-preview.php)
   ============================================ */
.preview-info-box {
    background: #faf8f5;
    border: 2px solid var(--color-accent-orange);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 28px 0;
}

.preview-info-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.preview-info-list {
    margin: 0;
    padding: 0;
}

.preview-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.preview-info-item:last-child {
    border-bottom: none;
}

.preview-info-item dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 14px;
    min-width: 160px;
}

.preview-info-item dt svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent-orange);
    flex-shrink: 0;
}

.preview-info-item dd {
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
    margin: 0;
}

.preview-info-item--cta {
    padding-top: 16px;
    justify-content: center;
}

.preview-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent-orange);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.preview-buy-btn svg {
    width: 16px;
    height: 16px;
}

.preview-buy-btn:hover {
    background: #e08e0b;
    transform: translateY(-1px);
}

/* ============================================
   CARD BADGES (More Reviews / More Previews grids)
   ============================================ */
.card-rating {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-green);
    margin-top: 4px;
}

.card-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 6px;
}

.card-status--upcoming {
    background: #fff3cd;
    color: #856404;
}

.card-status--launched {
    background: #d4edda;
    color: #155724;
}

.card-status--discontinued {
    background: #f8d7da;
    color: #721c24;
}

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

/* Large Desktop - Full three columns */
@media (min-width: 1501px) {
    .layout-three-column {
        grid-template-columns: 160px 850px 380px;
        max-width: 1450px;
    }
}

/* Medium Desktop */
@media (min-width: 1301px) and (max-width: 1500px) {
    .layout-three-column {
        grid-template-columns: 150px 750px 340px;
        max-width: 1300px;
        gap: 25px;
    }

    .content-area {
        padding: 35px 40px;
    }
}

/* Smaller Desktop - Minimum three columns */
@media (min-width: 1101px) and (max-width: 1300px) {
    .layout-three-column {
        grid-template-columns: 140px 650px 300px;
        max-width: 1150px;
        gap: 20px;
    }

    .toc-list a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .content-area {
        padding: 30px 35px;
    }
}

/* Tablet - Hide desktop TOC, show mobile TOC */
@media (max-width: 1100px) {
    .layout-three-column {
        grid-template-columns: 1fr 300px;
        max-width: 1050px;
        gap: 25px;
    }

    .toc-container {
        display: none;
    }

    .toc-mobile-wrapper {
        display: block;
    }

    .content-area {
        padding: 30px;
    }
}

/* Tablet - Stack sidebar */
@media (max-width: 1300px) {
    .layout-two-column {
        grid-template-columns: 1fr;
        max-width: 900px;
    }

    .layout-two-column .main-content {
        width: 100%;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .site-main--contact {
        grid-template-columns: 1fr;
        max-width: 900px;
    }

    .contact-layout {
        grid-template-columns: 1fr 280px;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .layout-three-column {
        grid-template-columns: 1fr;
        max-width: 750px;
    }

    .site-main--archive,
    .site-main--search {
        grid-template-columns: 1fr;
        max-width: 750px;
    }

    .sidebar {
        width: 100%;
    }

    .articles-grid {
        gap: 24px;
    }

    .error-title {
        font-size: 80px;
    }

    .error-subtitle {
        font-size: 28px;
    }

    .pros-cons-table {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .review-rating-box {
        flex-direction: column;
        text-align: center;
    }

    .rating-box {
        flex-direction: column;
        text-align: center;
    }

    .rating-box .rating-price {
        margin-left: 0;
    }

    .rating-verdict {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.3);
        margin-top: 20px;
    }

    .preview-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .preview-info-item dt {
        min-width: auto;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px;
    }

    .header-left {
        justify-content: center;
    }

    .site-logo {
        padding: 0 0 10px;
    }

    .site-logo img,
    .site-logo .custom-logo {
        max-width: 240px;
    }

    .header-right {
        align-items: center;
    }

    .header-search {
        margin-bottom: 10px;
    }

    .search-form {
        width: 100%;
        max-width: 300px;
    }

    /* Show hamburger, hide nav by default */
    .menu-toggle {
        display: flex;
        margin-bottom: 5px;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.nav-open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-right: 0;
    }

    .nav-menu a {
        padding: 10px 16px;
        font-size: 18px;
        text-align: center;
    }

    .main-navigation {
        margin-top: 0;
    }

    .layout-two-column,
    .layout-three-column {
        padding: 20px 15px 40px;
    }

    .content-area {
        padding: 24px 20px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .recipe-times {
        grid-template-columns: repeat(2, 1fr);
    }

    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination {
        flex-wrap: wrap;
    }

    .archive-title {
        font-size: 28px;
    }

    .error-title {
        font-size: 60px;
    }

    .error-subtitle {
        font-size: 24px;
    }

    .error-message {
        font-size: 16px;
    }

    .quick-links-list {
        flex-direction: column;
        gap: 10px;
    }

    .contact-form-wrap {
        padding: 24px 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-header h1 {
        font-size: 28px;
    }

    .rating-box {
        padding: 20px;
    }

    .rating-box .rating-number {
        font-size: 42px;
    }

    .verdict-box {
        padding: 20px 24px;
    }

    .preview-info-box {
        padding: 20px;
    }

}

/* Small Mobile */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .header-container {
        padding: 15px;
    }

    .content-area {
        padding: 20px;
        border-radius: 4px;
    }

    .featured-title {
        font-size: 26px;
    }

    .recipe-info-header {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    /* Override CSS custom properties for print */
    :root {
        --content-width: 100% !important;
        --sidebar-width: 0px !important;
        --toc-width: 0px !important;
        --container-max: 100% !important;
        --gap: 0px !important;
    }

    /* Page margins */
    @page {
        margin: 2cm;
    }

    /* Force all elements to respect print width */
    *, *::before, *::after {
        box-sizing: border-box !important;
        float: none !important;
    }

    /* Hide non-essential elements */
    .site-header,
    .header-container,
    .nav-menu,
    .search-form,
    .toc-container,
    .toc-mobile-wrapper,
    .toc-placeholder,
    .sidebar,
    .sidebar-recipe,
    .site-footer,
    .share-buttons,
    .comments-section,
    .print-recipe-btn,
    .print-btn,
    .related-recipes,
    .author-box,
    .rating-buy-btn,
    .verdict-buy-btn,
    .preview-buy-btn,
    .ad-placeholder,
    .sponsored-label,
    .newsletter-box {
        display: none !important;
    }

    /* Reset html/body */
    html {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: #000 !important;
        background: #fff !important;
    }

    /* Reset ALL layout containers to single column, full width */
    .layout-three-column,
    .layout-two-column,
    .site-main--contact,
    .site-main--archive,
    .site-main--search,
    main {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        grid-template-columns: 1fr !important;
    }

    .content-area,
    article {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }

    .article-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Clean typography */
    h1 { font-size: 22pt !important; }
    h2 { font-size: 16pt !important; margin-top: 20pt !important; }
    h3 { font-size: 13pt !important; }

    /* Recipe card clean print */
    .recipe-card,
    .recipe-equipment,
    .recipe-ingredients,
    .recipe-nutrition {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        break-inside: avoid;
    }

    .recipe-card {
        border: 1px solid #ccc !important;
    }

    .recipe-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
    }

    .recipe-equipment,
    .recipe-ingredients,
    .recipe-nutrition {
        border: 1px solid #ddd !important;
    }

    .recipe-ingredients .ingredient-checkbox input[type="checkbox"] {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Rating box for reviews */
    .rating-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        break-inside: avoid;
    }

    .pros-cons,
    .verdict-box {
        break-inside: avoid;
    }

    /* Links show URL in print */
    .article-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    .article-content a[href^="#"]::after,
    .article-content a[href^="javascript"]::after {
        content: "";
    }

    /* Print-only site URL footer */
    body::after {
        content: "Printed from TalkAboutCoffee.com — Visit us at https://talkaboutcoffee.com";
        display: block !important;
        text-align: center;
        font-size: 9pt;
        color: #666;
        padding-top: 20pt;
        margin-top: 30pt;
        border-top: 1px solid #ccc;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
