/*
============================================================================
AuraNotify - 通知系统样式
============================================================================
*/

/* 通知容器 */
.aura-notice-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

/* 基础通知样式 */
.aura-notice {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    border-left: 5px solid #ccc;
    pointer-events: auto;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .aura-notice {
        background: rgba(40, 44, 52, 0.95);
        color: #e0e0e0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* 通知内容布局 */
.aura-notice-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* 图标样式 */
.aura-notice-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.aura-notice-icon-text {
    display: inline-block;
    font-size: 1.2em;
}

/* 通知主体 */
.aura-notice-body {
    flex: 1;
    min-width: 0;
}

/* 标题样式 */
.aura-notice-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
}

@media (prefers-color-scheme: dark) {
    .aura-notice-title {
        color: #fff;
    }
}

/* 消息内容样式 */
.aura-notice-message {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    word-break: break-word;
}

@media (prefers-color-scheme: dark) {
    .aura-notice-message {
        color: #aaa;
    }
}

/* 关闭按钮 */
.aura-notice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.aura-notice-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .aura-notice-close {
        color: #aaa;
    }

    .aura-notice-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

/* 通知类型颜色 */
.aura-notice-info {
    border-left-color: #3498db;
}

.aura-notice-success {
    border-left-color: #2ecc71;
}

.aura-notice-warn,
.aura-notice-warning {
    border-left-color: #f39c12;
}

.aura-notice-error {
    border-left-color: #e74c3c;
}

.aura-notice-alert {
    border-left-color: #e74c3c;
}

.aura-notice-trophy {
    border-left-color: #f1c40f;
}

.aura-notice-tips {
    border-left-color: #9b59b6;
}

/* 动画效果 */
.aura-notice-enter {
    animation: aura-notice-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.aura-notice-exit {
    animation: aura-notice-slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes aura-notice-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes aura-notice-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aura-notice-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .aura-notice {
        min-width: auto;
        width: 100%;
        max-width: none;
    }
}

/* 无障碍支持 */
.aura-notice-close:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* 禁用动画的备选方案 */
.no-animation .aura-notice-enter,
.no-animation .aura-notice-exit {
    animation: none;
}

/* 进度条样式（用于显示剩余时间） */
.aura-notice-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
}

.aura-notice-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: currentColor;
    animation: aura-notice-progress linear forwards;
}

@keyframes aura-notice-progress {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}