/* ============================================================
   WEATHER DUCK — WEATHER WARNING BANNERS
   Fully aligned with PHP + JS toggle logic
   ============================================================ */

/* ============================================================
   BASE BANNER
   ============================================================ */
.wind-warning-banner {
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--wd-radius-sm);
    line-height: 1.35;
    border-left: 6px solid;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* ============================================================
   SEVERITY COLOURS
   ============================================================ */
.wind-warning-banner.yellow {
    background: #fff6c7;
    border-color: #f5c400;
    color: #614a00;
}

.wind-warning-banner.amber {
    background: #ffe1b3;
    border-color: #ff9900;
    color: #6a3d00;
}

.wind-warning-banner.red {
    background: #ffd2d2;
    border-color: #e60000;
    color: #7a0000;
}

/* ============================================================
   HEADER (TITLE LEFT — TOGGLE RIGHT)
   ============================================================ */
.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

/* ============================================================
   TOGGLE BUTTON
   ============================================================ */
.alert-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    color: inherit;
    transition: opacity 0.2s ease;
}

.alert-toggle:hover {
    opacity: 0.7;
}

/* ============================================================
   COLLAPSIBLE CONTENT
   (Collapsed by default — JS controls expansion)
   ============================================================ */
.alert-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

/* ============================================================
   SECTION TITLES INSIDE CONTENT
   ============================================================ */
.alert-type-header {
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* ============================================================
   EVENT ITEMS
   ============================================================ */
.alert-content > div {
    margin-left: 2px;
    margin-bottom: 3px;
}

/* ============================================================
   TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {

    .wind-warning-banner {
        font-size: 0.9rem;
        padding: 9px 12px;
    }

    .alert-toggle {
        font-size: 18px;
    }

    .alert-content > div {
        margin-bottom: 2px;
    }
}

/* ============================================================
   MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {

    .wind-warning-banner {
        font-size: 0.85rem;
        padding: 8px 10px;
        line-height: 1.3;
    }

    .alert-header {
        margin-bottom: 4px;
    }

    .alert-toggle {
        font-size: 17px;
        padding: 0 4px;
    }

    .alert-type-header {
        margin-top: 5px;
        margin-bottom: 3px;
    }
}

/* ============================================================
   SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {

    .wind-warning-banner {
        font-size: 0.88rem;
        padding: 7px 9px;
        line-height: 1.25;
    }

    .alert-toggle {
        font-size: 18px;
        padding: 0 3px;
    }

    .alert-type-header {
        font-size: 0.82rem;
        margin-top: 4px;
        margin-bottom: 3px;
    }

    .alert-content > div {
        margin-left: 1px;
        margin-bottom: 2px;
    }
}
