/* Styly pro automatické obnovování aktualit */

/* Notifikace o aktualizaci */
.aktuality-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 14px;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #fff;
}

.aktuality-update-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aktuality-update-notification .notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.aktuality-update-notification .notification-close:hover {
    opacity: 1;
}

/* Tlačítko manuálního obnovení */
.aktuality-manual-refresh {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.aktuality-manual-refresh:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.aktuality-manual-refresh:active {
    transform: scale(0.95);
}

/* Animace pro notifikace */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Plynulá animace při změně obsahu aktualit */
.aktuality-obsah {
    transition: opacity 0.3s ease-in-out;
}

/* Loading indikátor */
.aktuality-loading {
    position: relative;
}

.aktuality-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsivní design */
@media (max-width: 768px) {
    .aktuality-update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
    }
    
    .aktuality-manual-refresh {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Skrytí tlačítka na velmi malých obrazovkách */
@media (max-width: 480px) {
    .aktuality-manual-refresh {
        display: none;
    }
}

/* Dark mode podpora */
@media (prefers-color-scheme: dark) {
    .aktuality-update-notification {
        background: linear-gradient(135deg, #1e7e34, #138496);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    .aktuality-manual-refresh {
        background: linear-gradient(135deg, #0056b3, #004085);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    .aktuality-manual-refresh:hover {
        background: linear-gradient(135deg, #004085, #002752);
        box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    }
} 