/**
 * Recipe Post Maker Styles v1.6
 * 
 * This file should be saved as: assets/style.css
 */

/* ===== RECIPE SINGLE PAGE STYLES ===== */

.recipe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Recipe Header */
.recipe-header {
    text-align: left;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.recipe-number {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    color: #333;
    margin: 0;
}

.recipe-total {
    font-size: 1rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 1rem;
    font-weight: normal;
}

.recipe-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* Featured Image */
.recipe-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.recipe-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.recipe-image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Recipe Description */
.recipe-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 2rem 0;
}

/* Action Buttons */
.recipe-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.recipe-btn {
    padding: 1rem 2rem;
    border: 3px solid;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

.recipe-btn-primary {
    background-color: #c44536;
    border-color: #c44536;
    color: white;
}

.recipe-btn-primary:hover {
    background-color: #a63429;
    border-color: #a63429;
}

.recipe-btn-secondary {
    background-color: transparent;
    border-color: #d4af37;
    color: #333;
}

.recipe-btn-secondary:hover {
    background-color: #d4af37;
    color: white;
}

.recipe-btn-outline {
    background-color: transparent;
    border-color: #c44536;
    color: #c44536;
}

.recipe-btn-outline:hover {
    background-color: #c44536;
    color: white;
}

.heart-icon, .print-icon, .check-icon {
    font-size: 1.2rem;
}

/* ===== COMPILATION POST STYLES ===== */

.compilation-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #d4af37;
}

.compilation-title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.compilation-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.compilation-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.compilation-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.compilation-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Numbered Recipe Headers - Allrecipes Style */
.recipe-numbered-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 3rem 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recipe-number-wrapper {
    min-width: 80px;
    text-align: left;
    flex-shrink: 0;
}

.recipe-number {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    color: #333;
    display: block;
    margin: 0;
}

.recipe-total {
    font-size: 1rem;
    color: #666;
    line-height: 1;
    margin-top: -5px;
    display: block;
}

.recipe-heading {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

/* Recipe Button Styling */
.recipe-button-wrapper {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Gutenberg Block Editor Styles */
.numbered-recipe-header-editor {
    position: relative;
    border: 2px dashed #d4af37;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    background-color: #fefefe;
}

.numbered-recipe-header-editor::before {
    content: "📝 Numbered Recipe Heading Block";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #d4af37;
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: bold;
}

/* Recipe Meta Box */
.recipe-meta-box {
    background: #fff;
    border: 3px solid #d4af37;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipe-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.time-item strong {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

.time-item span {
    font-size: 1.1rem;
    color: #666;
}

.recipe-meta-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    text-align: center;
}

.nutrition-link {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
}

.nutrition-link:hover {
    color: #c44536;
}

/* Recipe Sections */
.recipe-section {
    margin: 3rem 0;
}

.recipe-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 0.5rem;
}

/* Ingredients List */
.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.4;
    position: relative;
    padding-left: 2rem;
}

.ingredients-list li:before {
    content: "•";
    color: #d4af37;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: 0.5rem;
}

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

/* Instructions List */
.instructions-list {
    counter-reset: instruction-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    counter-increment: instruction-counter;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 4rem;
}

.instructions-list li:before {
    content: counter(instruction-counter);
    background-color: #c44536;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 1.25rem;
    font-size: 1.2rem;
}

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

/* Recipe Callouts */
.recipe-callout {
    border: 3px solid #d4af37;
    margin: 3rem 0;
    position: relative;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.callout-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #d4af37;
    text-align: center;
    position: relative;
}

.callout-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 1rem;
    border-radius: 50%;
    border: 3px solid #d4af37;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chef-hat {
    font-size: 1.5rem;
}

.callout-header h3 {
    font-size: 2rem;
    margin: 0;
    color: #333;
    font-weight: bold;
}

.callout-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.callout-content p {
    margin: 0 0 1rem 0;
}

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

/* Recipe Footer Actions */
.recipe-footer-actions {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    border-top: 2px solid #f0f0f0;
}

.nutrition-anchor {
    scroll-margin-top: 2rem;
}

/* ===== RECIPE ARCHIVE STYLES ===== */

.recipe-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #d4af37;
}

.archive-title {
    font-size: 3rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: bold;
}

.archive-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.recipe-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.recipe-card-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-card-number .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: block;
    line-height: 1;
}

.recipe-card-number .total {
    font-size: 0.8rem;
    color: #666;
    line-height: 1;
}

.recipe-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.recipe-card-content {
    padding: 2rem;
}

.recipe-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.recipe-card-title a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.recipe-card-title a:hover {
    color: #c44536;
}

.recipe-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.recipe-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.9rem;
    color: #555;
}

.meta-item strong {
    color: #333;
}

.recipe-card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Pagination */
.recipe-pagination {
    text-align: center;
    margin-top: 3rem;
}

.pagination-nav {
    display: inline-block;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.pagination-item a,
.pagination-item span {
    padding: 0.75rem 1rem;
    border: 2px solid #d4af37;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-item a:hover,
.pagination-item .current {
    background-color: #d4af37;
    color: white;
}

.no-recipes {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-recipes h2 {
    color: #333;
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    .recipe-container,
    .recipe-archive-container {
        padding: 1rem;
    }
    
    .recipe-number,
    .numbered-recipe-header .recipe-number {
        font-size: 3rem;
    }
    
    .recipe-title,
    .compilation-title {
        font-size: 2rem;
    }
    
    .numbered-recipe-header .recipe-title {
        font-size: 1.8rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .recipe-actions,
    .recipe-footer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .recipe-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .recipe-times {
        grid-template-columns: 1fr;
    }
    
    .callout-header h3 {
        font-size: 1.5rem;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-card-actions {
        flex-direction: column;
    }
    
    .recipe-card-actions .recipe-btn {
        width: 100%;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .compilation-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .recipe-number,
    .numbered-recipe-header .recipe-number {
        font-size: 2.5rem;
    }
    
    .recipe-title,
    .compilation-title {
        font-size: 1.5rem;
    }
    
    .numbered-recipe-header .recipe-title {
        font-size: 1.4rem;
    }
    
    .recipe-section h2 {
        font-size: 1.5rem;
    }
    
    .callout-content,
    .recipe-description,
    .compilation-excerpt {
        font-size: 1rem;
    }
    
    .ingredients-list li,
    .instructions-list li {
        font-size: 1rem;
    }
}