/* Ingredients Page Specific Styles */

/* Active navigation state */
.nav-link.active {
    color: var(--sage-green);
}

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

/* Ingredients Hero Section */
.ingredients-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-cream) 100%);
    overflow: hidden;
    margin-top: 80px;
}

.ingredients-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ingredients-hero .hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--sage-green);
    margin-bottom: 1rem;
    font-weight: 400;
}

.title-accent {
    color: var(--golden);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--golden);
    margin: 1.5rem auto;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter Section */
.filter-section {
    padding: 3rem 0 2rem;
    background: var(--white);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--light-sage);
    background: var(--white);
    color: var(--sage-green);
    border-radius: 25px;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--sage-green);
    color: var(--white);
    border-color: var(--sage-green);
    transform: translateY(-2px);
}

/* Ingredients Section */
.ingredients-section {
    padding: 4rem 0;
    background: var(--cream);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.ingredient-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 157, 138, 0.1);
    position: relative;
    overflow: hidden;
}

.ingredient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage-green), var(--golden));
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.ingredient-card:hover::before {
    opacity: 1;
}

.ingredient-card .ingredient-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.ingredient-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--sage-green);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ingredient-scientific {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ingredient-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.property-tag {
    background: var(--light-sage);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ingredient-benefits {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.best-for {
    padding: 1rem;
    background: var(--warm-cream);
    border-radius: 10px;
    border-left: 4px solid var(--golden);
    font-size: 0.9rem;
}

.best-for strong {
    color: var(--sage-green);
    font-weight: 600;
}

/* Filter Animation */
.ingredient-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ingredient-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    display: none !important;
}

.ingredient-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Back to Home Section */
.back-to-home {
    padding: 4rem 0;
    background: var(--sage-green);
    color: var(--white);
}

.back-to-home-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.back-to-home h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.back-to-home p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--golden);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
}

.cta-button:hover {
    background: #B8941F;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Responsive Design for Ingredients Page */
@media (max-width: 768px) {
    .ingredients-hero {
        min-height: 50vh;
        margin-top: 70px;
    }
    
    .page-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ingredient-card {
        padding: 1.5rem;
    }
    
    .ingredient-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .ingredients-section {
        padding: 3rem 0;
    }
    
    .filter-section {
        padding: 2rem 0 1rem;
    }
    
    .ingredient-card {
        padding: 1.25rem;
    }
    
    .ingredient-card .ingredient-icon {
        font-size: 2.5rem;
    }
    
    .property-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Loading and Animation States */

.ingredient-card:nth-child(1) { animation-delay: 0.1s; }
.ingredient-card:nth-child(2) { animation-delay: 0.2s; }
.ingredient-card:nth-child(3) { animation-delay: 0.3s; }
.ingredient-card:nth-child(4) { animation-delay: 0.4s; }
.ingredient-card:nth-child(5) { animation-delay: 0.5s; }
.ingredient-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effects for property tags */
.property-tag:hover {
    background: var(--sage-green);
    transform: scale(1.05);
}

/* Enhanced visual hierarchy */
.ingredient-card:hover .ingredient-name {
    color: var(--golden);
}

.ingredient-card:hover .property-tag {
    background: var(--sage-green);
}