/* ========================================
   In-App Browser Guide Banner CSS (v4.0.90)
   Version: Redesigned - Compact & Clear
   Date: 2026-02-20
   
   스크롤 최소화, 명확한 안내, 보기 편한 레이아웃
   ======================================== */

/* 배너 컨테이너 - 화면 최상단 고정 */
.in-app-guide-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.4s ease-out;
    overflow-y: auto;
    max-height: 85vh;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 배너 내용 */
.in-app-guide-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ==========================================
   상단: 로고 + 환영 메시지
   ========================================== */
.guide-header-section {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.guide-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.guide-logo-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.guide-logo-small i {
    font-size: 20px;
}

.guide-welcome-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.guide-browser-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.guide-browser-tag i {
    font-size: 16px;
}

.guide-browser-tag strong {
    color: #FFD700;
    font-weight: 600;
}

/* ==========================================
   중앙: 핵심 안내 메시지
   ========================================== */
.guide-main-message {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.guide-description {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.guide-description strong {
    color: #FFD700;
    font-weight: 600;
}

/* ==========================================
   하단: 기기별 가이드
   ========================================== */
.guide-instructions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.device-guide-compact {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

.device-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.device-steps {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.step-simple {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #FFD700;
    color: #667eea;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
}

.step-simple strong {
    color: #FFD700;
    font-weight: 600;
}

/* QR 코드 */
.qr-code-simple {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.qr-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.qr-content {
    flex: 1;
    text-align: center;
}

.qr-title {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 8px 0;
}

.qr-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    margin-bottom: 6px;
}

.qr-box canvas {
    display: block;
    max-width: 120px;
    height: auto;
}

.qr-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* ==========================================
   최하단: 바로 시작 안내
   ========================================== */
.guide-footer-message {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.guide-footer-message i {
    font-size: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ==========================================
   모바일 최적화
   ========================================== */
@media (max-width: 768px) {
    .in-app-guide-content {
        padding: 16px 12px;
    }
    
    .guide-welcome-title {
        font-size: 18px;
    }
    
    .guide-description {
        font-size: 14px;
    }
    
    .device-icon,
    .qr-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .step-title {
        font-size: 15px;
    }
    
    .step-simple {
        font-size: 13px;
    }
    
    .qr-box canvas {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .in-app-guide-content {
        padding: 14px 10px;
    }
    
    .guide-welcome-title {
        font-size: 17px;
    }
    
    .guide-logo-small {
        font-size: 15px;
    }
    
    .guide-logo-small i {
        font-size: 18px;
    }
    
    .guide-browser-tag {
        font-size: 13px;
        padding: 5px 12px;
    }
    
    .device-guide-compact,
    .qr-code-simple {
        padding: 12px;
    }
    
    .qr-box canvas {
        max-width: 90px;
    }
}

/* ==========================================
   접근성
   ========================================== */
.guide-close-btn:focus,
.device-guide-compact:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* ==========================================
   스크롤바 스타일
   ========================================== */
.in-app-guide-banner::-webkit-scrollbar {
    width: 6px;
}

.in-app-guide-banner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.in-app-guide-banner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.in-app-guide-banner::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   다크 모드 지원
   ========================================== */
@media (prefers-color-scheme: dark) {
    .in-app-guide-banner {
        background: linear-gradient(135deg, #4c5fd7 0%, #5e3a7d 100%);
    }
}
