/**
 * Styles du bandeau d'installation PWA - Marina Beauty Salon
 * 
 * Palette de marque :
 * - Bordeaux Marina : #9C251A
 * - Bordeaux Sombre : #7E1C12
 * - Or Élégant : #D4AF37
 * - Or Clair / Hover : #C39F2E
 * - Fond Crème Chaud : #FAF6F0
 * - Texte Sombre : #2F1A18
 */

.mbs-pwa-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    max-width: 440px;
    width: calc(100% - 48px);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.mbs-pwa-banner.mbs-pwa-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mbs-pwa-card {
    position: relative;
    background: rgba(250, 246, 240, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 18px;
    padding: 20px 20px 18px;
    box-shadow: 0 16px 40px rgba(43, 27, 25, 0.16), 
                0 2px 10px rgba(212, 175, 55, 0.2);
    box-sizing: border-box;
}

.mbs-pwa-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #6A5B5A;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mbs-pwa-close-btn:hover,
.mbs-pwa-close-btn:focus-visible {
    color: #9C251A;
    transform: scale(1.1);
    outline: none;
}

.mbs-pwa-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mbs-pwa-icon-wrapper {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(156, 37, 26, 0.15);
    border: 1.5px solid #D4AF37;
    background: #FAF6F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbs-pwa-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mbs-pwa-text-wrapper {
    flex: 1;
    min-width: 0;
    padding-right: 18px;
}

.mbs-pwa-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #9C251A;
    margin: 0 0 4px;
    line-height: 1.25;
}

.mbs-pwa-desc {
    font-size: 0.84rem;
    color: #2F1A18;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

.mbs-pwa-ios-instructions {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #2F1A18;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    border-left: 3px solid #D4AF37;
}

.mbs-pwa-ios-symbol {
    display: inline-block;
    font-size: 1.15rem;
    vertical-align: middle;
    margin: 0 2px;
    color: #007aff;
}

.mbs-pwa-footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.mbs-pwa-install-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #D4AF37 0%, #B89228 100%);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-shadow: 0 1px 2px rgba(43, 27, 25, 0.25);
}

.mbs-pwa-install-action-btn:hover {
    background: linear-gradient(135deg, #E0BF48 0%, #C39F2E 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.mbs-pwa-install-action-btn:active {
    transform: translateY(0);
}

.mbs-pwa-btn-icon {
    font-size: 1rem;
}

/* RTL Support (Arabe) */
.mbs-pwa-banner[dir="rtl"] {
    right: auto;
    left: 24px;
    text-align: right;
    font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.mbs-pwa-banner[dir="rtl"] .mbs-pwa-close-btn {
    right: auto;
    left: 12px;
}

.mbs-pwa-banner[dir="rtl"] .mbs-pwa-text-wrapper {
    padding-right: 0;
    padding-left: 18px;
}

.mbs-pwa-banner[dir="rtl"] .mbs-pwa-ios-instructions {
    border-left: none;
    border-right: 3px solid #D4AF37;
}

.mbs-pwa-banner[dir="rtl"] .mbs-pwa-footer {
    justify-content: flex-start;
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .mbs-pwa-banner {
        bottom: 16px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .mbs-pwa-banner[dir="rtl"] {
        right: 12px;
        left: 12px;
    }

    .mbs-pwa-card {
        padding: 16px 16px 14px;
    }

    .mbs-pwa-title {
        font-size: 0.98rem;
    }

    .mbs-pwa-desc {
        font-size: 0.80rem;
    }

    .mbs-pwa-install-action-btn {
        width: 100%;
        padding: 10px 16px;
    }

    .mbs-pwa-footer {
        justify-content: stretch;
    }
}
