/* ===================================================== */
/* HERO – POGODA TERAZ                                   */
/* ===================================================== */

.hero-weather {
    margin: 18px auto 28px auto;
    max-width: 1100px;
    padding: 18px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, #1c3149, #132337);
    color: #ffffff;
    box-shadow: 0 12px 45px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;               /* ⬅️ DODANE (animacje) */
    overflow: hidden;                 /* ⬅️ DODANE (animacje) */
}

.hero-weather.hidden {
    display: none;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;               /* ⬅️ DODANE */
    z-index: 2;                       /* ⬅️ DODANE */
}

.hero-title {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-title strong {
    font-weight: 700;
    color: #9fd4ff;
}

.hero-values {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    gap: 16px;
    align-items: center;
    text-shadow: 0 0 12px rgba(160,200,255,0.35);
}

/* ===================================================== */
/* ⚠️ OSTRZEŻENIE – HERO                                 */
/* ===================================================== */

.hero-alert {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #ffd34d;
    background: rgba(255, 180, 60, 0.14);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 0 10px rgba(255, 180, 60, 0.25);
}

/* ===================================================== */
/* 4️⃣ PRZYCISK GPS                                      */
/* ===================================================== */

.hero-gps {
    margin-left: auto;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-gps:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

/* ===================================================== */
/* 5️⃣ ANIMACJE POGODY                                   */
/* ===================================================== */

.hero-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* 🌧️ DESZCZ */
.hero-weather.rain .hero-animation::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.25) 0 2px,
        transparent 2px 7px
    );
    animation: hero-rain 0.6s linear infinite;
    opacity: 0.45;
}

@keyframes hero-rain {
    from { background-position: 0 0; }
    to   { background-position: -60px 60px; }
}

/* ❄️ ŚNIEG */
.hero-weather.snow .hero-animation::before {
    content: "❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄";
    position: absolute;
    width: 100%;
    top: -40px;
    text-align: center;
    font-size: 18px;
    opacity: 0.45;
    animation: hero-snow 7s linear infinite;
}

@keyframes hero-snow {
    from { transform: translateY(0); }
    to   { transform: translateY(160px); }
}

/* ===== DELIKATNY HOVER (DESKTOP) ===== */
@media (hover: hover) and (pointer: fine) {
    .hero-weather:hover {
        box-shadow:
            0 0 0 1px rgba(255,255,255,0.06),
            0 14px 55px rgba(0,0,0,0.55),
            0 0 22px rgba(100,180,255,0.25);
        transform: translateY(-1px);
        transition: all 0.25s ease;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 720px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-values {
        font-size: 20px;
    }

    .hero-alert {
        margin-left: 0;
        margin-top: 6px;
    }

    .hero-gps {
        margin-left: 0;
        margin-top: 8px;
    }
}
