/* ============================================================
   CSS ДЛЯ КОНТЕКСТНЫХ ПОДСКАЗОК
   ============================================================ */

/* ===== ОСНОВНОЙ ПОПАП ПОДСКАЗКИ ===== */
.context-hint-details-popup .maplibregl-popup-content {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.context-hint-details-popup .maplibregl-popup-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: all 0.2s ease;
}

.context-hint-details-popup .maplibregl-popup-close-button:hover {
    background: #ffffff;
    color: #1e293b;
    transform: scale(1.1);
}

/* ===== ПРЕВЬЮ-ПОПАП ПОДСКАЗКИ ===== */
.context-hint-preview-popup .maplibregl-popup-content {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: white;
}

/* ===== АНИМАЦИЯ ПУЛЬСАЦИИ ДЛЯ СЛОЯ ПОДСКАЗОК ===== */
/* (применяется через JS, но можно добавить дополнительные эффекты) */
@keyframes contextHintPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* ===== КНОПКИ В ПОПАПЕ ===== */
.context-hint-details button {
    font-family: inherit;
    transition: all 0.2s ease;
}

.context-hint-details button:active {
    transform: scale(0.98);
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 480px) {
    .context-hint-details-popup .maplibregl-popup-content {
        max-width: 280px !important;
    }
    
    .context-hint-details {
        min-width: 240px !important;
        max-width: 280px !important;
    }
    
    .context-hint-details > div:first-child {
        padding: 12px !important;
    }
    
    .context-hint-details > div:first-child > div:first-child {
        font-size: 32px !important;
    }
    
    .context-hint-details > div:first-child > div:nth-child(2) {
        font-size: 14px !important;
    }
    
    .context-hint-details > div:first-child > div:nth-child(3) {
        font-size: 12px !important;
    }
    
    .context-hint-details > div:nth-child(2) {
        padding: 12px !important;
    }
    
    .context-hint-details button {
        font-size: 13px !important;
        padding: 10px !important;
    }
}

/* ===== УВЕДОМЛЕНИЕ О НАГРАДЕ ПОСЛЕ ДОБАВЛЕНИЯ ОТЧЁТА ===== */
.first-report-bonus-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    animation: slideInRight 0.4s ease;
    font-family: Arial, sans-serif;
}

.first-report-bonus-notification .notification-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.first-report-bonus-notification .notification-content {
    flex: 1;
    min-width: 0;
}

.first-report-bonus-notification .notification-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.first-report-bonus-notification .notification-rewards {
    font-size: 13px;
    opacity: 0.95;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.first-report-bonus-notification .notification-rewards span {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

@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;
    }
}

@media (max-width: 480px) {
    .first-report-bonus-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 14px 18px;
    }
    
    .first-report-bonus-notification .notification-icon {
        font-size: 28px;
    }
    
    .first-report-bonus-notification .notification-title {
        font-size: 14px;
    }
    
    .first-report-bonus-notification .notification-rewards {
        font-size: 12px;
    }
}

/* ===== СТИЛИ ДЛЯ ТЁМНОЙ ТЕМЫ (опционально) ===== */
@media (prefers-color-scheme: dark) {
    .context-hint-preview-popup .maplibregl-popup-content {
        background: #1e293b;
    }
    
    .context-hint-details-popup .maplibregl-popup-content {
        background: #1e293b;
    }
}