/**
 * Pinch of Yum Style - Custom Styles
 * Replicating the clean, modern food blog aesthetic
 */

/* ============================================
   TYPOGRAPHY & COLORS
   ============================================ */

:root {
    /* Pinch of Yum Color Palette */
    --poy-primary: #e8b298;
    --poy-secondary: #f5e6d3;
    --poy-accent: #d4a574;
    --poy-text-dark: #2d2d2d;
    --poy-text-light: #666666;
    --poy-background: #ffffff;
    --poy-background-alt: #fafaf8;
    --poy-border: #eeeeee;
    
    /* Typography */
    --poy-font-heading: 'Playfair Display', Georgia, serif;
    --poy-font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.poy-style {
    font-family: var(--poy-font-body);
    color: var(--poy-text-dark);
    line-height: 1.7;
    background-color: var(--poy-background-alt);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--poy-font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--poy-text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background-color: var(--poy-background);
    border-bottom: 1px solid var(--poy-border);
    padding: 1.5rem 0;
}

.site-header.sticky-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-family: var(--poy-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--poy-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--poy-accent);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    font-family: var(--poy-font-body);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--poy-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--poy-accent);
}

/* ============================================
   RECIPE CARDS & GRID
   ============================================ */

.poy-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0;
}

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

.poy-recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.poy-recipe-card-image {
    position: relative;
    padding-top: 150%; /* 2:3 aspect ratio */
    overflow: hidden;
}

.poy-recipe-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poy-recipe-card-content {
    padding: 1.5rem;
}

.poy-recipe-card-title {
    font-family: var(--poy-font-heading);
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
}

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

.poy-recipe-card-title a:hover {
    color: var(--poy-accent);
}

.poy-recipe-card-excerpt {
    font-size: 0.95rem;
    color: var(--poy-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.poy-recipe-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--poy-text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--poy-border);
}

.poy-recipe-meta i {
    margin-right: 0.25rem;
    color: var(--poy-accent);
}

/* ============================================
   SINGLE RECIPE POST
   ============================================ */

.single-post .entry-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.single-post .entry-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post .entry-meta {
    font-size: 0.9rem;
    color: var(--poy-text-light);
    margin-top: 1rem;
}

.single-post .post-thumbnail {
    margin: 0 0 3rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

/* Recipe Card Styling */
.poy-recipe-box {
    background: var(--poy-background);
    border: 2px solid var(--poy-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.poy-recipe-box h3 {
    font-size: 2rem;
    margin-top: 0;
    border-bottom: 2px solid var(--poy-accent);
    padding-bottom: 1rem;
}

.poy-recipe-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--poy-background-alt);
    border-radius: 8px;
}

.poy-recipe-detail {
    text-align: center;
}

.poy-recipe-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--poy-text-light);
    margin-bottom: 0.5rem;
}

.poy-recipe-detail-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--poy-accent);
}

/* Ingredients & Instructions */
.poy-recipe-box ul,
.poy-recipe-box ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.poy-recipe-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

.poy-button,
.wp-block-button__link {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--poy-accent);
    color: white;
    font-family: var(--poy-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.poy-button:hover,
.wp-block-button__link:hover {
    background-color: var(--poy-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */

.poy-search-bar {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.poy-search-bar input[type="search"] {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--poy-border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--poy-font-body);
    transition: border-color 0.3s ease;
}

.poy-search-bar input[type="search"]:focus {
    outline: none;
    border-color: var(--poy-accent);
}

.poy-search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--poy-accent);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.poy-search-bar button:hover {
    background: var(--poy-primary);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--poy-text-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.poy-widget-title {
    font-family: var(--poy-font-heading);
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--poy-accent);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .poy-recipe-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .single-post .entry-title {
        font-size: 2.5rem;
    }
    
    .poy-recipe-details {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.poy-text-center { text-align: center; }
.poy-mt-1 { margin-top: 1rem; }
.poy-mt-2 { margin-top: 2rem; }
.poy-mt-3 { margin-top: 3rem; }
.poy-mb-1 { margin-bottom: 1rem; }
.poy-mb-2 { margin-bottom: 2rem; }
.poy-mb-3 { margin-bottom: 3rem; }
.poy-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
