/**
 * MyCreaTools - Mobile Header with Offcanvas Menu Stylesheet
 */

/* Main Header Container */
.mct-moh-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 12px 16px;
  font-family: inherit;
  border-radius: 0;
}

.mct-moh-container * {
  box-sizing: border-box;
}

/* ========================================================================= */
/* TOP ROW: Hamburger, Logo, Profile Icon                                    */
/* ========================================================================= */
.mct-moh-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

/* Hamburger Button */
.mct-moh-hamburger-btn {
  background: transparent;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  outline: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.mct-moh-hamburger-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.mct-moh-hamburger-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

/* Logo Wrapper */
.mct-moh-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
  text-decoration: none;
}

.mct-moh-logo-wrap img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.mct-moh-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mct-moh-logo-text span {
  color: #d31a1a;
}

/* Account / Profile Action */
.mct-moh-account-btn {
  background: transparent;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mct-moh-account-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.mct-moh-account-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.mct-moh-account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid #cbd5e1;
}

/* ========================================================================= */
/* BOTTOM ROW: Search Trigger Bar & Create Announcement CTA Button           */
/* ========================================================================= */
.mct-moh-bottom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

/* Search Trigger Bar */
.mct-moh-search-trigger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: #f1f3f5;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 10px 18px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mct-moh-search-trigger:hover {
  background-color: #e9ecef;
  border-color: #cbd5e1;
}

.mct-moh-search-placeholder {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mct-moh-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
}

.mct-moh-search-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* Create Announcement CTA Button ("Vendre mes outils") */
.mct-moh-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background-color: #ffffff;
  color: #d31a1a !important;
  border: 2px solid #d31a1a;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.mct-moh-cta-btn:hover {
  background-color: #d31a1a;
  color: #ffffff !important;
  border-color: #d31a1a;
  box-shadow: none !important;
}

/* Plus Icon on Buttons */
.mct-moh-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  margin-right: 2px;
}

/* ========================================================================= */
/* OFFCANVAS DRAWER OVERLAY & CARD                                           */
/* ========================================================================= */
.mct-moh-drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 9999999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mct-moh-drawer-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
}

.mct-moh-drawer-card {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 85% !important;
  max-width: 360px !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  background-color: #ffffff !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(-100%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

.mct-moh-drawer-overlay.is-open .mct-moh-drawer-card {
  transform: translateX(0) !important;
}

/* Drawer Header */
.mct-moh-drawer-header {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

.mct-moh-drawer-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.mct-moh-drawer-close {
  background: transparent !important;
  border: none !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mct-moh-drawer-close:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Drawer Body & Menu */
.mct-moh-drawer-body {
  padding: 20px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  flex: 1 1 auto !important;
}

.mct-moh-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mct-moh-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

.mct-moh-menu li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 4px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mct-moh-menu li a:hover,
.mct-moh-menu li.current-menu-item > a {
  color: #d31a1a !important;
  padding-left: 6px !important;
}

.mct-moh-menu li.menu-item-has-children > a::after {
  content: "›";
  font-size: 18px;
  font-weight: 400;
  color: #94a3b8;
}

.mct-moh-menu .sub-menu {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 16px !important;
  background-color: #fafafa !important;
}

.mct-moh-menu .sub-menu li a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  padding: 10px 4px !important;
}

/* Drawer Footer */
.mct-moh-drawer-footer {
  padding: 16px 20px !important;
  border-top: 1px solid #f1f5f9 !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04) !important;
}

.mct-moh-drawer-footer-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 12px 16px !important;
  background-color: #d31a1a !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center !important;
}
