/* ====================================================================
   IO TOAST SYSTEM - Non-blocking notification styles
   ==================================================================== */


/* ====================================================================
   BASE TOAST STRUCTURE
   ==================================================================== */

.io-toast {
    width: 360px;
    background: var(--io-surface-raised);
    display: flex;
    align-items: flex-start;
    gap: var(--io-space-md);
    padding: var(--io-space-md);
    border-left: 2px solid;
    position: relative;
    cursor: pointer;
    transition: transform var(--io-transition-base);
}

/* Slide in animation */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide out animation */
@keyframes slideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(400px) scale(0.95);
        opacity: 0;
    }
}

.io-toast {
    animation: slideIn 300ms ease;
}

/* Hover state - slight lift */
.io-toast:hover {
    transform: translateX(-4px);
}

/* Paused state - glow with type-specific color */
.io-toast-success.io-toast-paused {
    box-shadow: 0 0 0 1px var(--io-success);
}

.io-toast-error.io-toast-paused {
    box-shadow: 0 0 0 1px var(--io-error);
}

.io-toast-warning.io-toast-paused {
    box-shadow: 0 0 0 1px var(--io-warning);
}

.io-toast-info.io-toast-paused {
    box-shadow: 0 0 0 1px var(--io-info);
}

/* Top fade border */
.io-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
}

/* ====================================================================
   TOAST CONTENT
   ==================================================================== */

.io-toast-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.io-toast-content {
    flex: 1;
    min-width: 0;
}

.io-toast-title {
    font-size: var(--io-text-sm);
    color: var(--io-text-primary);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--io-space-xs);
    font-weight: normal;
}

.io-toast-message {
    font-size: var(--io-text-xs);
    color: var(--io-text-secondary);
    line-height: 1.5;
}

.io-toast-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--io-text-tertiary);
    cursor: pointer;
    transition: color var(--io-transition-base);
    flex-shrink: 0;
    opacity: 0.6;
}

.io-toast-close:hover {
    color: var(--io-text-primary);
    opacity: 1;
}

/* ====================================================================
   TYPE: SUCCESS
   ==================================================================== */

.io-toast-success {
    border-left-color: var(--io-success);
}

.io-toast-success::before {
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 255, 65, 0.3) 15%,
        rgba(0, 255, 65, 0.6) 50%,
        rgba(0, 255, 65, 0.3) 85%,
        transparent 100%
    );
}

.io-toast-success .io-toast-icon {
    color: var(--io-success);
}

/* ====================================================================
   TYPE: ERROR
   ==================================================================== */

.io-toast-error {
    border-left-color: var(--io-error);
}

.io-toast-error::before {
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 0, 81, 0.3) 15%,
        rgba(255, 0, 81, 0.8) 50%,
        rgba(255, 0, 81, 0.3) 85%,
        transparent 100%
    );
}

.io-toast-error .io-toast-icon {
    color: var(--io-error);
}

/* ====================================================================
   TYPE: WARNING
   ==================================================================== */

.io-toast-warning {
    border-left-color: var(--io-warning);
}

.io-toast-warning::before {
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 204, 0, 0.3) 15%,
        rgba(255, 204, 0, 0.6) 50%,
        rgba(255, 204, 0, 0.3) 85%,
        transparent 100%
    );
}

.io-toast-warning .io-toast-icon {
    color: var(--io-warning);
}

/* ====================================================================
   TYPE: INFO
   ==================================================================== */

.io-toast-info {
    border-left-color: var(--io-info);
}

.io-toast-info::before {
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 217, 255, 0.3) 15%,
        rgba(0, 217, 255, 0.6) 50%,
        rgba(0, 217, 255, 0.3) 85%,
        transparent 100%
    );
}

.io-toast-info .io-toast-icon {
    color: var(--io-info);
}

/* ====================================================================
   RESPONSIVE - Smaller width on mobile
   ==================================================================== */

@media (max-width: 480px) {
    .io-toast-container {
        right: 8px !important;
        left: 8px !important;
    }
    
    .io-toast {
        width: 100% !important;
    }
}