/* ======================================
   GAMIFICATION NOTIFICATIONS - SPOLEČNÉ CSS
   Pro všechny AR stezky
   ====================================== */

/* ===== ZÁKLADNÍ NOTIFIKAČNÍ ELEMENT ===== */
.gamification-achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 350px;
    max-width: 90vw;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border-radius: 10px;
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: gamificationSlideIn 0.5s ease-out;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gamification-achievement-notification:hover {
    transform: scale(1.05);
}

.gamification-achievement-notification.gamification-fade-out {
    animation: gamificationFadeOut 0.5s ease-in forwards;
}

/* ===== OBSAH NOTIFIKACE ===== */
.gamification-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.gamification-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.gamification-text h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

.gamification-text p {
    margin: 0;
    color: #555;
    font-size: 0.9em;
}

/* ===== RARITY VARIANTY ===== */
/* Rare achievementy - světle modré */
.gamification-achievement-notification.rarity-rare {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6, #03a9f4);
    border-color: #007bff;
    color: white;
}

.gamification-achievement-notification.rarity-rare .gamification-text h4,
.gamification-achievement-notification.rarity-rare .gamification-text p {
    color: white;
}

/* Legendary achievementy - zlaté s extra efekty */
.gamification-achievement-notification.rarity-legendary {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffc107);
    border-color: #ffc107;
    color: #333;
    animation: gamificationSlideIn 0.5s ease-out, gamificationPulse 0.3s ease-in-out 0.5s;
}

.gamification-achievement-notification.rarity-legendary .gamification-text h4,
.gamification-achievement-notification.rarity-legendary .gamification-text p {
    color: #333;
}

/* ===== UNLOCK STYLE ===== */
.gamification-achievement-notification.gamification-unlock-style {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    border-color: #007bff;
    color: white;
}

.gamification-achievement-notification.gamification-unlock-style .gamification-text h4,
.gamification-achievement-notification.gamification-unlock-style .gamification-text p {
    color: white;
}

/* Speciální efekt pro anděly */
.gamification-achievement-notification.gamification-angel-unlock {
    background: linear-gradient(135deg, #0ea5e9, #0284c7, #0369a1);
    border-color: #0284c7;
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.gamification-achievement-notification.gamification-angel-unlock .gamification-text h4,
.gamification-achievement-notification.gamification-angel-unlock .gamification-text p {
    color: white;
}

.gamification-achievement-notification.gamification-angel-unlock .gamification-icon {
    animation: gamificationAngelGlow 2s ease-in-out infinite alternate;
}

/* ===== DESKTOP ANIMACE ===== */
@media (min-width: 769px) {
    @keyframes gamificationSlideIn {
        from { 
            transform: translateX(100%); 
            opacity: 0; 
        }
        to { 
            transform: translateX(0); 
            opacity: 1; 
        }
    }
    
    @keyframes gamificationFadeOut {
        to { 
            transform: translateX(100%); 
            opacity: 0; 
        }
    }
    
    @keyframes gamificationPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
}

/* ===== MOBILNÍ STYLY ===== */
@media (max-width: 768px) {
    .gamification-achievement-notification {
        left: 50%;
        right: auto;
        min-width: 300px;
        max-width: 90vw;
        transform: translateX(-50%);
    }
    
    @keyframes gamificationSlideIn {
        from { 
            transform: translateX(calc(50vw + 50%));
            opacity: 0; 
        }
        to { 
            transform: translateX(-50%);
            opacity: 1; 
        }
    }
    
    @keyframes gamificationFadeOut {
        to { 
            transform: translateX(calc(50vw + 50%));
            opacity: 0; 
        }
    }
    
    .gamification-achievement-notification:hover {
        transform: translateX(-50%) scale(1.05);
    }
    
    /* Mobilní pulse animace */
    @keyframes gamificationPulseMobile {
        0%, 100% { transform: translateX(-50%) scale(1); }
        50% { transform: translateX(-50%) scale(1.05); }
    }
    
    /* Legendary na mobilu */
    .gamification-achievement-notification.rarity-legendary {
        animation: gamificationSlideIn 0.5s ease-out, gamificationPulseMobile 0.3s ease-in-out 0.5s;
    }
}

/* ===== SPECIÁLNÍ ANIMACE ===== */
@keyframes gamificationAngelGlow {
    0% { text-shadow: 0 0 8px rgba(14, 165, 233, 0.8); }
    100% { text-shadow: 0 0 20px rgba(56, 189, 248, 1); }
}

/* ===== RESPONSIVE ÚPRAVY ===== */
@media (max-width: 480px) {
    .gamification-achievement-notification {
        min-width: 280px;
        font-size: 0.9em;
    }
    
    .gamification-notification-content {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .gamification-icon {
        font-size: 2em;
    }
    
    .gamification-text h4 {
        font-size: 1em;
    }
    
    .gamification-text p {
        font-size: 0.85em;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .gamification-achievement-notification,
    .gamification-achievement-notification * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .gamification-achievement-notification {
        border-width: 3px;
        box-shadow: 0 0 0 2px #000;
    }
    
    .gamification-text h4,
    .gamification-text p {
        font-weight: bold;
    }
}