/**
 * Wetlands Ecosystem Page Styles
 * Blue and aquatic-toned styling reflecting the wetlands environment
 */

/* ==========================================================================
   Color Palette - Wetlands Theme
   ========================================================================== */

:root {
    --wetlands-primary: #006994;      /* Deep Blue */
    --wetlands-secondary: #0288D1;    /* Light Blue */
    --wetlands-accent: #00BCD4;       /* Cyan */
    --wetlands-water: #81D4FA;        /* Light Blue */
    --wetlands-reeds: #4CAF50;        /* Green */
    --wetlands-sky: #E1F5FE;          /* Very Light Blue */
    --wetlands-marsh: #26A69A;        /* Teal */
}

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

.wetlands-hero {
    background: linear-gradient(
        135deg,
        rgba(0, 105, 148, 0.8),
        rgba(2, 136, 209, 0.6)
    ), url('../images/ecosystems/wetlands/Lake Bogoria 7th January 2011 (21).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(0, 105, 148, 0.5) 50%,
        rgba(2, 136, 209, 0.4) 100%
    );
    z-index: 1;
}

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

.ecosystem-badge {
    background: rgba(2, 136, 209, 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);
}

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

.wetlands-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(0, 105, 148, 0.1);
    padding: 2.5rem;
    border: 1px solid rgba(0, 105, 148, 0.1);
}

.section-title {
    color: var(--wetlands-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(--wetlands-primary), var(--wetlands-secondary));
    border-radius: 2px;
}

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

.species-spotlight {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 105, 148, 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(0, 105, 148, 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;
}

.conservation-badge.vulnerable {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.species-content {
    padding: 2rem;
}

.species-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wetlands-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;
}

/* ==========================================================================
   Climate Section
   ========================================================================== */

.climate-section {
    background: linear-gradient(135deg, #f8f9fa, rgba(2, 136, 209, 0.05));
}

.climate-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 105, 148, 0.15);
    height: 100%;
    border: 1px solid rgba(0, 105, 148, 0.1);
}

.climate-header {
    text-align: center;
    margin-bottom: 2rem;
}

.climate-header h3 {
    color: var(--wetlands-primary);
    font-weight: 600;
}

.season-item {
    background: rgba(2, 136, 209, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--wetlands-secondary);
    margin-bottom: 1rem;
}

.rainfall-stats {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.rainfall-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wetlands-primary);
}

.rainfall-stats .stat-label {
    font-size: 0.85rem;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Wetlands Features
   ========================================================================== */

.wetlands-features {
    padding: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 105, 148, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
    border-left: 5px solid var(--wetlands-accent);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 105, 148, 0.15);
}

.feature-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--wetlands-secondary);
}

.feature-title {
    color: var(--wetlands-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   Water Quality Section
   ========================================================================== */

.water-quality {
    background: linear-gradient(135deg, var(--wetlands-sky), rgba(129, 212, 250, 0.3));
    padding: 4rem 0;
}

.quality-indicator {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 105, 148, 0.1);
    border-top: 4px solid var(--wetlands-primary);
}

.indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.indicator-title {
    color: var(--wetlands-primary);
    font-weight: 600;
    margin: 0;
}

.quality-score {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.quality-score.excellent {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.quality-score.good {
    background: rgba(2, 136, 209, 0.1);
    color: #0288D1;
    border: 1px solid rgba(2, 136, 209, 0.3);
}

.quality-score.fair {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* ==========================================================================
   Migration Routes
   ========================================================================== */

.migration-section {
    padding: 4rem 0;
}

.migration-route {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 105, 148, 0.1);
    margin-bottom: 2rem;
}

.route-header {
    background: linear-gradient(45deg, var(--wetlands-primary), var(--wetlands-secondary));
    color: white;
    padding: 1.5rem;
}

.route-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.route-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

.route-content {
    padding: 2rem;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.route-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(2, 136, 209, 0.05);
    border-radius: 8px;
}

.route-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wetlands-primary);
    display: block;
}

.route-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.wetlands-map {
    background: linear-gradient(135deg, #f8f9fa, rgba(2, 136, 209, 0.1));
}

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

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

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

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

@media (max-width: 992px) {
    .wetlands-hero h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        padding: 2rem;
    }
    
    .hero-stats .stat-value {
        font-size: 2rem;
    }
    
    .route-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wetlands-hero {
        min-height: 500px;
    }
    
    .wetlands-hero h1 {
        font-size: 2.5rem;
    }
    
    .wetlands-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;
    }
    
    .route-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .wetlands-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats .stat-item {
        padding: 0.5rem;
    }
    
    .hero-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .ecosystem-map {
        height: 350px;
    }
    
    .indicator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Animation Enhancements
   ========================================================================== */

.water-ripple {
    position: relative;
    overflow: hidden;
}

.water-ripple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(129, 212, 250, 0.3),
        transparent
    );
    animation: ripple 3s infinite;
}

@keyframes ripple {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.floating-bird {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .wetlands-hero {
        background: none;
        color: black;
        min-height: auto;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .content-card,
    .climate-card,
    .feature-card,
    .quality-indicator,
    .migration-route {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
}