/* S&S Gravações - Estilos para PWA e Botão de Instalar App (Paleta Oficial: Vinho, Coral, Dourado, Creme, Grafite) */

/* Botão discreto no cabeçalho */
.btn-pwa-install {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFF5E9;
    border: 1.5px solid #D6A94F;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Inter', -apple-system, sans-serif;
}

.btn-pwa-install i {
    font-size: 0.95rem;
    color: #D6A94F;
}

.btn-pwa-install:hover {
    background: linear-gradient(135deg, #F5D78B 0%, #D6A94F 50%, #B88930 100%);
    color: #521A2E;
    border-color: #F5D78B;
    box-shadow: 0 4px 14px rgba(214, 169, 79, 0.45);
    transform: translateY(-1px);
}

.btn-pwa-install:hover i {
    color: #521A2E;
}

/* Banner Flutuante Inferior para Mobile */
.pwa-floating-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 32px);
    max-width: 440px;
    background: #FFFFFF;
    border: 1.5px solid #D6A94F;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 12px 36px rgba(118, 43, 70, 0.15), 0 0 20px rgba(214, 169, 79, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

.pwa-floating-banner.is-visible {
    transform: translateX(-50%) translateY(0);
}

.pwa-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(214, 169, 79, 0.4);
    background: #FFF5E9;
}

.pwa-banner-info {
    flex: 1;
    min-width: 0;
}

.pwa-banner-info strong {
    display: block;
    color: #762B46;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
}

.pwa-banner-info span {
    display: block;
    color: #5C5560;
    font-size: 0.78rem;
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: linear-gradient(135deg, #762B46 0%, #923456 50%, #762B46 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #D6A94F;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(118, 43, 70, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pwa-btn-install:hover {
    background: linear-gradient(135deg, #521A2E 0%, #762B46 100%);
    box-shadow: 0 5px 14px rgba(118, 43, 70, 0.45);
    transform: translateY(-1px);
}

.pwa-btn-close {
    background: transparent;
    border: none;
    color: #8A828F;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.pwa-btn-close:hover {
    color: #762B46;
    background: rgba(118, 43, 70, 0.08);
}

/* Modal de Guia de Instalação para iOS */
.pwa-ios-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(41, 37, 43, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 0 16px 24px;
    box-sizing: border-box;
}

.pwa-ios-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.pwa-ios-modal {
    background: #FFFFFF;
    color: #29252B;
    border: 1.5px solid #D6A94F;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 50px rgba(118, 43, 70, 0.25);
    transform: translateY(40px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, sans-serif;
    position: relative;
}

.pwa-ios-modal-backdrop.is-open .pwa-ios-modal {
    transform: translateY(0);
}

.pwa-ios-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.pwa-ios-modal-head img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(118, 43, 70, 0.1);
}

.pwa-ios-modal-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #762B46;
    font-family: 'Montserrat', sans-serif;
}

.pwa-ios-modal-head p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #5C5560;
}

.pwa-ios-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFF5E9;
    border: 1px solid rgba(214, 169, 79, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #29252B;
}

.pwa-ios-step-num {
    background: #762B46;
    color: #FFFFFF;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #D6A94F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pwa-ios-step-text strong {
    color: #762B46;
}

.pwa-ios-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(118, 43, 70, 0.12);
    color: #762B46;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    vertical-align: middle;
    margin: 0 4px;
    font-size: 0.85rem;
}

.pwa-ios-btn-close {
    width: 100%;
    background: linear-gradient(135deg, #762B46 0%, #923456 50%, #762B46 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #D6A94F;
    border-radius: 12px;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(118, 43, 70, 0.25);
    transition: all 0.2s ease;
}

.pwa-ios-btn-close:hover {
    background: linear-gradient(135deg, #521A2E 0%, #762B46 100%);
}

/* Responsividade */
@media (max-width: 600px) {
    .btn-pwa-install span {
        display: none;
    }
    .btn-pwa-install {
        padding: 8px 10px;
    }
}
