/**
 * Additional Custom Styles for Recipe Components
 * Extends the main custom-styles.css
 */

/* ============================================
   RECIPE BOX SHORTCODE
   ============================================ */

.poy-recipe-shortcode {
    background: var(--poy-background);
    border: 3px solid var(--poy-accent);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.poy-recipe-shortcode-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--poy-border);
    margin-bottom: 2rem;
}

.poy-recipe-shortcode-title {
    font-family: var(--poy-font-heading);
    font-size: 2.25rem;
    margin: 0 0 1rem 0;
}

.poy-recipe-shortcode-description {
    font-size: 1.1rem;
    color: var(--poy-text-light);
    font-style: italic;
}

/* Recipe Details Grid */
.poy-recipe-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--poy-background-alt) 0%, #fff 100%);
    border-radius: 8px;
}

.poy-recipe-detail-item {
    text-align: center;
    padding: 1rem;
}

.poy-recipe-detail-icon {
    font-size: 2rem;
    color: var(--poy-accent);
    margin-bottom: 0.5rem;
}

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

.poy-recipe-detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--poy-text-dark);
}

/* Ingredients Section */
.poy-recipe-ingredients {
    margin: 2rem 0;
}

.poy-recipe-section-title {
    font-family: var(--poy-font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--poy-accent);
}

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

.poy-recipe-ingredients li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--poy-border);
    transition: background 0.2s ease;
}

.poy-recipe-ingredients li:hover {
    background: var(--poy-background-alt);
}

.poy-recipe-ingredients li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--poy-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Instructions Section */
.poy-recipe-instructions {
    margin: 2rem 0;
}

.poy-recipe-instructions ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.poy-recipe-instructions li {
    counter-increment: step-counter;
    padding: 1.5rem;
    padding-left: 5rem;
    position: relative;
    margin-bottom: 1.5rem;
    background: var(--poy-background-alt);
    border-radius: 8px;
    border-left: 4px solid var(--poy-accent);
}

.poy-recipe-instructions li:before {
    content: counter(step-counter);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--poy-accent);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Recipe Notes */
.poy-recipe-notes {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fffbf0;
    border-left: 4px solid #f0c674;
    border-radius: 4px;
}

.poy-recipe-notes-title {
    font-family: var(--poy-font-heading);
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #856404;
}

/* Print Button */
.poy-print-recipe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: var(--poy-text-dark);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--poy-font-body);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.poy-print-recipe-btn:hover {
    background: var(--poy-accent);
    transform: translateY(-2px);
}

/* ============================================
   CATEGORY FILTER
   ============================================ */

.poy-category-filter {
    margin: 2rem 0;
}

.poy-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.poy-filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--poy-background);
    border: 2px solid var(--poy-border);
    border-radius: 50px;
    color: var(--poy-text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.poy-filter-btn:hover,
.poy-filter-btn.active {
    background: var(--poy-accent);
    color: white;
    border-color: var(--poy-accent);
}

/* ============================================
   RECIPE RATING
   ============================================ */

.poy-star-rating {
    display: inline-flex;
    gap: 0.25rem;
    font-size: 1.25rem;
    color: #f5c842;
}

.poy-star-rating i {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.poy-star-rating i:hover {
    transform: scale(1.2);
}

.poy-rating-count {
    margin-left: 0.5rem;
    color: var(--poy-text-light);
    font-size: 0.9rem;
}

/* ============================================
   RECIPE BADGE
   ============================================ */

.poy-recipe-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--poy-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.poy-recipe-badge a {
    color: white;
    text-decoration: none;
}

/* ============================================
   PAGINATION
   ============================================ */

.poy-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.poy-pagination a,
.poy-pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--poy-background);
    border: 2px solid var(--poy-border);
    border-radius: 6px;
    color: var(--poy-text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.poy-pagination a:hover,
.poy-pagination .current {
    background: var(--poy-accent);
    color: white;
    border-color: var(--poy-accent);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 992px) {
    .poy-recipe-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .poy-recipe-shortcode {
        padding: 1.5rem;
    }
    
    .poy-recipe-details-grid {
        grid-template-columns: 1fr;
    }
    
    .poy-recipe-instructions li {
        padding-left: 1.5rem;
        padding-top: 3.5rem;
    }
    
    .poy-recipe-instructions li:before {
        left: 50%;
        top: 1rem;
        transform: translateX(-50%);
    }
    
    .poy-filter-buttons {
        flex-direction: column;
    }
    
    .poy-filter-btn {
        text-align: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .poy-filter-buttons,
    .poy-print-recipe-btn,
    .entry-meta,
    .poy-recipe-badge {
        display: none !important;
    }
    
    .poy-recipe-shortcode {
        border: 2px solid #000;
        box-shadow: none;
    }
    
    .entry-content {
        max-width: 100%;
    }
}
