/**
 * Retro Arcade Blast – Components
 * Additional component styles
 */

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    border: 4px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 8px solid var(--color-success); }
.toast.error { border-left: 8px solid var(--color-danger); }
.toast.info { border-left: 8px solid var(--color-info); }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    background: white;
    border: 6px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 4px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--color-secondary);
}
