/**
 * Joyn Resources - Toast Notification Styles v2.0
 * 모던하고 부드러운 알림 스타일
 */

.joyn-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.joyn-toast {
    min-width: 320px;
    max-width: 480px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    pointer-events: auto;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.joyn-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.joyn-toast.hide {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
}

.joyn-toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.joyn-toast-icon svg {
    width: 16px;
    height: 16px;
}

.joyn-toast-content {
    flex: 1;
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #27272a;
    padding-top: 4px;
}

.joyn-toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    border-radius: 6px;
}

.joyn-toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* Success Toast */
.joyn-toast.success {
    border-left: 4px solid #10b981;
}

.joyn-toast.success .joyn-toast-icon {
    background: #ecfdf5;
    color: #10b981;
}

/* Error Toast */
.joyn-toast.error {
    border-left: 4px solid #ef4444;
}

.joyn-toast.error .joyn-toast-icon {
    background: #fef2f2;
    color: #ef4444;
}

/* Warning Toast */
.joyn-toast.warning {
    border-left: 4px solid #f59e0b;
}

.joyn-toast.warning .joyn-toast-icon {
    background: #fffbeb;
    color: #d97706;
}

/* Info Toast */
.joyn-toast.info {
    border-left: 4px solid #3b82f6;
}

.joyn-toast.info .joyn-toast-icon {
    background: #eff6ff;
    color: #3b82f6;
}

/* Progress Bar */
.joyn-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 0 12px;
    transition: width linear;
}

.joyn-toast.success .joyn-toast-progress {
    background: #10b981;
}

.joyn-toast.error .joyn-toast-progress {
    background: #ef4444;
}

.joyn-toast.warning .joyn-toast-progress {
    background: #f59e0b;
}

.joyn-toast.info .joyn-toast-progress {
    background: #3b82f6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .joyn-toast-container {
        top: auto;
        bottom: 24px;
        right: 16px;
        left: 16px;
    }
    
    .joyn-toast {
        min-width: auto;
        max-width: none;
        transform: translateY(calc(100% + 24px));
    }
    
    .joyn-toast.show {
        transform: translateY(0);
    }
    
    .joyn-toast.hide {
        transform: translateY(calc(100% + 24px));
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .joyn-toast {
        transition: opacity 0.2s;
        transform: none !important;
    }
    
    .joyn-toast.show {
        transform: none !important;
    }
    
    .joyn-toast.hide {
        transform: none !important;
    }
}
