/* 
* Recipe Planner - Main Stylesheet
* A clean, modern design for an AI-powered recipe planning application
*/

/* ===== Variables ===== */
:root {
    /* Color Palette */
    --primary: #E85D04;
    --primary-light: #F48C06;
    --primary-dark: #DC4C02;
    --secondary: #073B4C;
    --text-dark: #333;
    --text-light: #6c757d;
    --background: #f8f9fa;
    --white: #ffffff;
    --gray-100: #F9FAFB;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--secondary);
    background-color: var(--gray-100);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.navbar {
    padding: var(--spacing-md) 0;
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text {
    color: var(--dark);
}

.brand-text-accent {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    margin-left: var(--spacing-md);
    color: var(--secondary);
    position: relative;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-login {
    color: var(--primary);
}

.btn-signup {
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius-md);
    padding: 0.5rem 1rem;
}

.btn-signup:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
    background-color: white;
    padding: var(--spacing-xxl) 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 93, 4, 0.4) 0%, rgba(255, 248, 232, 0.1) 100%);
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.hero-image:hover::before {
    opacity: 0;
}

/* ===== Features Section ===== */
.features {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 10% 20%, rgba(232, 93, 4, 0.05) 0%, transparent 80%);
    z-index: 0;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

/* ===== How It Works Section ===== */
.how-it-works {
    background-color: white;
}

.step-card {
    text-align: center;
    padding: var(--spacing-lg);
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

/* ===== Recipe Examples Section ===== */
.recipe-examples {
    background-color: var(--light);
}

.recipe-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    height: 100%;
}

.recipe-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-content {
    padding: var(--spacing-lg);
}

.recipe-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--gray-400);
    font-size: 0.875rem;
}

.recipe-meta i {
    margin-right: var(--spacing-xs);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: white;
}

.testimonial-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    height: 100%;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    font-size: 0.875rem;
}

/* ===== CTA Section ===== */
.cta {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-xxl) 0;
}

.cta h2 {
    color: white;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta .btn-primary:hover {
    background-color: var(--gray-100);
}

.cta-small {
    font-size: 0.875rem;
    margin-top: var(--spacing-md);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: var(--spacing-xl) 0;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-300);
}

.footer-links a:hover {
    color: white;
}

.newsletter-form {
    margin-top: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: 1.5rem;
}

.social-links a {
    color: var(--gray-300);
}

.social-links a:hover {
    color: white;
}

hr {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Template Modals ===== */
.template-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.template-item:hover {
    background-color: var(--gray-100);
    border-left-color: var(--primary-light);
}

.template-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.template-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

.template-categories {
    margin-bottom: 1rem;
}

.template-categories .btn-group .btn {
    border-color: var(--primary);
    color: var(--primary);
}

.template-categories .btn-group .btn.active {
    background-color: var(--primary);
    color: white;
}

#templateSearchInput {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    padding: 0.5rem 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

#templateSearchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.25);
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-image {
        margin-top: var(--spacing-xl);
    }
    
    .feature-card, .step-card, .recipe-card, .testimonial-card {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer {
        text-align: center;
    }
}
