/* ====================================
   🔍 인앱 브라우저 안내 오버레이 스타일
   ==================================== */

/* 오버레이 배경 */
.in-app-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.in-app-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 컨텐츠 박스 */
.in-app-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* 헤더 */
.in-app-header {
    text-align: center;
    margin-bottom: 30px;
}

.in-app-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.in-app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.in-app-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 안내 섹션 */
.guide-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 25px;
}

.guide-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.guide-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-text {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.icon-share,
.icon-menu {
    display: inline-block;
    font-weight: 700;
    color: #667eea;
    padding: 2px 6px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    font-size: 1.1rem;
}

/* QR 코드 섹션 */
.qr-section {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}

.qr-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.qr-code {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.qr-code canvas,
.qr-code img {
    display: block;
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto;
}

.qr-description {
    font-size: 0.9rem;
    color: #666;
    margin: 15px 0 0 0;
    line-height: 1.5;
}

/* 닫기 버튼 */
.close-overlay-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.close-overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.close-overlay-btn:active {
    transform: translateY(0);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .in-app-content {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .in-app-icon {
        font-size: 2.5rem;
    }

    .in-app-title {
        font-size: 1.3rem;
    }

    .in-app-subtitle {
        font-size: 0.9rem;
    }

    .guide-section {
        padding: 20px 15px;
    }

    .guide-icon {
        font-size: 2rem;
    }

    .guide-title {
        font-size: 1.1rem;
    }

    .guide-step {
        padding: 12px;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .step-text {
        font-size: 0.9rem;
    }

    .qr-section {
        padding: 20px 15px;
    }

    .qr-title {
        font-size: 1rem;
    }

    .qr-code canvas,
    .qr-code img {
        width: 180px !important;
        height: 180px !important;
    }

    .qr-description {
        font-size: 0.85rem;
    }

    .close-overlay-btn {
        padding: 13px;
        font-size: 0.95rem;
    }
}

/* 스크롤바 숨김 */
.in-app-content::-webkit-scrollbar {
    width: 6px;
}

.in-app-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.in-app-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.in-app-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}
