/* PWA 설치 팝업 스타일 */
#pwa-install-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#pwa-install-prompt.pwa-show {
    opacity: 1;
}

.pwa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.pwa-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 25px;
    padding: 35px 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pwa-popup-in 0.3s ease;
}

@keyframes pwa-popup-in {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.pwa-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.pwa-close:hover {
    background: #f0f0f0;
    color: #333;
}

.pwa-icon {
    text-align: center;
    margin-bottom: 20px;
}

.pwa-icon img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.pwa-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.pwa-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pwa-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.pwa-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pwa-feature i {
    font-size: 24px;
    color: #6366f1;
}

.pwa-feature span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.pwa-install-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-later-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #666;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-later-btn:hover {
    background: #f8f9fa;
}

.pwa-manual-guide {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}

.pwa-manual-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.pwa-manual-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-step {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.pwa-step strong {
    color: #6366f1;
    display: block;
    margin-bottom: 4px;
}

/* 감사 메시지 */
.pwa-thank-you {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-thank-you.pwa-show {
    opacity: 1;
}

.pwa-thank-you-content {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.pwa-thank-you-content i {
    font-size: 24px;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .pwa-popup {
        padding: 25px 20px;
    }

    .pwa-title {
        font-size: 1.3rem;
    }

    .pwa-description {
        font-size: 0.9rem;
    }

    .pwa-features {
        padding: 10px 0;
    }

    .pwa-feature i {
        font-size: 20px;
    }

    .pwa-feature span {
        font-size: 0.75rem;
    }
}
