/**
 * Monopoly Toast Notification Styles
 * Dark Theme Edition
 */

/* ============================================
   CONTAINER
   ============================================ */

.toast-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    max-width: 100vw;
    box-sizing: border-box;
}

.toast-container--top-center {
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

/* ============================================
   TOAST BASE
   ============================================ */

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    min-width: 280px;
    max-width: 420px;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;

    /* Animation */
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast--hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

/* ============================================
   TOAST TYPES
   ============================================ */

.toast--positive {
    border-left: 4px solid #4ade80;
}

.toast--negative {
    border-left: 4px solid #ef4444;
}

.toast--neutral {
    border-left: 4px solid #60a5fa;
}

.toast--info {
    border-left: 4px solid #a78bfa;
}

/* ============================================
   TOAST ICON
   ============================================ */

.toast__icon {
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
}

/* ============================================
   TOAST CONTENT
   ============================================ */

.toast__content {
    flex: 1;
    min-width: 0;
}

.toast__message {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    word-wrap: break-word;
}

.toast__amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 4px;
}

.toast__amount--positive {
    color: #4ade80;
}

.toast__amount--negative {
    color: #ef4444;
}

/* ============================================
   CLOSE BUTTON
   ============================================ */

.toast__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

.toast__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0.6;
}

.toast--positive .toast__progress {
    background: #4ade80;
}

.toast--negative .toast__progress {
    background: #ef4444;
}

.toast--neutral .toast__progress {
    background: #60a5fa;
}

.toast--info .toast__progress {
    background: #a78bfa;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 576px) {
    .toast-container {
        padding: 12px;
        left: 0;
        right: 0;
        transform: none;
    }

    .toast-container--top-center {
        align-items: stretch;
    }

    .toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 0.1s;
        transform: none !important;
    }

    .toast__progress {
        display: none;
    }
}