/* PWA 팝업 overlay fadeout 효과 */

.pwa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pwa-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pwa-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pwa-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-popup.hide {
    transform: translateY(100px);
    opacity: 0;
}

/* 팝업 내부 스타일링 */
.pwa-popup-header {
    padding: 16px 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-popup-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.pwa-popup-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.pwa-popup-subtitle {
    font-size: 14px;
    color: #666;
    margin: 4px 0 0;
}

.pwa-popup-content {
    padding: 12px 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.pwa-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.pwa-popup-benefits li {
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.pwa-popup-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.pwa-popup-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

.pwa-popup-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-popup-btn-primary {
    background: #007bff;
    color: white;
}

.pwa-popup-btn-primary:hover {
    background: #0056b3;
}

.pwa-popup-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.pwa-popup-btn-secondary:hover {
    background: #e9ecef;
}

.pwa-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.pwa-popup-close:hover {
    background: #f8f9fa;
    color: #333;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .pwa-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .pwa-popup-actions {
        flex-direction: column;
    }
}