/* Recipe Website - Main Stylesheet */

/* ===== VARIABLES ===== */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: #333; background: #f8f9fa; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 30px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: all 0.3s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #e55555; transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== NAVBAR ===== */
.navbar { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { color: var(--dark); font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); min-width: 200px; list-style: none; padding: 10px 0; border-radius: 5px; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

nav.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}
/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; margin-bottom: 30px; }
.search-form { display: flex; max-width: 600px; margin: 0 auto; gap: 10px; }
.search-form input { flex: 1; padding: 15px; border: none; border-radius: 5px; font-size: 16px; }
.search-form button { padding: 15px 30px; background: var(--dark); color: white; border: none; border-radius: 5px; cursor: pointer; }

/* ===== SECTIONS ===== */
.featured-section, .categories-section, .latest-section { padding: 60px 0; }
.section-title { font-size: 36px; margin-bottom: 40px; text-align: center; color: var(--dark); }

/* ===== RECIPE GRID ===== */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.recipe-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: transform 0.3s; }
.recipe-card:hover { transform: translateY(-5px); }
.recipe-image, .recipe-image-placeholder { width: 100%; height: 250px; object-fit: cover; }
.recipe-image-placeholder { display: flex; align-items: center; justify-content: center; background: var(--light); font-size: 60px; color: #ddd; }
.recipe-card-content { padding: 20px; }
.recipe-category { display: inline-block; background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; margin-bottom: 10px; }
.recipe-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--dark); }
.recipe-card p { color: #666; font-size: 14px; margin-bottom: 15px; }
.recipe-meta { display: flex; gap: 15px; font-size: 14px; color: #888; flex-wrap: wrap; }
.difficulty-easy { color: var(--success); }
.difficulty-medium { color: var(--warning); }
.difficulty-hard { color: var(--danger); }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.category-card { background: white; padding: 40px 20px; text-align: center; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: all 0.3s; }
.category-card:hover { transform: translateY(-5px); }
.category-card i { font-size: 48px; color: var(--primary); margin-bottom: 15px; }

/* ===== RECIPE DETAIL ===== */
.recipe-detail { background: white; padding: 40px 0; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 30px; font-size: 14px; color: #666; }
.recipe-header h1 { font-size: 42px; margin-bottom: 20px; }
.recipe-description { font-size: 18px; color: #666; margin-bottom: 30px; }
.recipe-info-bar { display: flex; gap: 30px; padding: 30px; background: var(--light); border-radius: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.info-item { display: flex; gap: 10px; align-items: center; }
.info-item i { font-size: 24px; color: var(--primary); }
.recipe-featured-image { margin-bottom: 40px; }
.recipe-featured-image img { width: 100%; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.recipe-content-wrapper { display: grid; grid-template-columns: 350px 1fr; gap: 40px; }

/* ===== SIDEBAR ===== */
.recipe-sidebar { position: sticky; top: 100px; height: fit-content; }
.ingredients-section, .affiliate-products-section { background: var(--light); padding: 25px; border-radius: 10px; margin-bottom: 30px; }
.ingredients-section h2, .affiliate-products-section h2 { font-size: 20px; margin-bottom: 20px; }
.ingredients-list { list-style: none; }
.ingredients-list li { padding: 10px 0; border-bottom: 1px solid #ddd; }
.ingredient-checkbox { margin-right: 10px; }
.product-card { background: white; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.product-image { width: 100%; height: 150px; object-fit: cover; border-radius: 5px; margin-bottom: 10px; }
.product-price { font-weight: bold; color: var(--primary); }
.btn-affiliate { background: var(--success); color: white; width: 100%; margin-top: 10px; }

/* ===== VIDEO ===== */
.video-section { margin-bottom: 40px; }
.video-section h2 { font-size: 28px; margin-bottom: 20px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-chapters { margin-top: 20px; background: var(--light); padding: 20px; border-radius: 10px; }
.chapters-list { list-style: none; }
.chapter-link { display: flex; gap: 15px; padding: 12px; background: white; border: none; border-radius: 5px; width: 100%; cursor: pointer; transition: all 0.3s; text-align: left; }
.chapter-link:hover { background: var(--primary); color: white; }
.chapter-time { font-weight: bold; min-width: 60px; }

/* ===== STEPS ===== */
.steps-section h2 { font-size: 28px; margin-bottom: 30px; }
.steps-list { display: flex; flex-direction: column; gap: 30px; }
.step-item { display: flex; gap: 20px; }
.step-number { min-width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; }
.step-content { flex: 1; }
.step-content h3 { font-size: 20px; margin-bottom: 10px; }
.step-image { width: 100%; max-width: 400px; border-radius: 10px; margin-top: 15px; }

/* ===== FILTERS & FORMS ===== */
.filters-section { background: white; padding: 25px; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.filters-form { display: flex; gap: 15px; flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 200px; }
.filter-input, .filter-select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination-link, .pagination-current { padding: 10px 15px; border-radius: 5px; border: 1px solid #ddd; }
.pagination-link { background: white; color: var(--dark); transition: all 0.3s; }
.pagination-link:hover { background: var(--primary); color: white; }
.pagination-current { background: var(--primary); color: white; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: white; padding: 40px 0 20px; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section a { color: #bbb; transition: color 0.3s; }
.footer-section a:hover { color: white; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #bbb; }

/* ===== ALERTS ===== */
.alert { padding: 15px 20px; border-radius: 5px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.no-results { text-align: center; padding: 60px 20px; }
.no-results i { font-size: 80px; color: #ddd; margin-bottom: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .recipe-content-wrapper { grid-template-columns: 1fr; }
    .recipe-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .search-form { flex-direction: column; }
    .recipe-grid { grid-template-columns: 1fr; }
    .recipe-info-bar { flex-direction: column; gap: 15px; }
    .filters-form { flex-direction: column; }
}
/* Logo Image Display */
.logo-image {
    max-height: 60px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-image {
        max-height: 45px;
    }
}

.logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
}


/* Time Icon - Blue */
.recipe-meta .fa-clock {
    color: #3498db !important;
}

/* Difficulty Icons - Dynamic Colors */
.difficulty-easy {
    color: #27ae60 !important;
}
.difficulty-medium {
    color: #f39c12 !important;
}
.difficulty-hard {
    color: #e74c3c !important;
}

/* Video Icon - YouTube Red */
.recipe-meta .fa-youtube {
    color: #FF0000 !important;
}

/* Fire Icon - Orange Red */
.recipe-meta .fa-fire {
    color: #ff6b6b !important;
}

/* Star Rating - Gold */
.recipe-meta .fa-star {
    color: #f1c40f !important;
}

/* Optional: Add hover effects */
.recipe-card:hover .recipe-meta .fa-clock {
    color: #2980b9 !important;
}
.recipe-card:hover .recipe-meta .fa-youtube {
    color: #c4302b !important;
}
