/* =====================================================
   PWA QURAŞDIRMA TƏŞVİQİ - e-Yarmarka
   Minimalist dizayn: #111827 (tünd göy) + ağ
   ===================================================== */

/* -------------------------------------------
   ƏSAS DEĞİŞƏNLƏR
   ------------------------------------------- */
:root {
    --pwa-bg: #111827;
    --pwa-text: #ffffff;
    --pwa-text-muted: rgba(255, 255, 255, 0.7);
    --pwa-btn-bg: #ffffff;
    --pwa-btn-text: #111827;
    --pwa-border: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------
   ANDROID/CHROME BANERİ
   Alt hissədə sabit baner
   ------------------------------------------- */
.pwa-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--pwa-bg);
    padding: 16px 20px;
    border-top: 1px solid var(--pwa-border);
}

.pwa-banner.show {
    display: block;
    animation: pwa-slide-up 0.3s ease-out;
}

@keyframes pwa-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.pwa-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-banner-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--pwa-text);
}

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

.pwa-banner-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pwa-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pwa-banner-subtitle {
    font-size: 13px;
    color: var(--pwa-text-muted);
    margin: 0;
    line-height: 1.3;
}

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

.pwa-install-btn {
    background-color: var(--pwa-btn-bg);
    color: var(--pwa-btn-text);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    opacity: 0.9;
}

.pwa-install-btn:active {
    opacity: 0.8;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

.pwa-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--pwa-text-muted);
}

/* -------------------------------------------
   iOS/SAFARİ TƏLİMAT BANERİ
   Modal şəklində
   ------------------------------------------- */
.pwa-ios-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--pwa-bg);
    padding: 24px 20px;
    border-top: 1px solid var(--pwa-border);
}

.pwa-ios-banner.show {
    display: block;
    animation: pwa-slide-up 0.3s ease-out;
}

.pwa-ios-content {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.pwa-ios-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pwa-ios-icon {
    width: 40px;
    height: 40px;
}

.pwa-ios-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--pwa-text);
}

.pwa-ios-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pwa-text);
    margin: 0;
}

.pwa-ios-steps {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}

.pwa-ios-step {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: left;
}

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

.pwa-ios-step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: var(--pwa-btn-bg);
    color: var(--pwa-btn-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.pwa-ios-step-text {
    font-size: 14px;
    color: var(--pwa-text);
    flex: 1;
}

.pwa-ios-step-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.pwa-ios-step-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--pwa-text);
}

.pwa-ios-close-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--pwa-text);
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.pwa-ios-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* -------------------------------------------
   MOBİL UYĞUNLAŞMA
   ------------------------------------------- */
@media (max-width: 480px) {
    .pwa-banner {
        padding: 14px 16px;
    }

    .pwa-banner-content {
        gap: 12px;
    }

    .pwa-banner-icon {
        width: 40px;
        height: 40px;
    }

    .pwa-banner-icon svg {
        width: 28px;
        height: 28px;
    }

    .pwa-banner-title {
        font-size: 14px;
    }

    .pwa-banner-subtitle {
        font-size: 12px;
    }

    .pwa-install-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pwa-ios-banner {
        padding: 20px 16px;
    }

    .pwa-ios-title {
        font-size: 15px;
    }

    .pwa-ios-step {
        padding: 10px 12px;
    }

    .pwa-ios-step-text {
        font-size: 13px;
    }
}
