/* Recipe Styles - Aligned with Brand Colors */

/* Brand Color Variables (from style.css) */
:root {
    --primary-dark: #1a1a1a;
    --secondary-gold: #d4af37;
    --accent-orange: #ff6b35;
    --text-light: #666;
    --border-light: #e0e0e0;
    --bg-light: #f8f9fa;
}

/* Recipe Difficulty Badges */
.recipe-difficulty-easy {
    background-color: var(--secondary-gold) !important;
    color: white !important;
}

.recipe-difficulty-medium {
    background-color: var(--accent-orange) !important;
    color: white !important;
}

.recipe-difficulty-hard {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Recipe Details Page Styles */
.recipe-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.recipe-meta-item {
    text-align: center;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
    transition: box-shadow 0.3s ease;
}

.recipe-meta-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recipe-meta-item i {
    font-size: 1.5em;
    margin-bottom: 8px;
    display: block;
    color: var(--accent-orange);
}

.meta-label {
    display: block;
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.meta-value {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-dark);
}

/* Recipe Instructions */
.recipe-instructions p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--primary-dark);
}

/* Recipe Notes */
.recipe-notes p {
    font-style: italic;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-gold);
}

/* Ingredients List */
#ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--primary-dark);
}

#ingredients-list li.lifted-product {
    font-weight: bold;
    color: var(--accent-orange);
}

/* Related Recipes */
.related-recipe-item {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.related-recipe-item:hover {
    background-color: var(--bg-light);
}

.related-recipe-item h6 a {
    color: var(--primary-dark);
    text-decoration: none;
}

.related-recipe-item h6 a:hover {
    color: var(--accent-orange);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--accent-orange);
}

/* Footer Spacing */
.footer-address-spacing {
    margin-top: 20px;
}

/* Visibility Control Classes */
.recipe-error-hidden {
    display: none;
}

.recipe-content-hidden {
    display: none;
}

.recipe-category-hidden {
    display: none;
}

.recipe-widget-hidden {
    display: none;
}

.recipe-filters {
    flex-wrap: wrap;
}

.recipe-filters select {
    flex: 1 1 auto;
}

/* Remove native select arrow and add custom single arrow */
.recipe-filters select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23222'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* Minimalist Pagination styled with brand colors */
.pagination {
    gap: 2px;
}
.pagination .page-link {
    border: none;
    background: transparent;
    color: var(--primary-dark);
    padding: 6px 12px;
    transition: color 0.2s ease;
}
.pagination .page-link:hover,
.pagination .page-link:focus {
    color: var(--secondary-gold);
    background: transparent;
    box-shadow: none;
}
.pagination .page-item.active .page-link {
    color: #fff;
    background: var(--secondary-gold);
    border-radius: 4px;
}
.pagination .page-item.disabled .page-link {
    color: var(--text-light);
}

@media (max-width: 576px) {
    .recipe-filters select {
        flex: 1 1 100%;
    }
}

/* Newsletter Input */
.newsletter-input {
    height: 50px;
    border-color: var(--border-color-1);
}

/* Copyright Text */
.copyright-text {
    color: var(--ltn__primary-color);
}

/* Minimalist Recipe View Button */
.recipe-view-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.recipe-view-btn:hover {
    background: #1d1d1d;
    color: #fff;
    border-color: #1d1d1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 29, 29, 0.2);
}

/* Overlay shown on recipe card hover */
.recipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover .recipe-overlay {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-main-image {
        height: 250px;
    }
    
    .recipe-meta-item {
        padding: 10px;
        margin-bottom: 10px;
    }
}
