/* ========================================
   PWA INSTALL BANNER STYLES
   Custom install prompt like YouTube
   ======================================== */

/* Install Banner */
.pwa-install-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 9998;
    max-width: 500px;
    width: calc(100% - 32px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.show {
    transform: translateX(-50%) translateY(0);
}

.install-banner-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

/* Icon */
.install-banner-icon {
    flex-shrink: 0;
}

.install-banner-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Text */
.install-banner-text {
    flex: 1;
    color: white;
}

.install-banner-text h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.install-banner-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Actions */
.install-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.install-btn-dismiss {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.install-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

.install-btn-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.install-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.install-btn-primary:active {
    transform: translateY(0);
}

/* Success Message */
.pwa-install-success {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.pwa-install-success.show {
    transform: translateX(-50%) translateY(0);
}

.success-content {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
}

.success-content i {
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pwa-install-banner {
        top: 10px;
        width: calc(100% - 20px);
    }

    .install-banner-content {
        padding: 12px 16px;
        gap: 10px;
    }

    .install-banner-icon img {
        width: 40px;
        height: 40px;
    }

    .install-banner-text h4 {
        font-size: 0.85rem;
    }

    .install-banner-text p {
        font-size: 0.75rem;
    }

    .install-btn-primary {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* iOS Specific Styles */
@supports (-webkit-touch-callout: none) {
    .pwa-install-banner {
        top: calc(env(safe-area-inset-top) + 10px);
    }
}

/* Animation */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-120%);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(150%);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}