/**
 * WDC Notifications Component Styles
 * 
 * Toast notification system
 * 
 * @package WDC
 * @since 2.0.0
 */

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

.wdc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 420px;
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.wdc-notification.wdc-notification-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* ========================================
   NOTIFICATION CONTENT
   ======================================== */

.wdc-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #1f2937;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* ========================================
   NOTIFICATION TYPES
   ======================================== */

/* Success */
.wdc-notification-success .wdc-notification-content {
    border-left: 4px solid #10b981;
}

.wdc-notification-success .wdc-notification-icon {
    color: #10b981;
}

/* Error */
.wdc-notification-error .wdc-notification-content {
    border-left: 4px solid #ef4444;
}

.wdc-notification-error .wdc-notification-icon {
    color: #ef4444;
}

/* Warning */
.wdc-notification-warning .wdc-notification-content {
    border-left: 4px solid #f59e0b;
}

.wdc-notification-warning .wdc-notification-icon {
    color: #f59e0b;
}

/* Info */
.wdc-notification-info .wdc-notification-content {
    border-left: 4px solid #3b82f6;
}

.wdc-notification-info .wdc-notification-icon {
    color: #3b82f6;
}

/* ========================================
   NOTIFICATION ELEMENTS
   ======================================== */

.wdc-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.wdc-notification-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wdc-notification-message {
    flex: 1;
    color: #f3f4f6;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    word-wrap: break-word;
}

.wdc-notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-top: 2px;
}

.wdc-notification-close:hover {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.1);
}

.wdc-notification-close:active {
    transform: scale(0.95);
}

.wdc-notification-close svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes wdc-notification-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.wdc-notification.wdc-notification-shake {
    animation: wdc-notification-shake 0.5s;
}

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

@media (max-width: 768px) {
    .wdc-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .wdc-notification.wdc-notification-show {
        transform: translateY(0);
    }
    
    .wdc-notification-content {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .wdc-notification-message {
        font-size: 13px;
    }
    
    .wdc-notification-icon {
        width: 20px;
        height: 20px;
    }
    
    .wdc-notification-close {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: light) {
    .wdc-notification-content {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15),
                    0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .wdc-notification-message {
        color: #1f2937;
    }
    
    .wdc-notification-close {
        color: #6b7280;
    }
    
    .wdc-notification-close:hover {
        color: #1f2937;
        background: rgba(0, 0, 0, 0.05);
    }
}
