* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
    font-family: Arial, sans-serif;
    background: #101827;
}

/* =========================
   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
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    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);
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 8px;
}

/* =========================
   SEARCH
========================= */

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
}

.search {
    display: flex;
    width: 100%;
}

.search input {
    width: 100%;
    padding:
        12px 15px;
    border:
        1px solid
        rgba(255, 255, 255, 0.18);
    border-right: none;
    border-radius:
        10px 0 0 10px;
    outline: none;
    font-size: 15px;
    background:
        rgba(255, 255, 255, 0.10);
    color: white;
}

.search input::placeholder {
    color: #b1bdca;
}

.search input:focus {
    border-color:
        rgba(255, 255, 255, 0.40);
    background:
        rgba(255, 255, 255, 0.14);
}

.search button {
    border: none;
    padding:
        0 20px;
    border-radius:
        0 10px 10px 0;
    background:
        rgba(255, 255, 255, 0.18);
    color: white;
    cursor: pointer;
    transition:
        background 0.2s ease;
}

.search button:hover {
    background:
        rgba(255, 255, 255, 0.27);
}

/* =========================
   MENU
========================= */

.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;
    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
========================= */

.radar-menu-icon {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

/* =========================
   POBIERZ POGODĘ
========================= */

.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);
}

/* =========================
   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));
    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;
}

.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;
}

.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;
}

/* =========================
   SZCZEGÓŁY
========================= */

.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);
}

/* =========================
   TELEFON
========================= */

@media (max-width: 1000px) {

    header {
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
    }

    .search-wrapper {
        max-width: none;
        flex: 1;
    }

    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;
    }

    .download-button {
        order: 5;
    }
}

@media (max-width: 750px) {

    .menu-button {
        padding:
            0 10px;
        font-size: 13px;
    }

    .menu-icon {
        width: 18px;
        height: 18px;
    }

    .radar-menu-icon {
        width: 27px;
        height: 27px;
    }

    .download-button {
        padding:
            0 10px;
        font-size: 13px;
    }

    .download-icon {
        width: 18px;
        height: 18px;
        font-size: 19px;
    }

    .main-temperature {
        gap: 15px;
    }

    .weather-icon {
        width: 95px;
        height: 95px;
    }

    .weather-icon img {
        width: 95px;
        height: 95px;
    }

    #temperature {
        font-size: 56px;
    }

    .details {
        justify-content: space-between;
        gap: 10px;
    }

    .details div {
        min-width: 0;
    }

    .detail-icon {
        width: 40px;
        height: 40px;
    }

    .detail-icon img {
        width: 40px;
        height: 40px;
    }

    .panel-title-icon img {
        width: 24px;
        height: 24px;
    }

    .extra-icon img {
        width: 28px;
        height: 28px;
    }

    .loading-logo {
        font-size: 40px;
    }

    .rain-alert {
        padding: 18px;
    }

    .pollen-list {
        grid-template-columns:
            1fr;
    }

    .extra-weather {
        padding: 18px;
    }

    .radar-map {
        height: 360px;
    }
}

/* =========================
   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);
}


/* =========================
   NAGLOWEK
========================= */

.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;
}


/* =========================
   SIATKA
========================= */

.popular-articles-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;

    width: 100%;
}


/* =========================
   KARTA
========================= */

.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);
}


/* =========================
   LEWA CZESC
========================= */

.article-left {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: space-between;

    width: 46px;

    min-width: 46px;

    height: 82px;
}


/* =========================
   NUMER
========================= */

.article-number {
    color:
        rgba(255, 255, 255, 0.38);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.8px;
}


/* =========================
   IKONA
========================= */

.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;
}


/* =========================
   TRESC
========================= */

.article-content {
    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;

    height: 82px;
}


/* =========================
   KATEGORIA
========================= */

.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;
}


/* =========================
   TYTUL
========================= */

.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;
}


/* =========================
   CZYTAJ
========================= */

.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;
}


/* =========================
   LOADING
========================= */

.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);
    }
}


/* =========================
   BLAD
========================= */

.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) {

    .popular-articles-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


/* =========================
   TELEFON
========================= */

@media (max-width: 750px) {

    .popular-articles {
        padding: 18px;
    }

    .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;
    }

}


/* =========================
   MALY TELEFON
========================= */

@media (max-width: 400px) {

    .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;
    }

}