/* ============================================================
   Lister Decor — PWA Installation Alert Styles
   ============================================================ */

/* Floating Install Alert Banner */
.pwa-install-alert {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    max-width: 420px;
    width: calc(100% - 32px);
    background: linear-gradient(145deg, #241710 0%, #1e1510 60%, #302014 100%);
    border: 1.5px solid rgba(212, 170, 125, 0.4);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(123, 94, 58, 0.25);
    padding: 20px;
    color: #f7ede2;
    font-family: var(--font-base, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    display: none;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.pwa-install-alert.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Alert Backdrop for mobile focus */
.pwa-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 10, 6, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-alert-backdrop.show {
    display: block;
    opacity: 1;
}

/* Alert Top Row */
.pwa-alert-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
}

.pwa-alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #1a110a;
    border: 1.5px solid #d4aa7d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.pwa-alert-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-alert-title-wrap {
    flex: 1;
    min-width: 0;
}

.pwa-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e8c59f;
    background: rgba(123, 94, 58, 0.35);
    border: 1px solid rgba(212, 170, 125, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.pwa-alert-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.pwa-alert-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

.pwa-alert-close {
    background: transparent;
    border: none;
    color: #c8b89e;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    margin-left: 8px;
}

.pwa-alert-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Alert Body */
.pwa-alert-body {
    font-size: 13px;
    line-height: 1.5;
    color: #ded1c1;
    margin-bottom: 16px;
}

.pwa-alert-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-left: 3px solid #d4aa7d;
}

.pwa-alert-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #f0e6dc;
}

.pwa-alert-feature-item svg {
    color: #d4aa7d;
    flex-shrink: 0;
}

/* Alert Actions */
.pwa-alert-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-btn-install {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #8c6a42 0%, #b88652 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 4px 14px rgba(123, 94, 58, 0.4);
    text-decoration: none;
}

.pwa-btn-install:hover {
    background: linear-gradient(135deg, #9b7549 0%, #c99660 100%);
    box-shadow: 0 6px 18px rgba(123, 94, 58, 0.6);
    transform: translateY(-1px);
}

.pwa-btn-install:active {
    transform: scale(0.98);
}

.pwa-btn-later {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #c8b89e;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.pwa-btn-later:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Instructions card for iOS / manual */
.pwa-guide-box {
    margin-top: 12px;
    padding: 12px;
    background: rgba(123, 94, 58, 0.2);
    border: 1px dashed rgba(212, 170, 125, 0.4);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #f7ede2;
    display: none;
}

.pwa-guide-box.show {
    display: block;
}

.pwa-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.pwa-guide-step:last-child {
    margin-bottom: 0;
}

.pwa-guide-step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d4aa7d;
    color: #1e1510;
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Sidebar / Navbar "Install App" button */
.pwa-nav-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(123, 94, 58, 0.2);
    border: 1px solid rgba(212, 170, 125, 0.4);
    color: #d4aa7d;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pwa-nav-install-btn:hover {
    background: #7B5E3A;
    color: #ffffff;
    border-color: #7B5E3A;
}

/* Mobile responsive bottom drawer positioning */
@media (max-width: 600px) {
    .pwa-install-alert {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        border-radius: 14px;
        padding: 16px;
    }
}
