/* Hotspot Details - Lake List Styling
 * TODO: Replace hardcoded values with variables.css when merged from ra_dashboard_2
 * 
 * Variable mappings to replace later:
 * - Colors: --_risk_very_high_color, --_risk_high_color, --_risk_medium_color, --_risk_low_color
 * - Spacing: --_spacing_xs, --_spacing_sm, --_spacing_md, --_spacing_lg
 * - Font sizes: --_font_size_xs, --_font_size_sm, --_font_size_base
 * - Borders: --_border_radius, --_border_radius_xl, --_border_color
 * - Shadows: --_shadow_md
 * - Transitions: --_transition_base
 * - Text: --_text_primary_color, --_text_secondary_color, --_text_white_color
 * - Backgrounds: --_background_color, --_background_secondary_color
 */

/* Hotspot Panel Container */
.hotspot-panel {
    max-height: 250px;
    min-height: 250px;
    overflow-y: auto;
    position: relative;
}

.hotspot-card-container {
    border-radius: 1rem;
    padding: 1rem;
    min-width: 420px;
}

.hotspot-card-header {
    margin-bottom: 1rem;
    
    padding-bottom: 0.5rem;
}

.hotspot-card-body {
}

/* Hotspot List */
.hotspots-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Hotspot Card */
.hotspot-card {
    border-radius: 1rem;
    padding: 1rem;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.hotspot-card:hover,
.hotspot-card-selected {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.hotspot-card:active {
    transform: translateY(0);
}

.hotspot-card-header {
    margin-bottom: 1rem;
}

/* Hotspot Info Row */
.hotspot-info-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.hotspot-info-row > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hotspot-label {
    font-size: 1.2rem;
    color: #212529;
    line-height: 1.4;
}

/* Intensity Badges */
.hotspot-intensity {
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    line-height: 1.4;
}

.intensity-very-high {
    background-color: #dd4c3d;
    color: #212529;
}

.intensity-high {
    background-color: #ffa500;
    color: #212529;
}

.intensity-medium {
    background-color: #ffff00;
    color: #212529;
}

.intensity-low {
    background-color: #87ceeb;
    color: #212529;
}

.intensity-no-data {
    background-color: var(--_text_muted_color, #6c757d);
    color: var(--_text_white_color, #ffffff);
}

/* Hotspot Value */
.hotspot-value {
    font-size: 1.2rem;
    color: #212529;
    font-weight: 600;
}

/* Cyanobacteria Status */
.hotspot-cyano {
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.cyano-detected {
    background-color: #dd4c3d;
}

.cyano-not-detected {
    background-color: #28a745;
}

.cyano-unknown {
    background-color: var(--_text_muted_color, #6c757d);
    color: var(--_text_white_color, #ffffff)
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.stat-loading .loading-overlay {
    display: flex !important;
}

.loading-gif {
    max-width: 50px;
    height: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2.5rem;
    color: #6c757d;
    font-style: italic;
}

.empty-state i {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Custom Scrollbar */
.hotspot-panel::-webkit-scrollbar {
    width: 10px;
    background-color: #f1f1f1;
}

.hotspot-panel::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
}

/* Hotspot Panel Toggle Button */
#hotspot-panel-button {
    background: none;
    border: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: #777;
    padding: 0;
    margin: 0;
}

/* Toggle functionality */
.hidden {
    display: none !important;
}

.hotspot-panel.collapsed {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.hotspot-panel.collapsed .hotspot-card-container {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.hotspot-panel.collapsed .hotspot-card-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hotspot-panel.collapsed .hotspot-search-wrapper {
    display: none !important;
}

.hotspot-panel.collapsed #hotspot-panel-button {
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 6px 8px;
}

/* Header Row */
.hotspot-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#hotspot-panel-button {
    flex-shrink: 0;
}

/* Search Input */
.hotspot-search-wrapper {
    position: relative;
    flex: 1;
}

.hotspot-search-input {
    width: 100%;
    padding: 0.5rem 4rem 0.5rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 1.1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #fff;
}

.hotspot-search-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.hotspot-search-input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.hotspot-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    font-size: 1rem;
}

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
    transition: color 0.15s ease-in-out;
}

.clear-search-btn:hover {
    color: #343a40;
}
