/*
 * MOBILE APP NAVIGATION V2 — compact bell + avatar on Home's own mobile app bar.
 *
 * Markup: resources/views/frontend/theme_1/header.blade.php, inside ".navbar-header" (the same row the
 * existing hamburger + logo already live in), gated server-side to request()->routeIs('home') AND a
 * logged-in web/provider guard - so this is a no-op everywhere else, including every other public page
 * (services/events/rentals/blog/...), which this file is also loaded on but where the markup this file
 * targets is never rendered at all. luca-mobile-foundation.css's own Section D already compacts
 * ".navbar-header" (flex, 8px gap, 32px logo) - this file only adds the two new icons into that same
 * row, it does not re-declare anything already covered there.
 *
 * Scope: every rule lives inside @media (max-width: 767.98px). Desktop (>=768px) renders byte-for-byte
 * what the existing header already draws - the new markup is still in the DOM (no @if(mobile) on the
 * server side), just never shown there.
 */

@media (max-width: 767.98px) {
    .luca-mobile-appbar-home-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .luca-mobile-appbar-home-actions__bell,
    .luca-mobile-appbar-home-actions__avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        -webkit-tap-highlight-color: transparent;
    }

    .luca-mobile-appbar-home-actions__bell {
        background: #f6f7f5;
    }

    .luca-mobile-appbar-home-actions__bell img {
        width: 18px;
        height: 18px;
    }

    .luca-mobile-appbar-home-actions__avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
}

@media (min-width: 768px) {
    /* Desktop already shows the full bell/user-menu dropdown elsewhere in the header - these compact
       icons must never also render there, even if the server-side route/auth gate alone weren't enough. */
    .luca-mobile-appbar-home-actions {
        display: none !important;
    }
}

/* ====================================================================================
   MOBILE GUEST HEADER V2 - compact "Anmelden" entry + a larger logo. Markup: theme_1/header.blade.php (.luca-mobile-appbar-guest, guests only).
   The hamburger (#mobile_btn) is absolutely placed at the left edge of the bar and the logo link (.logo-small) is a full-width, centred block with 100px
   side padding (style.css, <992px); the guest entry takes the same absolute slot on the right, inside that 100px, so the logo stays centred.
   ==================================================================================== */
.luca-mobile-appbar-guest {
    display: none;
}

@media (max-width: 767.98px) {
    .luca-mobile-appbar-guest {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 99;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 44px;
        padding: 0 4px 0 8px;
        color: #244d3b;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .luca-mobile-appbar-guest i {
        font-size: 20px;
        line-height: 1;
    }

    .luca-mobile-appbar-guest:hover,
    .luca-mobile-appbar-guest:focus-visible {
        color: #1b3a2d;
    }

    .luca-mobile-appbar-guest:focus-visible {
        outline: 2px solid #6eaa89;
        outline-offset: 2px;
        border-radius: 8px;
    }

    /* "Zurück" in the guest entry modal's registration step (.btn-link, Bootstrap blue until now): brand mint, still a quiet link-style action under the
       two choices (Familie = primary, Anbieter = outline). Colour set through Bootstrap's own button variables AND directly, so it holds whichever the
       stylesheet order makes win. Hover / active a shade deeper with a very soft mint wash; the focus ring stays visible. 44px tall = a comfortable tap area. */
    #luca-guest-entry .btn-link {
        --bs-btn-color: #6eaa89;
        --bs-btn-hover-color: #5c9878;
        --bs-btn-active-color: #5c9878;
        --bs-btn-focus-shadow-rgb: 110, 170, 137;
        color: #6eaa89;
        font-weight: 600;
        text-decoration: none;
        border-radius: 12px;
    }

    #luca-guest-entry .btn-link:hover,
    #luca-guest-entry .btn-link:active {
        color: #5c9878;
        background: rgba(110, 170, 137, 0.10);
    }

    #luca-guest-entry .btn-link:focus-visible {
        color: #5c9878;
        background: rgba(110, 170, 137, 0.10);
        outline: 2px solid #6eaa89;
        outline-offset: 2px;
        box-shadow: none;
    }

    /* the visible Mobile logo is the small one (.logo is d-none <992px): 30px -> 40px, inside the bar's existing 56px row, so the header does not grow */
    .header-landing .navbar-brand.logo-small img {
        width: auto; /* style.css pins this image to width: 30px */
        height: 40px;
        max-height: 40px;
    }
}

@media (min-width: 768px) {
    .luca-mobile-appbar-guest {
        display: none !important;
    }
}

