/**
 * PWA Install System Styles
 * Banner & Popup für PWA Installation
 * 
 * @package Noble_Frontend_Display
 * @since 2.49.3
 */

/* ==================== PWA POPUP (First Visit) ==================== */
.pwa-install-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pwa-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pwa-popup-content {
    position: relative;
    background: linear-gradient(135deg, #01221c, #1c3c2c);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(219, 193, 109, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pwa-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #dbc16d;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.pwa-popup-close:hover {
    transform: rotate(90deg);
}

.pwa-popup-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.pwa-popup-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #dbc16d;
    margin: 0 0 16px;
}

.pwa-popup-content p {
    color: rgba(248, 245, 240, 0.8);
    font-size: 0.95rem;
    margin: 0 0 24px;
}

.pwa-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.pwa-benefits li {
    color: #f8f5f0;
    font-size: 0.95rem;
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
}

.pwa-benefits li::before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.pwa-popup-install {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #dbc16d, #b8902d);
    border: none;
    border-radius: 8px;
    color: #01221c;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.pwa-popup-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(219, 193, 109, 0.4);
}

.pwa-popup-later {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(219, 193, 109, 0.3);
    border-radius: 8px;
    color: rgba(248, 245, 240, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-popup-later:hover {
    border-color: #dbc16d;
    color: #dbc16d;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 600px) {
    .pwa-popup-content {
        padding: 24px;
    }
    
    .pwa-popup-content h2 {
        font-size: 1.5rem;
    }
}

/* ==================== DESKTOP: Verstecken ==================== */
@media (min-width: 1025px) {
    .pwa-install-popup {
        display: none !important;
    }
}

