/* ===== PWA INSTALL PROMPT STYLES ===== */

.pwa-install-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-install-prompt.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.pwa-install-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.pwa-install-modal {
    position: relative;
    background: linear-gradient(135deg, #1a6b3f 0%, #0f4c27 100%);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: pwaModalSlideIn 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

@keyframes pwaModalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.pwa-install-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

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

.pwa-install-content {
    padding: 2rem;
    text-align: center;
    color: white;
}

.pwa-install-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pwaBounce 2s ease-in-out infinite;
}

@keyframes pwaBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.pwa-install-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.pwa-install-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.pwa-install-benefits {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pwa-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    text-align: left;
    font-size: 1rem;
}

.pwa-benefit:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pwa-install-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pwa-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #0f4c27;
}

.pwa-btn-primary:hover {
    background: linear-gradient(45deg, #ffed4e, #fff59d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.pwa-btn-primary:active {
    transform: translateY(0);
}

.pwa-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pwa-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .pwa-install-modal {
        width: 95%;
        max-width: none;
    }

    .pwa-install-content {
        padding: 1.5rem;
    }

    .pwa-install-icon {
        font-size: 3rem;
    }

    .pwa-install-title {
        font-size: 1.75rem;
    }

    .pwa-install-text {
        font-size: 1rem;
    }

    .pwa-benefit {
        font-size: 0.9rem;
    }

    .pwa-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .pwa-install-title {
        font-size: 1.5rem;
    }

    .pwa-install-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .pwa-install-benefits {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .benefit-icon {
        font-size: 1.3rem;
    }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .pwa-install-modal {
        max-height: 95vh;
        overflow-y: auto;
    }

    .pwa-install-content {
        padding: 1rem;
    }

    .pwa-install-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .pwa-install-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .pwa-install-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .pwa-install-benefits {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .pwa-benefit {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}
