/* Global Styles */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-gray: #f5f6fa;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    background: white !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(46, 204, 113, 0.1);
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    margin-bottom: 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg') repeat;
    opacity: 0.1;
    animation: patternFloat 30s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #000000;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.hero-buttons {
    animation: slideUp 0.8s ease-out 0.6s backwards;
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

.image-collage {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.collage-img {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.img-1 {
    width: 60%;
    height: 350px;
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-5deg);
}

.img-2 {
    width: 50%;
    height: 300px;
    top: 50px;
    right: 0;
    z-index: 2;
    transform: rotate(5deg);
}

.img-3 {
    width: 45%;
    height: 250px;
    bottom: 0;
    left: 20%;
    z-index: 1;
    transform: rotate(-3deg);
}

.collage-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.collage-overlay {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, transparent 50%, var(--primary-color) 150%);
    opacity: 0.1;
    pointer-events: none;
}

@keyframes patternFloat {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Hero Section */
@media (max-width: 991.98px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .image-collage {
        height: 400px;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .image-collage {
        height: 300px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Recipe Cards */
.recipe-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.recipe-card .card-body {
    padding: 1.5rem;
}

.recipe-card .card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Recipe Tags */
.recipe-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Recipe Detail Page */
.recipe-detail {
    padding: 2rem 0;
}

.recipe-header {
    margin-bottom: 3rem;
}

.recipe-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.preparation-steps li {
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Health Benefits Section */
.health-benefit {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    height: 100%;
}

.health-benefit h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Filter Section */
.filter-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #e1e1e1;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer a {
    color: white !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.recipe-card {
    animation: fadeIn 0.6s ease-out;
} 