/**
 * Mobil site header (drawer + arama). Yalnızca .web-only-mobile-header altında geçerlidir.
 * Kırılım: `system.web_header_desktop_min_px` (layout’ta) ile eşleşmeli; body padding orada ayarlanır.
 */

.web-only-mobile-header {
  --m-red: #b10000;
  --m-red-dark: #8a0000;
  --m-dark: #1b1b1b;
  --m-dark-2: #2a2a2a;
  --m-white: #fff;
  --m-text-muted: #6b6b6b;
  --m-header-h: 56px;
}

/* body.web-layout üst boşluğu layout’ta (web.blade.php) breakpoint ile üretilir */

.web-only-mobile-header .m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--m-header-h);
  background: var(--m-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 2px solid var(--m-red);
}

.web-only-mobile-header .m-menu-btn,
.web-only-mobile-header .m-search-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  background-image: none;
  color: var(--m-white);
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.web-only-mobile-header .m-menu-btn:focus-visible,
.web-only-mobile-header .m-search-btn:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.65);
  outline-offset: 2px;
}

.web-only-mobile-header .m-menu-btn:active,
.web-only-mobile-header .m-search-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.web-only-mobile-header .m-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.web-only-mobile-header .m-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--m-white);
  border-radius: 2px;
}

.web-only-mobile-header .m-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  user-select: none;
  color: inherit;
  max-width: min(52vw, 280px);
}
.web-only-mobile-header .m-logo:hover {
  text-decoration: none;
}
.web-only-mobile-header .m-logo-haber {
  color: var(--m-white);
}
.web-only-mobile-header .m-logo-merkezi {
  color: #ffd700;
}
.web-only-mobile-header .m-logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.web-only-mobile-header .m-search-btn svg {
  display: block;
  color: inherit;
}

.web-only-mobile-header .m-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--m-dark);
  padding: 0 12px;
  height: var(--m-header-h);
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 2px solid var(--m-red);
}
.web-only-mobile-header .m-search-overlay.is-visible {
  transform: translateY(0);
}

.web-only-mobile-header .m-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--m-dark-2);
  border-radius: 10px;
  padding: 0 14px;
  height: 40px;
  color: var(--m-text-muted);
}
.web-only-mobile-header .m-search-bar svg {
  flex-shrink: 0;
}
.web-only-mobile-header .m-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  color: var(--m-white);
  min-width: 0;
}
.web-only-mobile-header .m-search-bar input::placeholder {
  color: var(--m-text-muted);
}
.web-only-mobile-header .m-search-close {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--m-text-muted);
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.web-only-mobile-header .m-search-close:active {
  color: var(--m-white);
}

.web-only-mobile-header .m-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.3s;
}
.web-only-mobile-header .m-drawer-overlay.is-visible {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.web-only-mobile-header .m-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 260;
  width: 78vw;
  max-width: 320px;
  background: var(--m-dark);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  overflow-y: auto;
}
.web-only-mobile-header .m-drawer.is-open {
  transform: translateX(0);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.web-only-mobile-header .m-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
  background: var(--m-red);
  flex-shrink: 0;
}
.web-only-mobile-header .m-drawer-logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.web-only-mobile-header .m-drawer-logo .m-logo-haber {
  color: var(--m-white);
}
.web-only-mobile-header .m-drawer-logo .m-logo-merkezi {
  color: #ffd700;
}
.web-only-mobile-header .m-drawer-logo-img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.web-only-mobile-header .m-drawer-close {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.web-only-mobile-header .m-drawer-close:active {
  background: rgba(0, 0, 0, 0.2);
  color: var(--m-white);
}

.web-only-mobile-header .m-drawer-nav {
  list-style: none;
  padding: 10px 0;
  flex: 1;
  margin: 0;
}

.web-only-mobile-header .m-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.web-only-mobile-header .m-drawer-link:hover,
.web-only-mobile-header .m-drawer-link:active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--m-white);
  text-decoration: none;
}
.web-only-mobile-header .m-drawer-link.active {
  color: var(--m-white);
  border-left-color: var(--m-red);
  background: rgba(177, 0, 0, 0.15);
}

.web-only-mobile-header .m-drawer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  font-size: 1rem;
}
.web-only-mobile-header .m-drawer-link.active .m-drawer-icon {
  background: rgba(177, 0, 0, 0.35);
}

.web-only-mobile-header .m-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.web-only-mobile-header .m-drawer-date {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.web-only-mobile-header .m-drawer-weather {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
.web-only-mobile-header .m-drawer-weather-icon {
  margin-left: 4px;
  font-size: 1rem;
  vertical-align: -0.12em;
  color: rgba(255, 255, 255, 0.55);
}

/* Ana menü ağacı (nav-menu-branch) drawer içinde */
.web-only-mobile-header .m-drawer-nav--tree > li > a:not(.m-drawer-link) {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  border-left: 3px solid transparent;
}
.web-only-mobile-header .m-drawer-nav--tree > li > a:not(.m-drawer-link):hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--m-white);
  text-decoration: none;
}

.web-only-mobile-header .m-drawer .nav-dropdown-head {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
}
.web-only-mobile-header .m-drawer .nav-dropdown-link {
  flex: 1;
  display: flex !important;
  align-items: center;
  padding: 15px 12px 15px 20px !important;
  height: auto !important;
  min-height: 48px !important;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
}
.web-only-mobile-header .m-drawer .nav-dropdown-link:hover {
  color: var(--m-white) !important;
  text-decoration: none;
}

.web-only-mobile-header .m-drawer .nav-dropdown-caret {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  cursor: pointer;
}
.web-only-mobile-header .m-drawer .nav-dropdown-caret::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}
.web-only-mobile-header .m-drawer .nav-item-has-children.nav-mobile-open > .nav-dropdown-head .nav-dropdown-caret::before {
  transform: rotate(225deg);
  margin-top: 2px;
}

.web-only-mobile-header .m-drawer .nav-submenu {
  position: static !important;
  min-width: 100% !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: rgba(0, 0, 0, 0.22) !important;
  opacity: 1 !important;
  visibility: hidden !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  pointer-events: none !important;
}
.web-only-mobile-header .m-drawer .nav-item-has-children.nav-mobile-open > .nav-submenu {
  visibility: visible !important;
  max-height: 2000px !important;
  pointer-events: auto !important;
}

.web-only-mobile-header .m-drawer .nav-submenu a,
.web-only-mobile-header .m-drawer .nav-submenu .nav-dropdown-link {
  padding-left: 28px !important;
  font-size: 14px !important;
}
.web-only-mobile-header .m-drawer .nav-submenu .nav-submenu a,
.web-only-mobile-header .m-drawer .nav-submenu .nav-submenu .nav-dropdown-link {
  padding-left: 40px !important;
}
