/**
 * Forest Ecosystem Page Styles
 * Green-toned styling reflecting the forest environment
 */

/* ==========================================================================
   Color Palette - Forest Theme
   ========================================================================== */

:root {
    --forest-primary: #228B22;      /* Forest Green */
    --forest-secondary: #2F4F2F;    /* Dark Slate Gray */
    --forest-accent: #006400;       /* Dark Green */
    --forest-leaves: #32CD32;       /* Lime Green */
    --forest-bark: #8B4513;         /* Saddle Brown */
    --forest-sky: #87CEEB;          /* Sky Blue */
    --forest-moss: #ADFF2F;         /* Green Yellow */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.forest-hero {
    background: linear-gradient(
        135deg,
        rgba(47, 79, 47, 0.8),
        rgba(34, 139, 34, 0.6)
    ), url('../images/ecosystems/coastal_forest/IMG_8779.JPG') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(47, 79, 47, 0.5) 50%,
        rgba(34, 139, 34, 0.4) 100%
    );
    z-index: 1;
}

.forest-hero .container {
    position: relative;
    z-index: 2;
}

.ecosystem-badge {
    background: rgba(34, 139, 34, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.forest-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.forest-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.hero-stats {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item {
    text-align: center;
    padding: 1rem;
}

.hero-stats .stat-item i {
    font-size: 2.5rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(47, 79, 47, 0.1);
    padding: 2.5rem;
    border: 1px solid rgba(47, 79, 47, 0.1);
}

.section-title {
    color: var(--forest-primary);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--forest-primary), var(--forest-secondary));
    border-radius: 2px;
}

/* ==========================================================================
   Species Showcase
   ========================================================================== */

.species-spotlight {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(47, 79, 47, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.species-spotlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(47, 79, 47, 0.2);
}

.species-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.species-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.species-spotlight:hover .species-image img {
    transform: scale(1.1);
}

.conservation-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.conservation-badge.endangered {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.conservation-badge.near-threatened {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.species-content {
    padding: 2rem;
}

.species-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-primary);
    margin-bottom: 0.5rem;
}

.species-scientific {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.species-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #495057;
}

/* ==========================================================================
   Map Section
   ========================================================================== */

.forest-map {
    background: linear-gradient(135deg, #f8f9fa, rgba(34, 139, 34, 0.1));
}

.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(47, 79, 47, 0.2);
}

.ecosystem-map {
    height: 500px;
    width: 100%;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .forest-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .forest-hero h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        padding: 2rem;
    }
    
    .hero-stats .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .forest-hero {
        min-height: 500px;
    }
    
    .forest-hero h1 {
        font-size: 2.5rem;
    }
    
    .forest-hero .lead {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        padding: 1.5rem;
    }
    
    .hero-stats .stat-value {
        font-size: 1.75rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .species-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .forest-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats .stat-item {
        padding: 0.5rem;
    }
    
    .hero-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .ecosystem-map {
        height: 350px;
    }
}