/* ==============================================
   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: 8px;
    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: #f7d000;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 5;
    letter-spacing: 0.5px;
}

/* 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
   ============================================== */

.fluent-weather-tile {
    background: #f7d000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#pro-weather-widget {
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.weather-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.9;
}

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

#weather-icon-pro {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

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

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

#weather-temp-pro {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ==============================================
   WIADOMOŚCI
   ============================================== */

.fluent-news-tile {
    background: linear-gradient(135deg, #8401fd 0%, #1a202c 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 #f7d000;
    padding-bottom: 10px;
}

.fluent-news-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
}

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

.fluent-news-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: -5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.fluent-news-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #f7d000;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(247, 208, 0, 0.2);
}

.news-item-time {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    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: #f7d000;
}

/* ==============================================
   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;
    }
}

@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); }