/*
    USAWX Homepage Styles
    File: /assets/css/usawx-home.css
    Matches your current homepage class names.
*/

.hero {
    padding: 28px 0 18px;
}
.hero-panel,
.search-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 34px;
    background: linear-gradient(135deg, rgba(13,79,139,0.96), rgba(47,127,211,0.90));
    color: #fff;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 24px;
}

.hero-panel {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.02;
    max-width: 760px;
}

.hero-panel p {
    margin: 0;
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.94);
}

.hero-actions {
    margin-top: 22px;
}

.hero-badge-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    width: fit-content;
    max-width: 100%;
}

.hero-badge {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex: 0 0 78px;
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 6px;
}

.hero-badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-badge-text strong {
    font-size: 1rem;
    color: #fff;
}

.hero-badge-text span {
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.88);
}

.search-panel {
    padding: 26px;
}

.search-panel h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.search-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}

.search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.severe-wrap {
    padding: 8px 0 18px;
}

.severe-wrap .alert-banner {
    background: var(--danger-bg);
    border-color: #f3bbbb;
    color: var(--danger);
}

.map-panel {
    padding: 18px;
    overflow: hidden;
}

.map-placeholder {
    min-height: 520px;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.4rem;
}

.map-placeholder img,
.map-placeholder iframe {
    min-height: 484px;
    object-fit: cover;
}

.lower-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 24px;
}

.story-list,
.alert-list {
    display: grid;
    gap: 14px;
}

.story-item,
.alert-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #fbfdff;
}

.story-item h4,
.alert-item h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.story-item p,
.alert-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .hero-grid,
    .lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero-panel,
    .search-panel,
    .map-panel {
        padding: 20px;
    }

    .search-actions {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        min-height: 340px;
        font-size: 1.1rem;
    }

    .map-placeholder img,
    .map-placeholder iframe {
        min-height: 304px;
    }

    .hero-badge-wrap {
        align-items: flex-start;
    }

    .hero-badge {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .hero-badge-text strong {
        font-size: 0.95rem;
    }

    .hero-badge-text span {
        font-size: 0.86rem;
    }
}

@media (max-width: 520px) {
    .hero-panel h2 {
        font-size: 1.8rem;
    }

    .hero-badge-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}
