/* Full width gradient wrapper */
.weather-bar-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0c4a6e 100%);
    padding: 0;
    margin: 0;
}

/* Keep the bar itself at 1900px */
.fingal-danger-bar {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    background: transparent !important; /* Remove gradient from here */
    /* Keep all other styles the same */
    color: white;
    height: 64px;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--font-heading);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    position: relative;
    z-index: 10;
}

/* Update the container inside */
.fingal-danger-bar .container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0;
}
/* src/css/components/weather-bar.css - MODERN BEACHY VERSION */
.fingal-danger-bar {
    display: flex;
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    background: transparent;
    color: white;
    height: 64px;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--font-heading);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    position: relative;
    z-index: 10;
}

/* Beach wave effect at bottom */
.fingal-danger-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #fbbf24 0%, 
        #f59e0b 25%, 
        #0ea5e9 50%, 
        #0c4a6e 75%, 
        #1e40af 100%);
    opacity: 0.8;
}

/* DANGER SECTION - Beach flag inspired */
.danger-section {
    display: flex;
    padding: 0 28px;
    width: 220px;
    min-width: 220px;
    border-right: none;
    height: 100%;
    flex-shrink: 0;
    gap: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated beach wave in danger section */
.danger-section::before {
    content: '〰️〰️〰️';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    font-size: 24px;
    opacity: 0.3;
    text-align: center;
    animation: waveMove 20s linear infinite;
}

.danger-icon {
    font-size: 24px;
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
    z-index: 1;
}

.danger-content {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
    z-index: 1;
}

.danger-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.danger-rating {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Color-coded danger levels - Beach inspired */
.danger-low .danger-rating { 
    color: #34d399;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.danger-moderate .danger-rating { 
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.danger-high .danger-rating { 
    color: #f87171;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
    animation: pulseBeach 2s infinite;
}

/* WEATHER STATS - Clean, modern, beachy */
.weather-stats {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    min-width: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
}

.weather-stat {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    flex: 1;
    min-width: 0;
    gap: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.weather-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.weather-stat::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 40%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.weather-stat:last-child::after {
    display: none;
}

.stat-icon {
    font-size: 22px;
    color: #fbbf24;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.3));
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

.stat-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: white;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value sup {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.9;
}

.stat-value small {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
    margin-left: 2px;
}

/* LIVE UPDATE SECTION - Modern badge style */
.live-update-section {
    display: flex;
    align-items: center;
    padding: 0 28px;
    width: 320px;
    min-width: 320px;
    border-left: none;
    height: 100%;
    flex-shrink: 0;
    gap: 20px;
    background: rgba(14, 165, 233, 0.25);
    backdrop-filter: blur(8px);
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle sand texture */
.live-update-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 20%);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    z-index: 1;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #34d399;
    border-radius: 50%;
    animation: pulseLive 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.5));
}

.live-text {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* UPDATED TIME */
.updated-time {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 1;
}

.updated-icon {
    font-size: 16px;
    color: #fbbf24;
    opacity: 0.9;
    filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.3));
}

.updated-text {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* UV & Water Quality - Beach color themes */
.weather-stat .uv-low { color: #34d399; } /* Sea green */
.weather-stat .uv-moderate { color: #fbbf24; } /* Sun yellow */
.weather-stat .uv-high,
.weather-stat .uv-extreme { 
    color: #f87171; /* Sunset red */
}

.uv-extreme {
    animation: pulseBeach 1.5s infinite;
}

.water-good { color: #34d399 !important; } /* Clean sea */
.water-fair { color: #fbbf24 !important; } /* Hazy sun */
.water-poor { 
    color: #f87171 !important; /* Murky water */
    animation: pulseBeach 2s infinite;
}

/* ANIMATIONS */
@keyframes waveMove {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

@keyframes pulseBeach {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* RESPONSIVE */
@media (max-width: 1600px) {
    .danger-section { width: 200px; min-width: 200px; padding: 0 20px; }
    .live-update-section { width: 280px; min-width: 280px; padding: 0 20px; }
    .weather-stat { padding: 0 16px; gap: 12px; }
}

@media (max-width: 1400px) {
    .fingal-danger-bar { height: 60px; }
    .danger-section { width: 180px; min-width: 180px; padding: 0 16px; }
    .live-update-section { width: 260px; min-width: 260px; padding: 0 16px; gap: 16px; }
    .stat-icon { font-size: 20px; }
    .stat-value { font-size: 18px; }
}

/* Loading state */
.fingal-danger-bar.loading {
    opacity: 0.9;
}

.fingal-danger-bar.loading .weather-stat {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
