/**
 * SuperTimsah mobil header — logo sol, menü sağ, drawer sağdan, beyaz panel.
 */

.web-only-mobile-header {
  --m-accent: #0B7A3B;
  --m-accent-dark: #064D25;
  --m-white: #fff;
  --m-text: #1a1a1a;
  --m-text-muted: #6b6b6b;
  --m-border: #e8e8e8;
  --m-header-h: 56px;
}

.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-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 2px solid var(--m-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.web-only-mobile-header .m-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: calc(100% - 56px);
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.web-only-mobile-header .m-logo:hover {
  text-decoration: none;
}
.web-only-mobile-header .m-logo-img {
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.web-only-mobile-header .m-logo-fallback {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--m-text);
  letter-spacing: -.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-only-mobile-header .m-menu-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  background: var(--m-white);
  color: var(--m-text);
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.web-only-mobile-header .m-menu-btn:focus-visible {
  outline: 2px solid rgba(11, 122, 59, 0.45);
  outline-offset: 2px;
}
.web-only-mobile-header .m-menu-btn:active,
.web-only-mobile-header .m-menu-btn[aria-expanded="true"] {
  border-color: var(--m-accent);
  background: rgba(11, 122, 59, 0.06);
}

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

.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.4);
  pointer-events: auto;
}

.web-only-mobile-header .m-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  z-index: 260;
  width: 82vw;
  max-width: 340px;
  background: var(--m-white);
  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;
  box-shadow: none;
}
.web-only-mobile-header .m-drawer.is-open {
  transform: translateX(0);
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.14);
}

.web-only-mobile-header .m-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  height: 60px;
  background: var(--m-white);
  border-bottom: 1px solid var(--m-border);
  flex-shrink: 0;
}
.web-only-mobile-header .m-drawer-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}
.web-only-mobile-header .m-drawer-logo-img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}
.web-only-mobile-header .m-drawer-logo .m-logo-fallback {
  color: var(--m-text);
  font-size: 15px;
  font-weight: 800;
}

.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: 1px solid var(--m-border);
  border-radius: 8px;
  background: var(--m-white);
  color: var(--m-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.web-only-mobile-header .m-drawer-close:active {
  background: #f5f5f5;
  color: var(--m-text);
  border-color: #ddd;
}

.web-only-mobile-header .m-drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 16px 10px;
  padding: 0 10px 0 12px;
  height: 44px;
  background: #f6f6f6;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  position: relative;
}
.web-only-mobile-header .m-drawer-search-icon {
  color: var(--m-text-muted);
  font-size: 15px;
  flex-shrink: 0;
}
.web-only-mobile-header .m-drawer-search input[name="q"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--m-text);
  font-size: 14px;
  font-family: inherit;
}
.web-only-mobile-header .m-drawer-search input[name="q"]::placeholder {
  color: #9a9a9a;
}
.web-only-mobile-header .m-drawer-search-submit {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: var(--m-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
}
.web-only-mobile-header .m-drawer-search-submit:active {
  background: var(--m-accent-dark);
}
.web-only-mobile-header .m-drawer-search .m-search-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.web-only-mobile-header .m-drawer-cta {
  display: block;
  margin: 0 16px 12px;
  padding: 12px 14px;
  text-align: center;
  background: var(--m-accent);
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  border-radius: 8px;
  text-decoration: none;
}
.web-only-mobile-header .m-drawer-cta:hover,
.web-only-mobile-header .m-drawer-cta:active {
  background: var(--m-accent-dark);
  color: #fff !important;
  text-decoration: none;
}

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

.web-only-mobile-header .m-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.2;
  text-decoration: none;
}
.web-only-mobile-header .m-drawer-link:hover,
.web-only-mobile-header .m-drawer-link:active {
  background: #f6faf7;
  color: var(--m-accent);
  text-decoration: none;
}
.web-only-mobile-header .m-drawer-link.active {
  color: var(--m-accent);
  border-left-color: var(--m-accent);
  background: rgba(11, 122, 59, 0.07);
}

.web-only-mobile-header .m-drawer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f2f2f2;
  color: var(--m-accent);
  flex-shrink: 0;
  font-size: 1rem;
}
.web-only-mobile-header .m-drawer-link.active .m-drawer-icon {
  background: rgba(11, 122, 59, 0.15);
}

.web-only-mobile-header .m-drawer-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--m-border);
  flex-shrink: 0;
}
.web-only-mobile-header .m-drawer-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--m-text-muted);
  margin-bottom: 4px;
}
.web-only-mobile-header .m-drawer-weather {
  font-size: 12px;
  color: #999;
}
.web-only-mobile-header .m-drawer-weather-icon {
  margin-left: 4px;
  font-size: 1rem;
  vertical-align: -0.12em;
  color: var(--m-accent);
}

/* Ana menü ağacı (nav-menu-branch) */
.web-only-mobile-header .m-drawer-nav--tree > li > a:not(.m-drawer-link) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.web-only-mobile-header .m-drawer-nav--tree > li > a:not(.m-drawer-link):hover {
  background: #f6faf7;
  color: var(--m-accent);
  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: 14px 12px 14px 18px !important;
  height: auto !important;
  min-height: 48px !important;
  font-size: 15px;
  font-weight: 600;
  color: #333 !important;
  background: transparent !important;
  text-decoration: none;
}
.web-only-mobile-header .m-drawer .nav-dropdown-link:hover {
  color: var(--m-accent) !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 var(--m-border);
  background: #f7f7f7;
  color: #555;
  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: #f7f7f7 !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;
  color: #444 !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;
}
