/* ============================================================
   BOTTOM NAVIGATION - APP STYLE (للصفحات العامة)
   ============================================================ */

/* Hide on desktop by default */
.bottom-nav-app {
    display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .bottom-nav-app {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 70px;
        background: linear-gradient(180deg,
                rgba(250, 246, 241, 0.98),
                rgba(255, 255, 255, 0.98));
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(188, 84, 51, 0.15);
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        padding: 0 var(--space-2, 8px);
        z-index: 9999 !important;
        box-shadow:
            0 -4px 20px rgba(90, 54, 37, 0.12),
            0 -1px 0 rgba(188, 84, 51, 0.1);
    }

    .bottom-nav-app-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        min-width: 64px;
        color: var(--ink-500);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        border-radius: 12px;
    }

    .bottom-nav-app-item.active {
        color: var(--cobalt);
        background: linear-gradient(135deg,
                rgba(188, 84, 51, 0.08),
                rgba(188, 84, 51, 0.12));
    }

    .bottom-nav-app-item.active::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, var(--cobalt), var(--sun));
        border-radius: 3px;
        box-shadow: 0 2px 8px rgba(188, 84, 51, 0.4);
    }

    .bottom-nav-app-icon {
        font-size: 24px;
        transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .bottom-nav-app-item.active .bottom-nav-app-icon {
        transform: scale(1.15);
    }

    .bottom-nav-app-label {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.02em;
        font-family: var(--font-body);
    }

    /* Safe Area Support (iOS) */
    @supports (padding: env(safe-area-inset-bottom)) {
        .bottom-nav-app {
            padding-bottom: env(safe-area-inset-bottom);
            height: calc(70px + env(safe-area-inset-bottom));
        }
    }

    /* Raise WhatsApp floating button above bottom nav */
    .wa-pulse {
        bottom: 90px !important;
    }

    @supports (padding: env(safe-area-inset-bottom)) {
        .wa-pulse {
            bottom: calc(90px + env(safe-area-inset-bottom)) !important;
        }
    }

    /* Hide traditional footer on mobile */
    .nova-footer {
        display: none !important;
    }

    /* Add safe padding for content above bottom nav */
    body.nova-body {
        padding-bottom: 90px !important;
    }

    @supports (padding: env(safe-area-inset-bottom)) {
        body.nova-body {
            padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
        }
    }
}