* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
    font-family: Arial, sans-serif;
    background: #101827;
    overflow-x: hidden;
}


/* =========================
   TLO
========================= */

body::before {
    content: "";

    position: fixed;

    inset: -30px;

    background-image:
        url("background.png");

    background-size: cover;

    background-position: center;

    filter: blur(5px);

    transform: scale(1.05);

    z-index: -2;
}

body::after {
    content: "";

    position: fixed;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 14, 25, 0.42),
            rgba(7, 14, 25, 0.58)
        );

    z-index: -1;

    pointer-events: none;
}


/* =========================
   LOADING
========================= */

.loading-screen {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            rgba(7, 14, 25, 0.84),
            rgba(7, 14, 25, 0.92)
        );

    opacity: 1;

    visibility: visible;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.loading-screen.hide {
    opacity: 0;

    visibility: hidden;
}

.loading-content {
    width:
        min(
            420px,
            85%
        );

    text-align: center;
}

.loading-logo {
    color: white;

    font-size: 52px;

    font-weight: 700;

    letter-spacing: 5px;

    margin-bottom: 10px;
}

.loading-subtitle {
    color: #a4b2c3;

    font-size: 15px;

    margin-bottom: 35px;
}

.loading-bar {
    width: 100%;

    height: 4px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.14
        );
}

.loading-progress {
    width: 0%;

    height: 100%;

    border-radius: 20px;

    background: white;

    box-shadow:
        0 0 18px
        rgba(
            255,
            255,
            255,
            0.55
        );

    transition:
        width 0.1s linear;
}

.loading-percent {
    margin-top: 14px;

    color: white;

    font-size: 14px;

    font-weight: 600;
}

.loading-status {
    margin-top: 8px;

    color: #7f90a6;

    font-size: 13px;
}


/* =========================
   APLIKACJA
========================= */

.app {
    min-height: 100vh;

    opacity: 1;

    transition:
        opacity 0.8s ease;
}

.app.hidden {
    opacity: 0;
}


/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 100;

    width: 100%;

    min-height: 0;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 10px;

    padding:
        12px 7%;

    background:
        rgba(
            15,
            23,
            36,
            0.70
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


/* =========================
   GORNY RZAD
========================= */

.header-top {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    min-width: 0;
}

.site-header .logo {
    display: block;

    width: 150px;

    height: auto;

    max-width: 100%;

    object-fit: contain;

    flex-shrink: 0;

    font-size: 0;

    line-height: 0;

    margin: 0;
}


/* =========================
   SEARCH
========================= */

.site-header .search-wrapper {
    position: relative;

    width: 100%;

    max-width: 680px;

    margin: 0 auto;

    min-width: 0;
}

.site-header .search {
    display: flex;

    width: 100%;

    min-width: 0;

    overflow: visible;
}

.site-header .search input {
    flex: 1 1 auto;

    width: 100%;

    min-width: 0;

    height: 46px;

    padding:
        0 15px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    border-right: none;

    border-radius:
        10px 0 0 10px;

    outline: none;

    font-size: 16px;

    line-height: 46px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    color: white;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: clip;
}

.site-header .search input::placeholder {
    color: #b1bdca;

    opacity: 1;
}

.site-header .search input:focus {
    border-color:
        rgba(
            255,
            255,
            255,
            0.40
        );

    background:
        rgba(
            255,
            255,
            255,
            0.14
        );
}

.site-header .search button {
    flex:
        0 0 auto;

    min-width: 82px;

    height: 46px;

    padding:
        0 16px;

    border: none;

    border-radius:
        0 10px 10px 0;

    background:
        rgba(
            255,
            255,
            255,
            0.18
        );

    color: white;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.2s ease;
}

.site-header .search button:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.27
        );
}


/* =========================
   KATEGORIE
========================= */

.category-bar {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-width: 0;

    overflow-x: auto;

    overflow-y: hidden;

    padding:
        2px 0 3px;

    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-bar .menu-button {
    flex:
        0 0 auto;
}


/* =========================
   MENU BUTTON
========================= */

.menu-button {
    flex-shrink: 0;

    height: 42px;

    padding:
        0 14px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    color: white;

    font-size: 14px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    white-space: nowrap;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.menu-button:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.19
        );

    transform:
        translateY(-1px);
}

.menu-button:active {
    transform:
        scale(0.97);
}


/* =========================
   IKONY MENU
========================= */

.menu-icon {
    width: 20px;

    height: 20px;

    display: block;

    object-fit: contain;

    flex-shrink: 0;
}

.radar-menu-icon {
    width: 30px;

    height: 30px;

    display: block;

    object-fit: contain;

    flex-shrink: 0;
}


/* =========================
   POBIERZ POGODE
========================= */

.download-button {
    white-space: nowrap;
}

.download-icon {
    width: 20px;

    height: 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    line-height: 1;

    flex-shrink: 0;
}

.download-button:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.19
        );

    transform:
        translateY(-1px);
}


/* =========================
   PWA - UKRYCIE POBIERANIA
========================= */

body.is-standalone #downloadWeatherButton {
    display: none !important;
}

@media (display-mode: standalone) {

    #downloadWeatherButton {
        display: none !important;
    }

}


/* =========================
   REFRESH
========================= */

.refresh {
    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    color: white;

    font-size: 22px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.2s ease;
}

.refresh:hover {
    transform:
        rotate(180deg);

    background:
        rgba(
            255,
            255,
            255,
            0.18
        );
}


/* =========================
   SUGESTIE
========================= */

.suggestions {
    position: absolute;

    top:
        calc(
            100% + 8px
        );

    left: 0;

    right: 0;

    display: none;

    overflow: hidden;

    z-index: 1000;

    background:
        rgba(
            20,
            29,
            43,
            0.94
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    border-radius: 14px;

    box-shadow:
        0 18px 45px
        rgba(
            0,
            0,
            0,
            0.30
        );

    backdrop-filter:
        blur(20px);
}

.suggestions.show {
    display: block;
}

.suggestion-section-title {
    padding:
        12px 16px 7px;

    color: #7f91a7;

    font-size: 11px;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.suggestion {
    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        13px 16px;

    cursor: pointer;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    opacity: 0;

    transform:
        translateY(-8px);

    animation:
        suggestionIn
        0.25s ease
        forwards;

    transition:
        background 0.15s ease,
        padding-left 0.15s ease;
}

.suggestion:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.09
        );

    padding-left: 21px;
}

.suggestion-icon {
    width: 28px;

    text-align: center;

    font-size: 20px;
}

.suggestion-text {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.suggestion-name {
    color: white;

    font-weight: bold;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.suggestion-name mark {
    padding: 0;

    background: transparent;

    color: #8fc4ff;

    font-weight: 800;
}

.suggestion-country {
    margin-top: 3px;

    color: #9eacbc;

    font-size: 12px;
}

@keyframes suggestionIn {

    from {

        opacity: 0;

        transform:
            translateY(-8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================
   PANELE
========================= */

.floating-panel,
.radar-panel {
    position: fixed;

    top: 88px;

    right: 7%;

    z-index: 500;

    width:
        min(
            500px,
            calc(100% - 30px)
        );

    max-height:
        calc(
            100vh - 105px
        );

    overflow-y: auto;

    padding: 22px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );

    border-radius: 20px;

    background:
        rgba(
            17,
            26,
            40,
            0.94
        );

    box-shadow:
        0 24px 60px
        rgba(
            0,
            0,
            0,
            0.35
        );

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-12px)
        scale(0.98);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.floating-panel.open,
.radar-panel.open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}

.panel-header,
.radar-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.panel-header h2,
.radar-header h2 {
    margin: 0;

    color: white;

    font-size: 21px;
}

.panel-header p,
.radar-header p {
    margin:
        5px 0 0;

    color: #96a5b7;

    font-size: 13px;
}

.close-panel {
    width: 34px;

    height: 34px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: white;

    font-size: 23px;

    line-height: 1;

    cursor: pointer;
}


/* =========================
   TYTUL Z IKONA
========================= */

.panel-title-icon {
    display: flex;

    align-items: center;

    gap: 8px;

    margin: 0;
}

.panel-title-icon img {
    width: 26px;

    height: 26px;

    display: block;

    object-fit: contain;

    flex-shrink: 0;
}

.panel-title-icon span {
    color: white;

    font-size: 21px;

    font-weight: 700;
}


/* =========================
   PYLKI
========================= */

.pollen-overall {
    display: inline-block;

    margin-bottom: 15px;

    padding:
        8px 12px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: #d9e3ee;

    font-size: 13px;
}

.pollen-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.pollen-item {
    padding: 14px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );
}

.pollen-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}

.pollen-name {
    color: white;

    font-size: 14px;

    font-weight: 600;
}

.pollen-level {
    font-size: 11px;

    font-weight: 700;
}

.pollen-value {
    margin-top: 5px;

    color: #aebbc9;

    font-size: 12px;
}

.pollen-track {
    width: 100%;

    height: 5px;

    margin-top: 11px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );
}

.pollen-fill {
    height: 100%;

    border-radius: 20px;
}

.pollen-fill-low {
    background: #73c873;
}

.pollen-fill-moderate {
    background: #e3c34f;
}

.pollen-fill-high {
    background: #f09446;
}

.pollen-fill-very-high {
    background: #e85e5e;
}

.pollen-low {
    color: #73c873;
}

.pollen-moderate {
    color: #e3c34f;
}

.pollen-high {
    color: #f09446;
}

.pollen-very-high {
    color: #e85e5e;
}

.pollen-info {
    margin-top: 15px;

    color: #7f90a6;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================
   ZJAWISKA
========================= */

.events-panel {
    width:
        min(
            500px,
            calc(100% - 30px)
        );
}

.events-list {
    display: flex;

    flex-direction: column;

    gap: 10px;

    max-height: 480px;

    overflow-y: auto;
}

.event-item {
    padding: 16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}

.event-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}

.event-name {
    color: white;

    font-size: 15px;

    font-weight: 700;
}

.event-type {
    color: #8fc4ff;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}

.event-date {
    margin-top: 7px;

    color: #b7c4d2;

    font-size: 13px;
}

.event-countdown {
    margin-top: 8px;

    color: #9be49b;

    font-size: 13px;

    font-weight: 600;
}


/* =========================
   RADAR
========================= */

.radar-panel {
    width:
        min(
            900px,
            calc(100% - 30px)
        );
}

.radar-map {
    width: 100%;

    height: 500px;

    overflow: hidden;

    border-radius: 14px;

    background: #dce3ea;
}

.radar-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 12px;
}

.radar-controls button {
    min-width: 46px;

    height: 38px;

    padding:
        0 13px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: white;

    cursor: pointer;

    transition:
        background 0.2s ease;
}

.radar-controls button:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.16
        );
}

.radar-play {
    min-width:
        120px !important;
}

.radar-time-row {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 10px;

    color: #aebbc9;

    font-size: 13px;
}

.radar-time-row strong {
    color: white;
}

.radar-source {
    margin-top: 14px;

    color: #7f90a6;

    font-size: 11px;

    text-align: center;
}

.radar-source a {
    color: #8fc4ff;

    text-decoration: none;
}


/* =========================
   LEAFLET
========================= */

.leaflet-control-zoom a {
    background:
        rgba(
            20,
            29,
            43,
            0.88
        ) !important;

    color: white !important;

    border-color:
        rgba(
            255,
            255,
            255,
            0.12
        ) !important;
}

.leaflet-control-attribution {
    font-size: 9px;
}


/* =========================
   MAIN
========================= */

main {
    width: 86%;

    max-width: 1200px;

    margin:
        30px auto 60px;
}


/* =========================
   LOKALIZACJA
========================= */

.location {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.location-pin {
    font-size: 25px;
}

.location-title {
    position: relative;

    min-width: 0;
}

.location h2 {
    margin: 0;

    color: white;

    font-size: 27px;
}

.location p {
    margin:
        4px 0 0;

    color: #bcc8d6;
}


/* =========================
   AKTUALNA POGODA
========================= */

.current-weather {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    padding: 32px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );

    border-radius: 20px;

    background:
        rgba(
            20,
            29,
            43,
            0.56
        );

    box-shadow:
        0 16px 40px
        rgba(
            0,
            0,
            0,
            0.15
        );

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}

.main-temperature {
    display: flex;

    align-items: center;

    gap: 25px;

    min-width: 0;
}

.weather-icon {
    width: 120px;

    height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;
}

.weather-icon img {
    width: 120px;

    height: 120px;

    display: block;

    object-fit: contain;
}

#temperature {
    color: white;

    font-size: 68px;

    font-weight: bold;

    line-height: 1;
}

#description {
    margin:
        10px 0 0;

    color: #c0ccd9;

    font-size: 17px;
}


/* =========================
   SZCZEGOLY
========================= */

.details {
    display: flex;

    align-items: center;

    gap: 45px;
}

.details div {
    min-width: 85px;

    text-align: center;
}

.details span {
    font-size: 25px;
}

.detail-icon {
    width: 46px;

    height: 46px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto;
}

.detail-icon img {
    width: 46px;

    height: 46px;

    display: block;

    object-fit: contain;

    flex-shrink: 0;
}

.details p {
    margin:
        7px 0;

    color: #aebbc9;

    font-size: 14px;
}

.details strong {
    color: white;

    font-size: 16px;
}


/* =========================
   DESZCZ
========================= */

.rain-alert {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 16px;

    padding:
        20px 24px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 18px;

    background:
        rgba(
            20,
            29,
            43,
            0.55
        );

    box-shadow:
        0 10px 30px
        rgba(
            0,
            0,
            0,
            0.12
        );

    backdrop-filter:
        blur(16px
        );

    -webkit-backdrop-filter:
        blur(16px);
}

.rain-alert-icon {
    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;
}

.rain-alert-icon img {
    width: 68px;

    height: 68px;

    object-fit: contain;

    display: block;
}

.rain-alert-content {
    min-width: 0;
}

.rain-alert-title {
    color: white;

    font-size: 19px;

    font-weight: 700;
}

.rain-alert-text {
    margin-top: 4px;

    color: #b5c2d0;

    font-size: 14px;
}


/* =========================
   PROGNOZA GODZINOWA
========================= */

.forecast,
.daily {
    margin-top: 32px;
}

.forecast h2,
.daily h2 {
    margin:
        0 0 15px;

    color: white;

    font-size: 20px;
}

.hourly,
.days {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding-bottom: 8px;
}

.hour {
    width: 120px;

    flex-shrink: 0;

    padding: 18px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 16px;

    background:
        rgba(
            20,
            29,
            43,
            0.55
        );

    text-align: center;

    backdrop-filter:
        blur(16px);
}

.hour p {
    margin: 0;

    color: #aebbc9;

    font-size: 13px;
}

.hour span {
    display: flex;

    align-items: center;

    justify-content: center;

    height: 62px;

    margin:
        11px 0;
}

.hour span img {
    width: 58px;

    height: 58px;

    display: block;

    object-fit: contain;
}

.hour strong {
    color: white;

    font-size: 20px;
}

.hour-rain {
    display: block;

    min-height: 15px;

    margin-top: 7px;

    color: #8fc4ff;

    font-size: 11px;
}


/* =========================
   7 DNI
========================= */

.day {
    min-width: 160px;

    flex: 1;

    padding: 18px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 16px;

    background:
        rgba(
            20,
            29,
            43,
            0.55
        );

    text-align: center;

    backdrop-filter:
        blur(16px);
}

.day strong {
    color: white;
}

.day span {
    display: flex;

    align-items: center;

    justify-content: center;

    height: 78px;

    margin:
        10px 0;
}

.day span img {
    width: 72px;

    height: 72px;

    display: block;

    object-fit: contain;
}

.day p {
    margin:
        7px 0;

    color: #bdc8d4;

    font-size: 14px;
}

.rain {
    color: #8fc4ff !important;

    font-size: 13px !important;
}


/* =========================
   DODATKOWE INFORMACJE
========================= */

.extra-weather {
    margin-top: 32px;

    padding: 24px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 18px;

    background:
        rgba(
            20,
            29,
            43,
            0.55
        );

    box-shadow:
        0 10px 30px
        rgba(
            0,
            0,
            0,
            0.12
        );

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);
}

.extra-header {
    margin-bottom: 18px;
}

.extra-header h2 {
    margin: 0;

    color: white;

    font-size: 20px;
}

.extra-header p {
    margin:
        5px 0 0;

    color: #9eacbc;

    font-size: 13px;
}

.extra-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.extra-card {
    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 105px;

    padding: 16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.extra-card:hover {
    transform:
        translateY(-2px);

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );
}

.extra-icon {
    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    font-size: 26px;

    flex-shrink: 0;
}

.extra-icon img {
    width: 30px;

    height: 30px;

    display: block;

    object-fit: contain;
}

.extra-content {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.extra-label {
    color: #aebbc9;

    font-size: 12px;
}

.extra-value {
    margin-top: 3px;

    color: white;

    font-size: 21px;

    font-weight: 700;
}

.extra-status {
    margin-top: 4px;

    color: #9aa9ba;

    font-size: 12px;
}

.status-good {
    color: #9be49b !important;
}

.status-moderate {
    color: #f2d16b !important;
}

.status-high {
    color: #ffad62 !important;
}

.status-very-high {
    color: #ff7777 !important;
}


/* =========================
   UPDATE
========================= */

.update {
    margin-top: 20px;

    color: #9aa9ba;

    font-size: 13px;
}

.error {
    color: #ff7d7d;
}


/* =========================
   SCROLL
========================= */

.hourly::-webkit-scrollbar,
.days::-webkit-scrollbar,
.events-list::-webkit-scrollbar {
    width: 6px;

    height: 6px;
}

.hourly::-webkit-scrollbar-thumb,
.days::-webkit-scrollbar-thumb,
.events-list::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.18
        );
}


/* =========================
   POPULARNE ARTYKULY
========================= */

.popular-articles {
    width: 100%;

    margin-top: 32px;

    padding: 24px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 18px;

    background:
        rgba(
            20,
            29,
            43,
            0.55
        );

    box-shadow:
        0 10px 30px
        rgba(
            0,
            0,
            0,
            0.12
        );

    backdrop-filter:
        blur(16px
        );

    -webkit-backdrop-filter:
        blur(16px);
}

.popular-articles .extra-header {
    margin-bottom: 18px;
}

.popular-articles .extra-header h2 {
    margin: 0;

    color: white;

    font-size: 20px;
}

.popular-articles .extra-header p {
    margin:
        5px 0 0;

    color: #9eacbc;

    font-size: 13px;
}

.popular-articles-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;

    width: 100%;
}

.article-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 115px;

    padding: 16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );

    color: white;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.article-card:hover {
    transform:
        translateY(-2px);

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    border-color:
        rgba(
            255,
            255,
            255,
            0.13
        );
}

.article-left {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: space-between;

    width: 46px;

    min-width: 46px;

    height: 82px;
}

.article-number {
    color:
        rgba(
            255,
            255,
            255,
            0.38
        );

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.8px;
}

.article-icon {
    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    font-size: 23px;

    flex-shrink: 0;
}

.article-content {
    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;

    height: 82px;
}

.article-category {
    display: inline-block;

    width: fit-content;

    margin-bottom: 5px;

    color: #9eacbc;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}

.article-card h3 {
    margin: 0;

    color: white;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 600;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.article-read {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: auto;

    color: #9eacbc;

    font-size: 11px;

    font-weight: 600;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.article-read span {
    font-size: 14px;
}

.article-card:hover .article-read {
    color: white;

    gap: 8px;
}

.articles-loading {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    width: 100%;

    min-height: 100px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );

    color: #9eacbc;

    font-size: 13px;
}

.articles-loading-icon {
    font-size: 20px;

    animation:
        articlesFloat
        1.5s
        ease-in-out
        infinite;
}

@keyframes articlesFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-3px);

    }

}

.articles-error {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 100px;

    padding: 18px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );

    color: white;

    font-size: 13px;
}

.articles-error > span {
    font-size: 22px;
}

.articles-error strong {
    display: block;

    margin-bottom: 3px;

    color: white;

    font-size: 13px;
}

.articles-error small {
    display: block;

    color: #9eacbc;

    font-size: 11px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .site-header {
        padding:
            12px 4%;
    }

    main {
        width: 92%;
    }

    .current-weather {
        flex-direction: column;
    }

    .radar-panel {
        top: 130px;

        right: 15px;

        width:
            calc(100% - 30px);
    }

    .radar-map {
        height: 420px;
    }

    .extra-grid {
        grid-template-columns:
            1fr;
    }

    .popular-articles-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================
   TELEFON
========================= */

@media (max-width: 750px) {

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    /* HEADER */

    .site-header {
        width: 100%;

        padding:
            9px 12px 10px;

        gap: 9px;

        overflow: visible;
    }


    /* LOGO + REFRESH */

    .header-top {
        width: 100%;

        min-height: 42px;

        justify-content: space-between;
    }

    .site-header .logo {
        width: 125px;

        max-width: calc(
            100% - 55px
        );
    }

    .refresh {
        width: 42px;

        height: 42px;
    }


    /* WYSZUKIWARKA */

    .site-header .search-wrapper {
        width: 100%;

        max-width: none;

        margin: 0;

        flex: none;
    }

    .site-header .search {
        width: 100%;

        min-width: 0;
    }

    .site-header .search input {
        flex:
            1 1 auto;

        width: auto;

        min-width: 0;

        height: 46px;

        padding:
            0 13px;

        font-size: 16px;

        line-height: 46px;
    }

    .site-header .search button {
        flex:
            0 0 auto;

        width: auto;

        min-width: 70px;

        height: 46px;

        padding:
            0 12px;

        font-size: 13px;
    }


    /* KATEGORIE */

    .category-bar {
        width: calc(100% + 24px);

        margin-left: -12px;

        justify-content: flex-start;

        gap: 8px;

        padding:
            2px 12px 4px;

        overflow-x: auto;

        overflow-y: hidden;

        scrollbar-width: none;

        -webkit-overflow-scrolling:
            touch;
    }

    .category-bar::-webkit-scrollbar {
        display: none;
    }

    .category-bar .menu-button {
        height: 40px;

        min-width: max-content;

        padding:
            0 12px;

        font-size: 13px;

        flex:
            0 0 auto;
    }

    .menu-icon {
        width: 18px;

        height: 18px;
    }

    .radar-menu-icon {
        width: 26px;

        height: 26px;
    }

    .download-icon {
        width: 18px;

        height: 18px;

        font-size: 19px;
    }


    /* MAIN */

    main {
        width:
            calc(
                100% - 24px
            );

        max-width: none;

        margin:
            22px auto 45px;
    }


    /* LOKALIZACJA */

    .location {
        gap: 9px;

        margin-bottom: 14px;
    }

    .location-pin {
        font-size: 22px;
    }

    .location h2 {
        font-size: 22px;
    }

    .location p {
        font-size: 13px;
    }


    /* AKTUALNA POGODA */

    .current-weather {
        flex-direction: column;

        gap: 22px;

        padding: 20px;

        border-radius: 18px;
    }

    .main-temperature {
        width: 100%;

        gap: 12px;

        min-width: 0;
    }

    .weather-icon {
        width: 82px;

        height: 82px;
    }

    .weather-icon img {
        width: 82px;

        height: 82px;
    }

    #temperature {
        font-size: 52px;
    }

    #description {
        margin-top: 7px;

        font-size: 15px;
    }


    /* SZCZEGOLY */

    .details {
        width: 100%;

        justify-content:
            space-between;

        gap: 6px;
    }

    .details div {
        min-width: 0;

        flex: 1;
    }

    .detail-icon {
        width: 38px;

        height: 38px;
    }

    .detail-icon img {
        width: 38px;

        height: 38px;
    }

    .details p {
        margin:
            5px 0;

        font-size: 12px;
    }

    .details strong {
        font-size: 14px;
    }


    /* DESZCZ */

    .rain-alert {
        gap: 12px;

        padding: 16px;
    }

    .rain-alert-icon {
        width: 56px;

        height: 56px;
    }

    .rain-alert-icon img {
        width: 54px;

        height: 54px;
    }

    .rain-alert-title {
        font-size: 17px;
    }

    .rain-alert-text {
        font-size: 13px;
    }


    /* GODZINY */

    .forecast,
    .daily {
        margin-top: 26px;
    }

    .forecast h2,
    .daily h2 {
        font-size: 18px;
    }

    .hourly,
    .days {
        gap: 8px;
    }

    .hour {
        width: 108px;

        padding:
            14px 11px;
    }

    .hour span {
        height: 58px;
    }

    .hour span img {
        width: 54px;

        height: 54px;
    }

    .hour strong {
        font-size: 19px;
    }

    .day {
        min-width: 145px;

        padding: 15px;
    }


    /* DODATKOWE */

    .extra-weather {
        padding: 18px;

        margin-top: 26px;
    }

    .extra-grid {
        grid-template-columns:
            1fr;

        gap: 10px;
    }


    /* PANELE */

    .floating-panel,
    .radar-panel {
        top: 125px;

        left: 12px;

        right: 12px;

        width:
            calc(
                100% - 24px
            );

        max-height:
            calc(
                100vh - 140px
            );

        padding: 18px;

        border-radius: 18px;
    }

    .panel-header,
    .radar-header {
        gap: 12px;
    }

    .panel-header h2,
    .radar-header h2 {
        font-size: 18px;
    }

    .panel-header p,
    .radar-header p {
        font-size: 12px;
    }

    .panel-title-icon span {
        font-size: 18px;
    }

    .panel-title-icon img {
        width: 23px;

        height: 23px;
    }

    .pollen-list {
        grid-template-columns:
            1fr;
    }

    .radar-map {
        height: 330px;
    }

    .radar-controls {
        flex-wrap: wrap;
    }


    /* ARTYKULY */

    .popular-articles {
        padding: 18px;

        margin-top: 26px;
    }

    .popular-articles-grid {
        grid-template-columns:
            1fr;

        gap: 10px;
    }

    .article-card {
        min-height: 105px;

        padding: 15px;
    }

    .article-left {
        width: 42px;

        min-width: 42px;

        height: 76px;
    }

    .article-content {
        height: 76px;
    }

    .article-icon {
        width: 40px;

        height: 40px;

        font-size: 21px;
    }

    .article-card h3 {
        font-size: 14px;
    }

}


/* =========================
   BARDZO MALY TELEFON
========================= */

@media (max-width: 400px) {

    .site-header {
        padding:
            8px 10px 9px;
    }

    .site-header .logo {
        width: 115px;
    }

    .site-header .search input {
        font-size: 16px;

        padding:
            0 11px;
    }

    .site-header .search button {
        min-width: 66px;

        padding:
            0 9px;

        font-size: 12px;
    }

    .category-bar {
        width: calc(100% + 20px);

        margin-left: -10px;

        padding-left: 10px;

        padding-right: 10px;
    }

    .category-bar .menu-button {
        padding:
            0 10px;

        font-size: 12px;
    }

    main {
        width:
            calc(
                100% - 18px
            );
    }

    .current-weather {
        padding: 16px;
    }

    .main-temperature {
        gap: 8px;
    }

    .weather-icon {
        width: 72px;

        height: 72px;
    }

    .weather-icon img {
        width: 72px;

        height: 72px;
    }

    #temperature {
        font-size: 46px;
    }

    #description {
        font-size: 14px;
    }

    .details p {
        font-size: 11px;
    }

    .details strong {
        font-size: 13px;
    }

    .detail-icon {
        width: 34px;

        height: 34px;
    }

    .detail-icon img {
        width: 34px;

        height: 34px;
    }

    .popular-articles {
        padding: 16px;
    }

    .article-card {
        padding: 13px;
    }

    .article-left {
        width: 38px;

        min-width: 38px;
    }

    .article-icon {
        width: 37px;

        height: 37px;

        font-size: 19px;
    }

    .article-card h3 {
        font-size: 13px;
    }

}


/* =========================
   CENTROWANIE NAPISU NA PC
========================= */

@media (min-width: 751px) {

    .header-top {
        position: relative;

        justify-content: center;
    }

    .site-header .logo {
        position: absolute;

        left: 50%;

        transform:
            translateX(-50%);
    }

    .refresh {
        margin-left: auto;
    }

}