/**
 * DAF Marketplace — Header Mobile
 * Location: /wp-content/plugins/daf-marketplace/assets/css/header/header-mobile.css
 *
 * Purpose:
 * - Style the compact plugin-based mobile header bar.
 * - Style the mobile search area and offcanvas mobile panel.
 * - Keep the mobile header lightweight, clean, premium, and touch-friendly.
 */

.daf-mp-header__mobile-bar, .daf-mp-header__mobile-search { display: none; background: #fff; }
.daf-mp-header__mobile-bar { border-bottom: 1px solid #E2E8F0; }
.daf-mp-header__mobile-bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 12px; }
.daf-mp-header__mobile-toggle, .daf-mp-header__mobile-actions { flex: 0 0 auto; }
.daf-mp-header__mobile-branding { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; }

.daf-mp-mobile-toggle, .daf-mp-mobile-search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; color: #0F172A; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.daf-mp-mobile-toggle:hover, .daf-mp-mobile-search-toggle:hover { background: #F8FAFC; border-color: #CBD5E1; color: #2563EB; transform: translateY(-1px); }
.daf-mp-mobile-toggle__icon, .daf-mp-mobile-search-toggle__icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; }
.daf-mp-mobile-toggle__icon svg, .daf-mp-mobile-search-toggle__icon svg { width: 100%; height: 100%; }

.daf-mp-mobile-branding { display: flex; align-items: center; justify-content: center; width: 100%; }
.daf-mp-header-logo--mobile { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; }
.daf-mp-header-logo--mobile .daf-mp-header-logo__image { display: block; max-height: 34px; width: auto; }
.daf-mp-header-logo--mobile .daf-mp-header-logo__text { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #0F172A; }

.daf-mp-mobile-actions { display: flex; align-items: center; gap: 8px; }
.daf-mp-mobile-actions .daf-mp-header-action { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; color: #0F172A; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.daf-mp-mobile-actions .daf-mp-header-action:hover { background: #F8FAFC; border-color: #CBD5E1; color: #2563EB; transform: translateY(-1px); }
.daf-mp-mobile-actions .daf-mp-header-action__icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.daf-mp-mobile-actions .daf-mp-header-action__icon svg { width: 100%; height: 100%; }
.daf-mp-mobile-actions .daf-mp-header-action__badge { position: absolute; top: -4px; right: -4px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #F97316; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }

.daf-mp-header__mobile-search { padding: 0 0 12px; border-bottom: 1px solid #E2E8F0; }
.daf-mp-header-mobile-search-form { padding-top: 12px; }
.daf-mp-header-mobile-search-form__inner { display: flex; align-items: center; min-height: 50px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.daf-mp-header-mobile-search-form__inner:focus-within { border-color: #CBD5E1; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.daf-mp-header-mobile-search-form__input { flex: 1 1 auto; width: 100%; height: 50px; padding: 0 16px; border: 0; background: transparent; color: #0F172A; font-size: 14px; font-weight: 500; }
.daf-mp-header-mobile-search-form__input::placeholder { color: #94A3B8; opacity: 1; }
.daf-mp-header-mobile-search-form__input:focus { outline: 0; }
.daf-mp-header-mobile-search-form__button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; margin-right: 2px; border: 0; border-radius: 999px; background: #0F172A; color: #fff; transition: background .2s ease, transform .2s ease; }
.daf-mp-header-mobile-search-form__button:hover { background: #111827; transform: translateY(-1px); }
.daf-mp-header-mobile-search-form__button-icon { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; }
.daf-mp-header-mobile-search-form__button svg, .daf-mp-header-mobile-search-form__button-icon svg { width: 100%; height: 100%; }

.daf-mp-mobile-panel__dialog { max-width: 360px; background: #fff; }
.daf-mp-mobile-panel__branding .daf-mp-header-logo__image { max-height: 34px; }
.daf-mp-mobile-panel__branding .daf-mp-header-logo__text { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #0F172A; }

.daf-mp-mobile-panel__nav .daf-mp-header-nav, .daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links { display: block; width: 100%; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav__menu, .daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__list { display: block; width: 100%; margin: 0; padding: 0; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav__item, .daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__item { width: 100%; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav__link, .daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 0; color: #0F172A; font-size: 15px; font-weight: 600; line-height: 1.4; border-bottom: 1px solid #F1F5F9; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav__item:last-child > .daf-mp-header-nav__link, .daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__item:last-child > .daf-mp-header-quick-links__link { border-bottom: 0; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav__item:first-child .daf-mp-header-nav__link { padding-left: 0; }

.daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current-menu-item > .daf-mp-header-nav__link, .daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current-menu-ancestor > .daf-mp-header-nav__link, .daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current_page_item > .daf-mp-header-nav__link, .daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current_page_parent > .daf-mp-header-nav__link { color: #2563EB; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current-menu-item > .daf-mp-header-nav__link:after, .daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current-menu-ancestor > .daf-mp-header-nav__link:after, .daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current_page_item > .daf-mp-header-nav__link:after, .daf-mp-mobile-panel__nav .daf-mp-header-nav__item.current_page_parent > .daf-mp-header-nav__link:after { display: none; }

.daf-mp-mobile-panel__nav .daf-mp-header-nav .menu-item-has-children > .daf-mp-header-nav__link, .daf-mp-mobile-panel__nav .daf-mp-header-nav .page_item_has_children > .daf-mp-header-nav__link { padding-right: 24px; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav .menu-item-has-children > .daf-mp-header-nav__link:before, .daf-mp-mobile-panel__nav .daf-mp-header-nav .page_item_has_children > .daf-mp-header-nav__link:before { right: 4px; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav .sub-menu, .daf-mp-mobile-panel__nav .daf-mp-header-nav .children { position: static; display: block; min-width: 0; margin: 0 0 8px; padding: 0 0 0 14px; list-style: none; border: 0; border-left: 1px solid #E2E8F0; border-radius: 0; box-shadow: none; background: transparent; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav .sub-menu a, .daf-mp-mobile-panel__nav .daf-mp-header-nav .children a { display: flex; align-items: center; padding: 10px 0; background: transparent; color: #475569; font-size: 14px; font-weight: 500; line-height: 1.4; }
.daf-mp-mobile-panel__nav .daf-mp-header-nav .sub-menu a:hover, .daf-mp-mobile-panel__nav .daf-mp-header-nav .children a:hover { background: transparent; color: #0F172A; }

.daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__link { justify-content: flex-start; gap: 10px; padding: 12px 0; border-radius: 0; background: transparent; }
.daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__icon { width: 16px; height: 16px; color: #64748B; }
.daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__icon svg { width: 100%; height: 100%; }
.daf-mp-mobile-panel__quick-links .daf-mp-header-quick-links__text { font-size: 14px; font-weight: 600; color: #334155; }

.daf-mp-mobile-panel__footer .daf-mp-topbar-links { display: block; width: 100%; margin: 0; padding: 0; }
.daf-mp-mobile-panel__footer .daf-mp-topbar-links__item { display: flex; width: 100%; min-height: 44px; padding: 12px 0; color: #475569; font-size: 14px; font-weight: 500; border-bottom: 1px solid #F1F5F9; }
.daf-mp-mobile-panel__footer .daf-mp-topbar-links__item:last-child { border-bottom: 0; }
.daf-mp-mobile-panel__footer .daf-mp-topbar-links--right .daf-mp-topbar-links__item:before, .daf-mp-mobile-panel__footer .daf-mp-topbar-links--left .daf-mp-topbar-links__item:before { display: none; }