/* Global Styles */
:root {
    --primary-color: #f5c518; /* IMDb yellow */
    --secondary-color: #232f3e; /* Dark blue */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-warning:hover {
    background-color: #e0b30b;
    border-color: #e0b30b;
}

.section-title {
    position: relative;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 60px;
    background-color: #ffc107;
}

/* Header Styles */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Recipe Cards */
.recipe-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-content {
    flex-grow: 1;
    padding: 15px;
}

.recipe-title {
    min-height: 50px;
    overflow: hidden;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Boxes */
.category-box {
    transition: all 0.3s ease;
}

.category-box:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    margin: 0 auto;
}

/* Recipe Detail Page */
.recipe-detail {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.recipe-detail-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.recipe-detail-image img {
    width: 100%;
    height: auto;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.recipe-meta-item {
    margin-right: 25px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.recipe-meta-item i {
    margin-right: 5px;
    color: #ffc107;
}

.ingredients-list, .steps-list {
    padding-left: 20px;
}

.ingredients-list li, .steps-list li {
    margin-bottom: 10px;
}

/* Ads */
.ad-container {
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: white;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-gray);
}

/* Category Pills */
.category-pill {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--text-color);
}

/* Responsive fixes */
@media (max-width: 767px) {
    .recipe-image {
        height: 160px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
}

/* IMDb-inspired rating stars */
.rating {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: black;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.rating i {
    color: black;
    margin-right: 4px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .recipe-meta {
        flex-direction: column;
    }
    
    .recipe-meta-item {
        margin-right: 0;
    }
}
