/*
 * Coming Soon 覆盖层样式 - 玻璃态设计
 * 符合 AI Killier 整体 UI 美学
 */

:root {
    --coming-soon-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --coming-soon-liquid: cubic-bezier(0.16, 1, 0.3, 1);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;

    /* 玻璃态背景 - 与主界面统一 */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(1.3);
    -webkit-backdrop-filter: blur(40px) saturate(1.3);

    /* 边框高光 */
    border: 1px solid rgba(255, 255, 255, 0.2);

    /* 多层阴影 - 增强深度感 */
    box-shadow:
        inset 0px 2px 8px rgba(255, 255, 255, 0.1),
        inset -1px -2px 4px rgba(255, 255, 255, 0.05),
        0 30px 60px -15px rgba(0, 0, 0, 0.2);

    animation: fadeIn 0.8s var(--coming-soon-ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px) saturate(1);
        -webkit-backdrop-filter: blur(0px) saturate(1);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(40px) saturate(1.3);
        -webkit-backdrop-filter: blur(40px) saturate(1.3);
    }
}

.coming-soon-content {
    text-align: center;
    padding: 80px 60px;
    max-width: 700px;
    position: relative;

    /* 内容卡片玻璃效果 */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-radius: var(--radius-xl, 32px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        inset 0px 1px 2px rgba(255, 255, 255, 0.15),
        inset 0px -1px 2px rgba(255, 255, 255, 0.08),
        0 40px 80px -20px rgba(0, 0, 0, 0.25);

    transform-style: preserve-3d;
    animation: slideUpFloat 1s var(--coming-soon-liquid);
}

@keyframes slideUpFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 卡片边缘高光效果 */
.coming-soon-content::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 1.5px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    z-index: 1;
}

.coming-soon-icon {
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05) translateY(-5px);
        opacity: 1;
    }
}

.coming-soon-icon svg {
    width: 96px;
    height: 96px;
    stroke: rgba(26, 26, 26, 0.7);
    stroke-width: 1.5;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: all 0.4s var(--coming-soon-ease);
}

.coming-soon-icon:hover svg {
    transform: scale(1.1) rotate(5deg);
    stroke: rgba(26, 26, 26, 0.9);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

.coming-soon-title {
    font-size: 56px;
    font-weight: 800;
    font-family: 'Poppins', 'Inter', sans-serif;
    color: rgba(26, 26, 26, 0.95);
    margin-bottom: 24px;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;

    /* 文字阴影增强立体感 */
    text-shadow:
        0 2px 4px rgba(255, 255, 255, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.1);

    animation: titleAppear 1.2s var(--coming-soon-liquid);
}

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 10px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: -1px;
    }
}

.coming-soon-description {
    font-size: 22px;
    font-weight: 500;
    font-family: 'Poppins', 'Inter', sans-serif;
    color: rgba(26, 26, 26, 0.75);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    animation: descAppear 1.4s var(--coming-soon-liquid) 0.2s backwards;
}

@keyframes descAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coming-soon-hint {
    font-size: 17px;
    font-weight: 400;
    font-family: 'Poppins', 'Inter', sans-serif;
    color: rgba(26, 26, 26, 0.55);
    margin-top: 12px;
    position: relative;
    z-index: 2;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: hintFloat 3s ease-in-out infinite, hintAppear 1.6s var(--coming-soon-liquid) 0.4s backwards;
}

@keyframes hintFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes hintAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模糊背景内容 */
.file-mode-content-blur,
.super-file-content-blur {
    filter: blur(12px) brightness(0.95);
    opacity: 0.2;
    pointer-events: none;
    user-select: none;
    transition: all 0.6s var(--coming-soon-ease);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .coming-soon-content {
        padding: 40px 20px;
    }
    
    .coming-soon-title {
        font-size: 36px;
    }
    
    .coming-soon-description {
        font-size: 20px;
    }
    
    .coming-soon-hint {
        font-size: 16px;
    }
    
    .coming-soon-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .coming-soon-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .coming-soon-description {
        font-size: 18px;
    }
    
    .coming-soon-hint {
        font-size: 14px;
    }
}

/* 微妙的环境光效果 */
.coming-soon-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0.5;
    animation: ambientGlow 8s ease-in-out infinite;
}

@keyframes ambientGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 内容卡片纹理效果 */
.coming-soon-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 3px
        );
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
}

/* 确保相对定位 */
.file-mode-page,
.super-file-page {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 交互增强 - 鼠标悬停效果 */
.coming-soon-content:hover {
    transform: scale(1.02);
    box-shadow:
        inset 0px 2px 4px rgba(255, 255, 255, 0.2),
        inset 0px -2px 4px rgba(255, 255, 255, 0.1),
        0 50px 100px -20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s var(--coming-soon-ease);
}

/* 3D 透视效果 */
.coming-soon-overlay {
    perspective: 1500px;
}

.coming-soon-content {
    transform-style: preserve-3d;
}
