﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
/*.body-content {
    margin-top: 15px;
    padding-left: -25px;
    padding-right: 5px;
}*/

/* Set widths on the form inputs since otherwise they're 100% wide */
/*input,
select,
textarea {
    max-width: 280px;
}*/

/* Responsive: Portrait tablets and up */
/*@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}*/

/* Define global color variables */
:root {
    /*--primary-blue: rgba(71, 199, 252, 1);  /*/ #007bff; /* Blue color for lines, borders, etc. 71, 199, 252, 1 */
    --primary-blue: rgba(50, 150, 200, 1);
    --primary-blue-darker: rgba(40, 120, 160, 1);
    --primary-blue-darkest: rgba(30, 90, 120, 1);
    --primary-blue-faded: rgba(71, 199, 252, .3); /* Blue color for lines, borders, etc. */
    --primary-orange: rgba(255, 128, 0, 1); /* Orange color for lines, borders, etc. */
    --primary-orange-faded: rgba(255, 128, 0, .3); /* Orange color for lines, borders, etc. rgba(71, 199, 252, .9) ?  */
}

#monthFilter option:hover,
#monthFilter option:focus,
#monthFilter option:active {
    background-color: rgba(0, 123, 255, 0.5) !important; /* Matches primary-blue-faded */
}

.custom-label {
    display: block;
    margin-bottom: 0.5rem;
}

#hotspotButtons .btn {
    width: 100%;
    max-width: 200px; /* Match Load Species button width */
}

.custom-dropdown {
    width: 100%;
    max-width: 400px; /* Default to full size at load */
}
/* Buttons should match dropdown width */
#hotspotButtons .btn,
input[id="<%= loadSpeciesBtn.ClientID %>"].btn,
button[id="<%= loadSpeciesBtn.ClientID %>"].btn {
    width: 100% !important;
    max-width: 400px; /* Default to full size at load */
}
/* Adjust for smaller screens */
@media (max-width: 767px) {
    .custom-dropdown,
    #hotspotButtons .btn,
    input[id="<%= loadSpeciesBtn.ClientID %>"].btn,
    button[id="<%= loadSpeciesBtn.ClientID %>"].btn {
        max-width: 300px; /* Smaller width on mobile */
    }
}

/* Style the separator in the dropdown */
#regionFilter option.separator {
    color: #ccc; /* Light gray for the separator */
    text-align: center;
    pointer-events: none; /* Prevent interaction */
    background-color: #f5f5f5; /* Slight background to emphasize the separator */
}

#filterLabel {
    margin-top: 10px; /* Small gap above the sticky banner */
}

.lead-text {
    margin-top: 18px;
    margin-bottom: 18px;
    font-family: 'Roboto', sans-serif;
    color: var(--primary-blue-darkest);
}

/* ===== TILE MODERN UPGRADE ===== */

.home-tile,
.chart-tile {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
}

    /* hover / desktop */
    .home-tile:hover,
    .chart-tile:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    /* active / mobile tap */
    .home-tile:active,
    .chart-tile:active {
        transform: scale(0.98);
    }

/* ===== MODERN TOGGLES ===== */

.btn-group .btn {
    border-radius: 999px; /* pill shape */
    padding: 6px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    /* spacing between buttons */
    .btn-group .btn + .btn {
        margin-left: 6px;
    }

/* default state */
.btn-outline-primary {
    border-color: rgba(0,0,0,0.12);
    color: #444;
    background: white;
}

    /* hover */
    .btn-outline-primary:hover {
        background: rgba(0,123,255,0.08);
        border-color: rgba(0,123,255,0.3);
    }

    /* active state */
    .btn-outline-primary.active {
        background: #007bff;
        color: white;
        border-color: #007bff;
        box-shadow: 0 4px 10px rgba(0,123,255,0.25);
    }

/* ===== SECOND ROW (green ones) ===== */

    .btn-outline-success {
        border-color: rgba(0,0,0,0.12);
        color: #444;
        background: white;
    }

    .btn-outline-success:hover {
        background: rgba(40,167,69,0.08);
        border-color: rgba(40,167,69,0.3);
    }

    .btn-outline-success.active {
        background: #28a745;
        color: white;
        border-color: #28a745;
        box-shadow: 0 4px 10px rgba(40,167,69,0.25);
    }

    /* FIX: prevent white-on-light hover issue */
    .btn-outline-primary:hover {
        color: #0056b3; /* darker blue for readability */
    }

    .btn-outline-success:hover {
        color: #1e7e34; /* darker green */
    }

/* ===== TIMELINE ===== */

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 700px;
    padding-left: 20px;
}

    /* vertical line */
    .timeline::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(0,0,0,0.1);
    }

.timeline-item {
    position: relative;
    margin-bottom: 18px;
    padding-left: 25px;
}

/* dot */
.timeline-dot {
    position: absolute;
    left: -2px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #007bff;
    border-radius: 50%;
}

/* content box */
.timeline-content {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}

    .timeline-content:hover {
        transform: translateY(-2px);
    }

/* 🔥 break out of flex layout */
.timeline-wrapper {
    width: 100%;
    display: block;
    clear: both;
}

/* keep timeline centered */
.timeline {
    max-width: 700px;
    margin: 0 auto;
}

/* ===== TIMELINE LOCATION GROUPING ===== */

.location-group {
    margin-top: 12px;
    padding-top: 6px;
}

    .location-group:first-child {
        margin-top: 6px;
    }

.location-title {
    font-weight: 500;
    margin-bottom: 4px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
}

.comment {
    margin-left: 12px;
    margin-top: 3px;
    line-height: 1.35;
}


.about-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ===== ABOUT HERO ===== */

.about-hero {
    width: 100%;
    height: 260px;
    background-image: url('/site/images/pelee_tip.jpg'); background-size: cover;
    background-position: center;
    position: relative;
}

/* dark overlay */
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* text */
.about-hero-content {
    text-align: center;
    color: white;
}

    .about-hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 6px;
    }

    .about-hero-content p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

/* ===== RESPONSIVE ABOUT HEADER ===== */

.about-header-text {
    display: none !important;
}

/* mobile */
@media (max-width: 768px) {

    .about-hero {
        display: none !important;
    }

    .about-header-text {
        display: block !important;
        text-align: center;
        padding: 20px 15px 10px;
    }

        .about-header-text h1 {
            margin-bottom: 6px;
        }
}


.rarity-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    margin-top: 4px;
}

/* tiers */
.rarity-common {
    background: #e9ecef;
    color: #555;
}

.rarity-uncommon {
    background: #d0ebff;
    color: #1c7ed6;
}

.rarity-rare {
    background: #fff3bf;
    color: #e67700;
}

.rarity-very-rare {
    background: #ffe3e3;
    color: #c92a2a;
}

.rarity-exceptional {
    background: #f3d9fa;
    color: #862e9c;
}

.rarity-subtext {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
}

/* ===== SPECIES META (NEW - CLEAN ADD) ===== */

.species-meta {
    margin-top: 4px;
}

/* ===== TREND (NEW) ===== */

.trend {
    font-size: 0.7rem;
    margin-top: 2px;
    font-weight: 600;
}

.trend-increasing {
    color: #2ecc71;
}

.trend-strongly_increasing {
    color: #27ae60;
    font-weight: 700;
}

.trend-declining {
    color: #e74c3c;
}

/* ===== STATUS (NEW) ===== */

.status {
    font-size: 0.7rem;
    margin-top: 2px;
    font-weight: 600;
}

.status-recently_established {
    color: #16a085;
}

.status-irruptive {
    color: #8e44ad;
}

.bird-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    color: #bbb; /* default grey */
    transition: color 0.25s ease, transform 0.25s ease;
}

.bird-icon svg {
    width: 18px;
    height: 18px;
}

/* ✅ when fully cached */
.bird-icon.complete {
    color: #28a745; /* green */
}

/* ✅ optional partial state */
.bird-icon.partial {
    color: #ffc107; /* yellow */
}

/* animation stays */
.bird-icon.animate-complete {
    animation: cachePop 0.4s ease;
}

@keyframes cachePop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.35);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}


