/* ============================================================
   Стили для киллфидов
   ============================================================ */

/* Базовый стиль элемента */
.killfeed-item {
    background: var(--bg-item-alt);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-left: 6px solid var(--accent-line-kill);
    transition: background 0.15s, border-left-color 0.3s, box-shadow 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.killfeed-item:hover {
    background: var(--bg-hover-alt);
    box-shadow: 0 4px 14px rgba(0,0,0,0.7);
}

.killfeed-item .killfeed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.killfeed-item .killfeed-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.killfeed-item .killfeed-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.killfeed-item .killfeed-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.killfeed-item .killfeed-type-badge {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.5;
    letter-spacing: 0.2px;
    transition: opacity 0.2s;
}

.killfeed-item:hover .killfeed-type-badge {
    opacity: 0.8;
}

.killfeed-item .killfeed-desc {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-strong);
    word-break: break-word;
    line-height: 1.5;
}

/* Кнопка "Открыть локацию" */
.killfeed-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 6px;
    border-radius: 16px;
    background: rgba(184, 124, 75, 0.15);
    border: 1px solid rgba(184, 124, 75, 0.2);
    color: var(--accent-hover);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.killfeed-location-btn:hover {
    background: rgba(184, 124, 75, 0.3);
    border-color: rgba(184, 124, 75, 0.5);
    color: var(--accent-glow);
    transform: scale(1.02);
}

.killfeed-location-btn .material-icons {
    font-size: 1.1rem;
    line-height: 1;
}

.killfeed-location-text {
    font-size: 0.7rem;
    letter-spacing: 0.2px;
}

/* Цвета для игроков и ботов */
.killfeed-killer-player {
    color: var(--amber);
    font-weight: 700;
}

.killfeed-killer-bot {
    color: var(--accent);
    font-weight: 700;
}

.killfeed-victim-player {
    color: var(--green-soft);
    font-weight: 700;
}

.killfeed-victim-bot {
    color: #6a8a6a;
    font-weight: 700;
}

.killfeed-killer-unknown,
.killfeed-victim-unknown {
    color: #9a9a8a;
    font-weight: 700;
    font-style: italic;
}

/* Индикатор загрузки */
.killfeed-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}

.killfeed-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--spinner-track);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: killfeed-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes killfeed-spin {
    to { transform: rotate(360deg); }
}

/* Фильтр */
#killfeed-filter-area {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-inset);
    padding: 8px 18px;
    border-radius: 40px;
    margin-bottom: 20px;
    border: 1px solid var(--border-inset);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

#killfeed-filter-area .material-icons {
    color: #b8b8a8;
}

#killfeed-filter {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-bright);
    width: 100%;
    outline: none;
}

#killfeed-filter::placeholder {
    color: var(--placeholder);
    font-weight: 400;
    letter-spacing: 0.3px;
}

#killfeed-filter-clear {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

#killfeed-filter-clear:hover {
    opacity: 1;
}

/* Уведомление о копировании */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.killfeed-copy-notification {
    animation: fadeInUp 0.3s ease;
}

/* Курсор pointer для всего блока, кроме кнопки */
.killfeed-item {
    cursor: pointer;
}

.killfeed-item .killfeed-location-btn {
    cursor: pointer;
}

/* Курсор default для кнопки, чтобы не путать */
.killfeed-item .killfeed-location-btn {
    cursor: pointer;
}
