/**
 * FIX MOBILE LOGO VISIBILITY
 * Shows logo on mobile devices while keeping navigation hidden
 * This overrides hide-top-nav-mobile.css
 */

@media (max-width: 768px) {
    /* SHOW the header but make it minimal */
    header,
    .app-header {
        display: flex !important;
        height: 60px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: rgba(10, 22, 40, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 0 1rem !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Show logo on mobile */
    .app-header-left,
    .app-logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    /* Logo mark styling */
    .logo-mark {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }

    /* Logo text group */
    .logo-text-group {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.15 !important;
    }

    .logo-text {
        font-size: 0.9rem !important;
        display: block !important;
    }

    .logo-tagline {
        font-size: 0.4rem !important;
        display: block !important;
    }

    /* Organization logo image */
    .header-org-logo {
        max-height: 40px !important;
        width: auto !important;
        display: block !important;
    }

    /* HIDE navigation menu items on mobile */
    .app-nav,
    nav.app-nav {
        display: none !important;
    }

    /* HIDE right side items (profile/settings) on mobile */
    .app-header-right {
        display: none !important;
    }

    /* Adjust page content for BOTH top and bottom nav */
    main,
    #app > div,
    .page-content,
    .page,
    .dashboard-page,
    .nutrition-page,
    .training-page,
    .rehab-page,
    .community-page,
    .timetable-page,
    .profile-page {
        padding-top: 60px !important;
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)) !important;
        margin-top: 0 !important;
    }

    /* Community page specific adjustment */
    .dc-layout {
        top: 60px !important;
        bottom: 70px !important;
    }

    /* Page titles with reduced top padding */
    .page-header,
    h1.page-title {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Tablet and Desktop: Normal layout */
@media (min-width: 769px) {
    /* Use default styles, no overrides needed */
}

    /* Remove ALL gaps from dashboard and other page first elements */
    .db-new,
    .db-topbar,
    .db-identity,
    .db-greeting-line,
    .nutrition-page > *:first-child,
    .training-page > *:first-child,
    .rehab-page > *:first-child,
    .timetable-page > *:first-child,
    .profile-page > *:first-child {
        margin-top: 0 !important;
    }

    .db-topbar {
        padding-top: 0.5rem !important;
    }
