/* Barista & Chef Recipe Plugin - Frontend Styles */

/* Mediavine Optimization - Spacing & Engagement */
.bc-content-block {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.bc-content-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #2d3748;
}

.bc-story-section {
    font-style: italic;
    background: #fdf2f8;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #ec4899;
}

/* Article Title & Nav Buttons (at top of post) */
.bc-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.bc-article-nav-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Recipe Card Container */
.bc-recipe-card {
    background: #ffffff;
    border: 2px solid #edf2f7;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.bc-recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Navigation Buttons */
.bc-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bc-nav-btn-primary {
    background: #667eea;
    color: white !important;
}

.bc-nav-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bc-nav-btn-secondary {
    background: #edf2f7;
    color: #4a5568 !important;
}

.bc-nav-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Featured Image */
.bc-recipe-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bc-recipe-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Recipe Header & Meta */
.bc-recipe-header {
    margin-bottom: 2rem;
}

.bc-recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

.bc-recipe-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
}

.bc-recipe-meta-item i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.bc-recipe-meta-item strong {
    color: #718096;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.bc-recipe-meta-value {
    color: #2d3748;
    font-weight: 700;
    font-size: 1rem;
}

/* Recipe Sections */
.bc-recipe-section {
    margin-bottom: 2.5rem;
}

.bc-recipe-section h3 {
    font-size: 1.5rem;
    margin: 0 0 1.25rem 0;
    color: #1a202c;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bc-recipe-section h3::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: #edf2f7;
}

/* Ingredients List */
.bc-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.bc-ingredients-list li {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.bc-ingredients-list li:hover {
    border-color: #667eea;
}

.bc-ingredient-amount {
    font-weight: 700;
    color: #667eea;
    min-width: 90px;
    font-size: 1.125rem;
}

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

.bc-instructions-list li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #4a5568;
}

.bc-instructions-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3);
}

/* Pro Tips */
.bc-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bc-tips-list li {
    background: #fffaf0;
    border-left: 4px solid #ed8936;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    color: #744210;
    display: flex;
    gap: 1rem;
}

.bc-tips-list li::before {
    content: '💡';
    font-size: 1.25rem;
}

/* Shop This Recipe Section */
.bc-shop-recipe {
    margin-top: 3rem;
    padding: 2.5rem;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.bc-shop-recipe h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.bc-affiliate-disclosure {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid #667eea;
    background: #ffffff;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bc-amazon-associate-notice {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0.75rem 1rem;
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

.bc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.bc-product-card {
    background: white;
    border: 1px solid #edf2f7;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.bc-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #667eea;
}

/* REMOVE AMAZON IMAGES as requested */
.bc-product-image, .bc-product-image-placeholder {
    display: none;
}

.bc-product-title {
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.bc-product-price {
    color: #38a169;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.bc-product-link {
    width: 100%;
    text-align: center;
    background: #ff9900;
    color: white !important;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.bc-product-link:hover {
    background: #e68a00;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bc-article-title {
        font-size: 2rem;
    }
    
    .bc-recipe-card {
        padding: 1.5rem;
    }
    
    .bc-recipe-meta {
        grid-template-columns: 1fr 1fr;
    }
    
    .bc-ingredients-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bc-ingredient-amount {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .bc-recipe-meta {
        grid-template-columns: 1fr;
    }
    
    .bc-instructions-list li {
        padding-left: 0;
        padding-top: 3rem;
    }
    
    .bc-instructions-list li::before {
        top: 0;
    }
}

/* Internal Linking Block */
.bc-internal-links {
    margin: 4rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.bc-internal-links h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 800;
}

.bc-internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.bc-internal-link-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    height: 100%;
}

.bc-internal-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.bc-internal-link-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #edf2f7;
}

.bc-image-placeholder {
    background-image: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-image-placeholder::after {
    content: '🍳';
    font-size: 2rem;
}

.bc-internal-link-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bc-internal-link-title {
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-internal-link-action {
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .bc-internal-links-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-internal-link-card {
        flex-direction: row;
        height: 100px;
    }
    
    .bc-internal-link-image {
        width: 100px;
        height: 100%;
        flex-shrink: 0;
    }
    
    .bc-internal-link-content {
        padding: 0.75rem 1rem;
    }
    
    .bc-internal-link-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .bc-internal-link-action {
        font-size: 0.75rem;
    }
}
