/**
 * HuSNS - 移动端美观对话框组件
 */

/* 对话框遮罩层 */
.husns-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.husns-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 对话框容器 */
.husns-dialog {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    width: 85%;
    max-width: 320px;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.husns-dialog-overlay.active .husns-dialog {
    transform: scale(1) translateY(0);
}

/* 对话框图标 */
.husns-dialog-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.husns-dialog-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.husns-dialog-icon.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.husns-dialog-icon.warning {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    color: #fff;
}

.husns-dialog-icon.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

.husns-dialog-icon.confirm {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

/* 对话框标题 */
.husns-dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 12px;
}

/* 对话框内容 */
.husns-dialog-content {
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 对话框按钮区域 */
.husns-dialog-buttons {
    display: flex;
    gap: 12px;
}

/* 对话框按钮 */
.husns-dialog-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.husns-dialog-btn:active {
    transform: scale(0.98);
}

/* 主按钮 */
.husns-dialog-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.husns-dialog-btn.primary:hover {
    opacity: 0.9;
}

/* 次按钮 */
.husns-dialog-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.husns-dialog-btn.secondary:hover {
    background: #e5e5e5;
}

/* 危险按钮 */
.husns-dialog-btn.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* 单行按钮模式 */
.husns-dialog-buttons.single {
    justify-content: center;
}

.husns-dialog-buttons.single .husns-dialog-btn {
    width: 100%;
    max-width: 200px;
}

/* 暗色模式适配 */
.dark-mode .husns-dialog {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
}

.dark-mode .husns-dialog-title {
    color: #f7fafc;
}

.dark-mode .husns-dialog-content {
    color: #a0aec0;
}

.dark-mode .husns-dialog-btn.secondary {
    background: #4a5568;
    color: #e2e8f0;
}

.dark-mode .husns-dialog-btn.secondary:hover {
    background: #5a6578;
}
