/* PWA Install Prompt Styles - Mobile Only */
.pwa-install-prompt {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 1.2rem 1.5rem;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px 24px 0 0;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .pwa-install-prompt {
        display: none !important;
    }
}

.pwa-install-prompt.active {
    transform: translateY(0);
}

.pwa-prompt-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pwa-btn-close {
    position: absolute;
    top: -0.5rem;
    right: 0;
    background: rgba(0, 0, 0, 0.15);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
    padding: 0!important;
    flex-shrink: 0;
}

.pwa-btn-close:active {
    background: rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
}

.pwa-btn-close i {
    font-size: 1rem;
}

.pwa-icon {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pwa-icon i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pwa-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pwa-content {
    margin-bottom: 1.4rem;
    padding: 0 0.5rem;
}

.pwa-content h3 {
    font-size: 1.35rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.pwa-content p {
    font-size: 0.95rem;
    opacity: 0.92;
    margin: 0;
    line-height: 1.5;
}

.pwa-btn-install {
    width: 100%;
    background: white;
    color: #667eea;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.pwa-btn-install::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pwa-btn-install:active::before {
    width: 300px;
    height: 300px;
}

.pwa-btn-install:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pwa-btn-install i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Extra small screens */
@media (max-width: 360px) {
    .pwa-install-prompt {
        padding: 0.9rem 0.9rem 1rem;
    }

    .pwa-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .pwa-content h3 {
        font-size: 1rem;
    }

    .pwa-content p {
        font-size: 0.8rem;
    }

    .pwa-btn-install {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .pwa-btn-close {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
}

/* PWA Mode Styles (when running as installed app) */
.pwa-mode .pwa-install-prompt {
    display: none !important;
}