/* 
 * Il Brigante - PWA Banner Compact
 * Banner PWA compatto e moderno per Il Brigante Barbershop
 */

.pwa-install-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 300px;
    height: 200px;
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #1d536a, #133646);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pwa-install-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.pwa-install-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: rgba(29, 83, 106, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.pwa-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 1.5px solid #c69c6d;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-app-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pwa-install-title {
    flex: 1;
    text-align: center;
}

.pwa-install-title h3 {
    color: white;
    margin: 0 0 2px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.pwa-install-title p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.pwa-install-content {
    padding: 12px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pwa-install-message {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 500;
}

.pwa-install-features {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    text-align: center;
    width: 100%;
}

.pwa-install-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    text-align: center;
}

.pwa-install-features li:last-child {
    margin-bottom: 0;
}

.pwa-install-features li i {
    margin-right: 8px;
    color: #c69c6d;
    font-size: 16px;
    min-width: 16px;
}

.pwa-install-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.pwa-dismiss-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.pwa-dismiss-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pwa-dismiss-button i {
    margin-right: 5px;
    font-size: 11px;
}

/* Animazioni */
@keyframes slideUp {
    0% {
        transform: translate(-50%, calc(-50% + 80px));
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.pwa-install-container.animate-in {
    animation: slideUp 0.4s forwards;
}

@keyframes slideDown {
    0% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, calc(-50% + 80px));
        opacity: 0;
    }
}

.pwa-install-container.animate-out {
    animation: slideDown 0.3s forwards;
}

/* Responsive fixes */
@media (max-width: 480px) {
    .pwa-install-container {
        max-width: 85%;
        height: 200px;
    }
    
    .pwa-install-header {
        padding: 8px 10px;
    }
    
    .pwa-app-icon {
        width: 32px;
        height: 32px;
    }
    
    .pwa-app-icon img {
        width: 28px;
        height: 28px;
    }
    
    .pwa-install-title h3 {
        font-size: 16px;
    }
    
    .pwa-install-content {
        padding: 10px;
    }
    
    .pwa-install-message {
        font-size: 14px;
    }
    
    .pwa-install-features li {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .pwa-dismiss-button {
        padding: 7px 16px;
        font-size: 13px;
    }
}

/* Device specific styles */
.ios-specific {
    display: none;
}

.ios .ios-specific {
    display: block;
}

.ios .non-ios {
    display: none;
}

.android-specific {
    display: none;
}

.android .android-specific {
    display: block;
}
