/* ============================================================
   notifications.css — Stat bounce animation, notification dropdown, activity feed
   ============================================================ */

/* ============================================================
   ANIMACAO DE COLETA (ouro/soldados voando para o painel)
   ============================================================ */

@keyframes statBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.5); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.stat-bounce {
    animation: statBounce 0.4s ease-out;
}

/* ==================== NOTIFICACOES DROPDOWN ==================== */
#notification-menu {
    position: relative;
    display: inline-block;
}

#notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(10, 10, 30, 0.98);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(240, 192, 64, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    width: 280px;
    max-height: 60vh;
    z-index: 100;
}

#notification-dropdown.open {
    display: flex;
}

#notifications-list {
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding: 2px 0;
}

.notif-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(240,192,64,0.2);
    border-radius: 8px;
    padding: 10px;
}

.notif-item-title {
    color: #f0c040;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
}

.notif-item-body {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-line;
}

.notif-item-date {
    color: #666;
    font-size: 11px;
    margin-top: 6px;
}

/* ============================================================
   FEED DE ATIVIDADE (acima do minimapa)
   ============================================================ */
#activity-feed {
    position: fixed;
    bottom: 160px;
    left: 10px;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
    z-index: 90;
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 6px;
    padding: 4px;
    background: rgba(20, 20, 20, 0.55);
}

.activity-log-item {
    background: transparent;
    border-left: 3px solid rgba(240, 192, 64, 0.6);
    border-radius: 0 6px 6px 0;
    padding: 5px 10px;
    font-size: 11px;
    color: #fff;
    line-height: 1.4;
    animation: activityFadeIn 0.3s ease;
}

.activity-log-item .log-actor[style*="cursor: pointer"] {
    pointer-events: all;
}

.activity-log-item .log-actor {
    color: #f0c040;
    font-weight: bold;
}
.activity-log-item .log-territory-mine    { color: #4caf50; font-weight: bold; }
.activity-log-item .log-territory-ally    { color: #42a5f5; font-weight: bold; }
.activity-log-item .log-territory-enemy   { color: #ef5350; font-weight: bold; }

.activity-log-item.log-attack    { border-left-color: rgba(229, 57, 53, 0.8); }
.activity-log-item.log-rename   { border-left-color: rgba(171, 71, 188, 0.8); }
.activity-log-item.log-conquer   { border-left-color: rgba(76, 175, 80, 0.8); }
.activity-log-item.log-alliance  { border-left-color: rgba(66, 165, 245, 0.8); }
.activity-log-item.log-purchase  { border-left-color: rgba(255, 193, 7, 0.8); }
.activity-log-item.log-leave     { border-left-color: rgba(158, 158, 158, 0.8); }
.activity-log-item.log-kick      { border-left-color: rgba(255, 87, 34, 0.8); }
.activity-log-item.log-gold      { border-left-color: rgba(240, 192, 64, 0.8); }

@keyframes activityFadeIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    #activity-feed {
        bottom: 110px;
        width: 200px;
        font-size: 10px;
    }

    .activity-log-item {
        font-size: 10px;
        padding: 4px 8px;
    }
}
