/* css/feeds.css */

.modern-rss-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.modern-rss-box:hover {
    z-index: 10;
}

.modern-rss-feed-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 15px;
}

.modern-rss-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    /* TÄRKEÄ: Tämä on ankkuri absoluuttiselle tekstilaatikolle */
    position: relative; 
}

.modern-rss-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modern-rss-link {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    font-size: 0.95em;
    display: block;
    transition: color 0.2s;
}

.modern-rss-item:hover .modern-rss-link {
    color: #0056b3;
}

.modern-rss-date {
    font-size: 0.75em;
    color: #666;
    margin-top: 4px;
}

/* =========================================
   MODERNOITU HOVER-EFEKTI (AVAUTUU PÄÄLLE)
   ========================================= */

.modern-rss-desc {
    display: none; 
    position: absolute; 
    top: calc(100% - 10px); 
    left: -10px; 
    width: calc(100% + 20px); 
    background: rgba(255, 255, 255, 0.95); /* Hieman peittävämpi */
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(0,0,0,0.15); 
    border-radius: 8px; 
    padding: 15px; 
    box-sizing: border-box; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
    
    /* TÄMÄ ON SE RATKAISEVA MUUTOS: Pakotetaan kaiken päälle */
    z-index: 9999 !important;
    
    font-size: 0.85em;
    color: #333;
    line-height: 1.5;
}

/* Kun uutisrivin päällä leijutaan... */
.modern-rss-item:hover .modern-rss-desc {
    /* ...näytetään tekstilaatikko välittömästi! */
    display: block; 
}

/* =========================================
   MODERNI SÄÄWIDGET JA FAKTABOX (Pidetty ennallaan)
   ========================================= */
   
.modern-weather-widget {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    color: #333;
}

.weather-widget-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.weather-city {
    font-weight: bold;
    font-size: 1.3em;
    color: #222;
}

.weather-widget-fact {
    flex: 1;
    font-size: 0.85em;
    font-style: italic;
    color: #555;
    text-align: center;
    line-height: 1.4;
    padding: 0 20px;
}

.weather-widget-days {
    display: flex;
    gap: 15px;
}

.weather-day {
    text-align: center;
}

.weather-date {
    font-size: 0.8em;
    color: #666;
    font-weight: bold;
}

.weather-icon {
    font-size: 1.6em;
    margin: 5px 0;
}

.weather-temp {
    font-size: 0.9em;
    color: #333;
}

.weather-temp-min {
    color: #888;
}

/* Kapean näytön asettelu (Mobiili) */
@media (max-width: 700px) {
    .weather-widget-container {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 15px 5px;
    }
    .weather-widget-fact {
        padding: 5px 0;
    }
}