/*
* [모듈명]: PWA 가이드 스타일
* [파일명]: pwa.css
* [역할]: iOS 및 안드로이드 사용자를 위한 홈 화면 추가 가이드 UI를 정의합니다.
* [디자인]: Black & White, 미니멀리즘 플랫 디자인
*/

.pwa-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none; /* JS에서 제어 */
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pwa-guide-overlay.active {
    display: flex;
}

.pwa-guide-sheet {
    width: 100%;
    background: #111;
    border-top: 1px solid #333;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px 20px 48px 20px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-guide-overlay.active .pwa-guide-sheet {
    transform: translateY(0);
}

.pwa-guide-header {
    text-align: center;
    margin-bottom: 24px;
}

.pwa-guide-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pwa-guide-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.pwa-step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1a1a1a;
    padding: 16px;
    border-radius: 12px;
}

.pwa-step-icon {
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pwa-step-text {
    flex: 1;
    font-size: 15px;
    color: #eee;
}

.pwa-step-text strong {
    color: #fff;
    font-weight: 600;
}

.btn-pwa-close {
    width: 100%;
    height: 54px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-pwa-close:active {
    opacity: 0.8;
}

/* 상단 설치 유도 버튼 스타일 */
.btn-install-pwa {
    background: none;
    border: none;
    color: #fff;
    padding: 8px;
    display: none; /* JS에서 설치 가능 여부에 따라 노출 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 8px;
}

.pwa-btn-txt {
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    border: 1.5px solid #fff;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-install-pwa:active .pwa-btn-txt {
    background: #fff;
    color: #000;
}
