/**
 * slots-stats.css — слоты сохранения, экран статистики, toast-уведомления.
 * Используется JS: renderSaveSlots, showStatsScreen, showNotification.
 */

/* --- Toast-контейнер (всплывает поверх фото и статистики) --- */
#notifications-container {
    position: fixed;
    top: 12px;
    right: 15px;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.notification-toast {
    font-family: "Noto Sans", sans-serif !important;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 280px;
}

.notification-toast--info {
    background: rgba(var(--accent-alt-rgb), 0.95);
    color: #0d1b2a;
}

.notification-toast--success {
    background: rgba(34, 197, 94, 0.95);
    color: #fff;
}

.notification-toast--warning {
    background: rgba(251, 146, 60, 0.95);
    color: #0d1b2a;
}

.notification-toast--error {
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
}

/* --- Слоты сохранения --- */
.save-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 15px;
    position: relative;
}

.save-slot--current {
    background: rgba(var(--accent-alt-rgb), 0.15);
    border-color: var(--accent-alt);
}

.save-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.save-slot-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.save-slot-badge {
    background: var(--accent-alt);
    color: #0d1b2a;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.save-slot-empty-info {
    color: #778da9;
    font-size: 13px;
    margin-bottom: 12px;
}

.save-slot-info {
    color: #a0aec0;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.save-slot-info .slot-date {
    color: #778da9;
}

.save-slot-buttons {
    display: flex;
    gap: 8px;
}

.slot-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.slot-btn--save-full {
    width: 100%;
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: white;
}

.slot-btn--load {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-alt) 0%, #3b82f6 100%);
    color: white;
}

.slot-btn--overwrite {
    flex: 1;
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: white;
}

.slot-btn--delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 12px;
}

/* --- Экран статистики --- */
.stats-header-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.stats-header-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.stats-header-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-alt);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.stats-row {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 !important;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.stats-row-label {
    color: #a0aec0;
}

.stats-row-value {
    font-weight: bold;
    color: #fff;
}

.stats-row--deaths {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stats-row--deaths .stats-row-label,
.stats-row--deaths .stats-row-value {
    color: var(--deadend);
}

.stats-row--dice {
    background: rgba(255, 255, 255, 0.05);
}

.stats-row--dice-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.stats-row--dice-sub {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.stats-dice-wins {
    color: var(--success);
}

.stats-dice-losses {
    color: var(--deadend);
}

.stats-dice-rate {
    color: #778da9;
}

.stats-row--endings {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.stats-row--endings .stats-row-label,
.stats-row--endings .stats-row-value {
    color: #eab308;
}

.stats-buttons {
    display: flex;
    gap: 10px;
}

.stats-back-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
}
