/**
 * ========================================
 * PWA INSTALL BANNER STYLES
 * ========================================
 */

/* Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.98), rgba(192, 57, 43, 0.98));
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pwa-icon {
    font-size: 2.5em;
    color: #ffd700;
    animation: pwaIconPulse 2s infinite;
}

@keyframes pwaIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pwa-text {
    flex: 1;
    min-width: 200px;
}

.pwa-text h4 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    margin: 0 0 3px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwa-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    margin: 0;
}

.pwa-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pwa-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwa-btn i {
    font-size: 1.1em;
}

.pwa-btn.install {
    background: linear-gradient(135deg, #ffd700, #FFA500);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.pwa-btn.install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.pwa-btn.close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
}

.pwa-btn.close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* iOS Safari Banner */
.pwa-ios-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.98), rgba(52, 152, 219, 0.98));
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.pwa-ios-banner.show {
    transform: translateY(0);
}

.pwa-ios-banner .pwa-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: white;
}

.pwa-ios-banner h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.pwa-ios-banner p {
    margin: 0;
    font-size: 0.9em;
}

.pwa-ios-banner i.fa-share {
    color: #ffd700;
    font-size: 1.2em;
}

.pwa-ios-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
}

/* Notification */
.pwa-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10000;
    font-weight: 600;
    font-size: 0.95em;
}

.pwa-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* App badge (when installed) */
.app-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    z-index: 1001;
    display: none;
}

/* Show badge when running as PWA */
@media (display-mode: standalone) {
    .app-badge {
        display: block;
    }

    /* Hide install banner */
    .pwa-install-banner,
    .pwa-ios-banner {
        display: none !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pwa-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .pwa-icon {
        font-size: 2em;
    }

    .pwa-text h4 {
        font-size: 1em;
    }

    .pwa-text p {
        font-size: 0.85em;
    }

    .pwa-buttons {
        width: 100%;
        justify-content: center;
    }

    .pwa-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .pwa-install-banner,
    .pwa-ios-banner {
        padding: 12px 15px;
    }

    .pwa-buttons {
        flex-direction: column;
        width: 100%;
    }

    .pwa-btn {
        width: 100%;
    }
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 10001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

.offline-indicator i {
    margin-right: 8px;
}