/* ==============================================
   FLUENT LATEST POSTS WIDGET - COMPLETE STYLES
   ============================================== */

/* GŁÓWNY KONTENER */
.fluent-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* SIATKA */
.fluent-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    flex: 1;
    min-width: 0;
}

/* POST ITEM */
.fluent-post-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-height: 180px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* LINK NA CAŁY KAFEL */
.fluent-post-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* KLUCZOWE – utrzymanie layoutu */
.fluent-post-link .fluent-post-item {
    width: 100%;
    height: 100%;
}

/* HOVER */
.fluent-post-link:hover .fluent-post-item {
    transform: scale(1.02);
}

/* KATEGORIA */
.fluent-category-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fc006d;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    z-index: 5;
    letter-spacing: 0.04em;
}

/* OVERLAY */
.fluent-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 20px 15px 15px;
    transition: background 0.3s ease;
}

.fluent-post-link:hover .fluent-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}

.fluent-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

/* SIDEBAR */
.fluent-right-wrapper {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==============================================
   POGODA  (ciemny brand + rozowe akcenty)
   ============================================== */

/* Wrapper jako link bez domyślnych podkreśleń tekstowych */
.pro-weather-link-wrapper {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.fluent-weather-tile {
    background: linear-gradient(135deg, #1a1a20 0%, #101014 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pro-weather-link-wrapper:hover .fluent-weather-tile {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252,0,109,0.3);
}

#pro-weather-widget {
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Dystans między górnym wierszem a godzinami */
}

.weather-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.weather-left-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weather-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fc006d;
}

.weather-icon-location {
    display: flex;
    align-items: center;
    gap: 10px;
}

#weather-icon-pro {
    width: 50px;
    height: 50px;
    filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#weather-city-pro {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.weather-right-column {
    display: flex;
    align-items: center;
}

#weather-temp-pro {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

/* STYLIZACJA 5 GODZIN PROGNOZY */
.weather-hourly-row-fluent {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: rgba(252, 0, 109, 0.14);
    border-radius: 8px;
    padding: 8px 6px;
    gap: 4px;
    color: #fff;
}

.weather-hourly-row-fluent .fluent-hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.weather-hourly-row-fluent .fluent-hourly-time {
    font-size: 9px;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 2px;
}

.weather-hourly-row-fluent .fluent-hourly-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    margin: 2px 0;
}

.weather-hourly-row-fluent .fluent-hourly-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    filter: none;
}

.weather-hourly-row-fluent .fluent-hourly-temp {
    font-size: 11px;
    font-weight: 700;
}

/* ==============================================
   WIADOMOŚCI  (ciemny brand + rozowe akcenty)
   ============================================== */

.fluent-news-tile {
    background: linear-gradient(135deg, #1a1a20 0%, #101014 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fluent-news-column {
    display: flex;
    flex-direction: column;
}

.fluent-news-column h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #fff;
    border-bottom: 3px solid #fc006d;
    padding-bottom: 10px;
}

.fluent-news-featured {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.fluent-news-featured-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.1);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.fluent-news-featured-text {
    min-width: 0;
}

.fluent-news-featured-text .news-item-time {
    margin-bottom: 4px;
}

.fluent-news-featured-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    transition: color 0.2s ease;
}

.fluent-news-featured:hover .fluent-news-featured-text h4 {
    color: #fc006d;
}

.fluent-news-item {
    position: relative;
    padding-left: 0;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fluent-news-item:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.fluent-news-item::before,
.fluent-news-item::after {
    content: none;
}

.fluent-news-item .news-item-time {
    font-size: 11px;
    margin-bottom: 3px;
}

.fluent-news-item h4 {
    font-size: 13px;
}

.news-item-time {
    display: block;
    font-size: 12px;
    color: #ff9ec5;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.fluent-news-item a {
    text-decoration: none;
    color: inherit;
}

.fluent-news-item h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    transition: color 0.2s ease;
}

.fluent-news-item a:hover h4 {
    color: #fc006d;
}

/* ==============================================
   RESPONSYWNOŚĆ
   ============================================== */

@media (max-width: 1024px) {

    .fluent-container {
        display: flex;
        flex-direction: column;
    }

    /* POGODA + WIADOMOŚCI NA GÓRZE */
    .fluent-right-wrapper {
        width: 100%;
        order: 1;
    }

    /* GRID POD SPODU */
    .fluent-main-grid {
        order: 2;
    }
}

@media (max-width: 768px) {

    .fluent-container {
        padding: 15px;
        display: flex;
        flex-direction: column;
    }

    /* POGODA + WIADOMOŚCI NA GÓRZE */
    .fluent-right-wrapper {
        width: 100%;
        margin-bottom: 18px;
        order: 1;
    }

    /* GRID POD SPODU */
    .fluent-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        order: 2;
    }

    .fluent-post-item {
        min-height: 150px;
    }

    .fluent-overlay h3 {
        font-size: 14px;
    }

    #weather-temp-pro {
        font-size: 36px;
    }
    
    .weather-hourly-row-fluent .fluent-hourly-time {
        font-size: 8px;
    }
    .weather-hourly-row-fluent .fluent-hourly-temp {
        font-size: 10px;
    }
    .weather-hourly-row-fluent .fluent-hourly-icon svg {
        width: 14px;
        height: 14px;
    }

    .fluent-news-featured-thumb {
        width: 48px;
        height: 48px;
    }

    .fluent-news-featured-text h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .fluent-main-grid {
        grid-template-columns: 1fr;
    }

    .fluent-post-item {
        min-height: 200px;
    }
}

#weather-icon-pro svg {
    width: 52px;
    height: 52px;
    stroke: white;
    opacity: 0.95;
}

/* obracające się promienie */
.sun-rays {
    animation: spin 8s linear infinite;
    transform-origin: center;
}

/* lekki ruch chmur */
.cloud-move {
    animation: float 4s ease-in-out infinite;
}

/* deszcz */
.rain line {
    animation: rain 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

@keyframes rain {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(4px); opacity: 0; }
}

.gm-rain-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.gm-drop {
    position: absolute;
    width: 2px;
    height: 14px;
    background: rgba(255,255,255,0.6);
    animation: gm-fall linear infinite;
}

@keyframes gm-fall {
    0% { transform: translateY(-10vh); }
    100% { transform: translateY(110vh); }
}

/* THEME HOOKS */
.gm-sun { filter: saturate(1.3); }
.gm-rain { filter: brightness(0.9) contrast(1.1); }
.gm-night { filter: brightness(0.6) saturate(0.8); }
.gm-storm { filter: contrast(1.2) brightness(0.7); }

/* ==============================================
   RAMÓWKA - trzecia karta w sidebarze
   ============================================== */

.rs-schedule-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.rs-schedule-tile {
    background: linear-gradient(135deg, #D01B5E, #2E1A54);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    position: relative;
}

.rs-schedule-play-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.3) !important;
    transition: transform .15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 3 !important;
    line-height: 0 !important;
}

.rs-schedule-play-btn svg {
    width: 18px !important;
    height: 18px !important;
    margin-left: 2px !important;
    display: block !important;
}

.rs-schedule-play-btn:hover {
    transform: scale(1.08) !important;
}

.rs-schedule-play-btn:active {
    transform: scale(.94) !important;
}

.rs-schedule-link:hover .rs-schedule-tile {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.rs-schedule-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.rs-schedule-live-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.rs-schedule-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD100;
    animation: rsScheduleBlink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes rsScheduleBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.rs-schedule-badge {
    font-size: 10px;
    font-weight: 700;
    color: #FFD100;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rs-schedule-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.rs-schedule-progress {
    height: 3px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.rs-schedule-progress-fill {
    height: 100%;
    background: #FFD100;
    border-radius: 2px;
    transition: width 1s linear;
}

.rs-schedule-remain {
    font-size: 11px;
    color: rgba(255,255,255,.75);
}

/* ==============================================
   KOLEJNOSC KART W SIDEBARZE
   Mobile: Pogoda, Wiadomosci, Ramowka (kolejnosc z HTML)
   Desktop (>=1025px): Ramowka nad Pogoda
   ============================================== */

.fluent-weather-tile { order: 1; }
.fluent-news-tile { order: 2; }
.rs-schedule-link { order: 3; }

@media (min-width: 1025px) {
    .rs-schedule-link { order: 0; }
    .fluent-weather-tile { order: 1; }
    .fluent-news-tile { order: 2; }
}


/* ========================================================== */
/* === HOVER KAFLI SIATKI — efekt Pro Radio                === */
/* === przesłona + narożne bloby + wysuwany pasek tytułu    === */
/* ========================================================== */

.fluent-main-grid .fluent-post-item{
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Przesłona różowo-fioletowa na całym obrazku (na hover) */
.fluent-main-grid .fluent-post-item::before{
    content:"";
    position:absolute; inset:0; z-index:1;
    background: linear-gradient(45deg, rgba(252,1,109,.55), rgba(132,1,252,.45));
    opacity:0; transition: opacity .3s ease; pointer-events:none;
}

/* Narożne bloby: lewy-górny + prawy-dolny (na hover) */
.fluent-main-grid .fluent-post-item::after{
    content:"";
    position:absolute; inset:0; z-index:2; pointer-events:none;
    opacity:0; transition: opacity .35s ease;
    background:
        radial-gradient(62% 62% at 0% 0%,   #8401fc 0%, rgba(252,0,109,.85) 42%, transparent 72%),
        radial-gradient(62% 62% at 100% 100%, #fc006d 0%, rgba(132,1,252,.85) 42%, transparent 72%);
}

/* Treść (kategoria + tytuł) zawsze nad przesłoną */
.fluent-main-grid .fluent-category-label{ z-index:4; }
.fluent-main-grid .fluent-overlay{ z-index:4; }

/* Stan hover: uniesienie + różowa poświata */
.fluent-main-grid .fluent-post-link:hover .fluent-post-item{
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(252,0,109,.45);
}
.fluent-main-grid .fluent-post-link:hover .fluent-post-item::before{ opacity:1; }
.fluent-main-grid .fluent-post-link:hover .fluent-post-item::after{ opacity:1; }

/* Wysuwany od lewej różowo-fioletowy pasek ZA literami tytułu (zakreślacz) */
.fluent-main-grid .fluent-overlay h3{
    display: inline;
    background-image: linear-gradient(to right, #fc016d 0%, #8401fc 100%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition: background-size .45s ease;
    padding: 2px 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.fluent-main-grid .fluent-post-link:hover .fluent-overlay h3{
    background-size: 100% 100%;
}
/* ========================================================== */
/* === HOVER LISTY WIADOMOŚCI — Wariant B (zakreślacz)      === */
/* === różowo-fioletowe tło wysuwane za literami tytułu     === */
/* ========================================================== */

.fluent-news-item h4,
.fluent-news-featured-text h4{
    display: inline;
    background-image: linear-gradient(to right, #fc016d 0%, #8401fc 100%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition: background-size .45s ease, color .2s ease;
    padding: 1px 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Na hover: zakreślacz wysuwa się od lewej, tytuł zostaje biały */
.fluent-news-item a:hover h4,
.fluent-news-featured:hover .fluent-news-featured-text h4{
    background-size: 100% 100%;
    color: #fff;
}