/* FILE: /assets/css/dc-mobile-drawer.css
 * Mobile slide-out menu ONLY. Every rule is scoped under .dc-mobile-drawer
 * (plus one html.dc-drawer-lock rule for background scroll lock).
 * Rollback: restore includes/footer.php from the backup and delete this file + dc-mobile-drawer.js.
 */
.dc-mobile-drawer {
  --dc-navy-1: #0b1f5c;
  --dc-navy-2: #06143f;
  --dc-navy-3: #040b26;
  --dc-cyan: #22d3ee;
  --dc-line: rgba(59, 130, 246, .38);
  --dc-ease: cubic-bezier(.22, .8, .24, 1);
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.dc-mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.dc-mobile-drawer *, .dc-mobile-drawer *::before, .dc-mobile-drawer *::after { box-sizing: border-box; }

/* ---------- backdrop ---------- */
.dc-mobile-drawer .dcmd-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, .66);
  opacity: 0;
  transition: opacity .26s ease;
}
.dc-mobile-drawer.is-open .dcmd-backdrop { opacity: 1; }

/* ---------- panel ---------- */
.dc-mobile-drawer .dcmd-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(90vw, 400px);
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 55% at 90% 0%, rgba(37, 99, 235, .55), transparent 62%),
    radial-gradient(90% 40% at 0% 100%, rgba(6, 182, 212, .20), transparent 62%),
    linear-gradient(180deg, var(--dc-navy-1) 0%, var(--dc-navy-2) 46%, var(--dc-navy-3) 100%);
  border-right: 1px solid rgba(56, 189, 248, .30);
  box-shadow: 0 0 0 1px rgba(10, 30, 90, .6), 12px 0 44px rgba(0, 0, 0, .55), 0 0 36px rgba(34, 211, 238, .12);
  transform: translate3d(-104%, 0, 0);
  opacity: .6;
  transition: transform .34s var(--dc-ease), opacity .3s ease;
  will-change: transform;
  outline: none;
}
@supports (height: 100dvh) { .dc-mobile-drawer .dcmd-panel { height: 100dvh; } }
.dc-mobile-drawer.is-open .dcmd-panel { transform: translate3d(0, 0, 0); opacity: 1; }

/* dotted "world map" texture, top right */
.dc-mobile-drawer .dcmd-panel::before {
  content: ''; position: absolute; top: 0; right: 0; width: 62%; height: 190px; pointer-events: none;
  background: radial-gradient(rgba(125, 211, 252, .32) 1px, transparent 1.3px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
  opacity: .7;
}

/* red / green curved accents */
.dc-mobile-drawer .dcmd-arc { position: absolute; pointer-events: none; z-index: 0; }
.dc-mobile-drawer .dcmd-arc--top { top: 0; left: 0; width: 150px; height: 160px; filter: drop-shadow(0 0 10px rgba(255, 40, 70, .35)); }
.dc-mobile-drawer .dcmd-arc--bottom { bottom: 0; left: 0; width: 210px; height: 140px; filter: drop-shadow(0 0 10px rgba(255, 40, 70, .3)); }

/* ---------- close button ---------- */
.dc-mobile-drawer .dcmd-close {
  position: absolute; z-index: 5;
  top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px;
  width: 44px; height: 44px; padding: 0; margin: 0;
  display: grid; place-items: center;
  font-size: 20px; line-height: 1; color: #fff;
  background: rgba(8, 20, 66, .88);
  border: 1px solid rgba(125, 211, 252, .4);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(34, 211, 238, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: transform .25s var(--dc-ease), box-shadow .2s ease, background .2s ease;
}
.dc-mobile-drawer .dcmd-close:hover { transform: rotate(90deg); box-shadow: 0 0 22px rgba(34, 211, 238, .5); }
.dc-mobile-drawer .dcmd-close:active { transform: rotate(90deg) scale(.92); }

/* ---------- scroll area ---------- */
.dc-mobile-drawer .dcmd-scroll {
  position: relative; z-index: 2;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 14px 0;
  scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, .35) transparent;
}

/* ---------- brand ---------- */
.dc-mobile-drawer .dcmd-head { padding: 4px 56px 14px 6px; }
.dc-mobile-drawer .dcmd-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #fff; max-width: 100%; margin-left: 28px; }
.dc-mobile-drawer .dcmd-logo {
  display: block; height: auto; width: auto; max-width: 100%; max-height: 64px; object-fit: contain;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}
.dc-mobile-drawer .dcmd-logo-text { font-size: 28px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.dc-mobile-drawer .dcmd-tagline { font-size: 14px; color: #f1f5ff; letter-spacing: .2px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* ---------- search ---------- */
.dc-mobile-drawer .dcmd-search {
  display: flex; align-items: center; gap: 8px; margin: 6px 2px 16px; padding: 0 16px; height: 50px;
  background: linear-gradient(180deg, rgba(18, 52, 120, .85), rgba(8, 28, 78, .9));
  border: 1px solid rgba(34, 211, 238, .55);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(2, 8, 40, .45);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dc-mobile-drawer .dcmd-search:focus-within { border-color: var(--dc-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .22), 0 6px 18px rgba(2, 8, 40, .45); }
.dc-mobile-drawer .dcmd-search-btn { background: none; border: 0; padding: 6px; margin: 0; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.dc-mobile-drawer .dcmd-search input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 4px;
  background: transparent; border: 0; outline: none; box-shadow: none;
  color: #e8efff; font: inherit; font-size: 16px;
}
.dc-mobile-drawer .dcmd-search input::placeholder { color: #9fb3d9; opacity: 1; }

/* ---------- menu list ---------- */
.dc-mobile-drawer .dcmd-list { list-style: none; margin: 0; padding: 0 2px; display: grid; gap: 10px; }
.dc-mobile-drawer .dcmd-item { margin: 0; padding: 0; }
.dc-mobile-drawer .dcmd-link {
  --dc-a: #3b82f6; --dc-b: #1d4ed8;
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 5px 14px 5px 14px;
  color: #fff; font-size: 18px; font-weight: 500; line-height: 1.3; text-decoration: none;
  background: linear-gradient(180deg, #0d2760 0%, #071a47 100%);
  border: 1px solid var(--dc-line);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(2, 8, 40, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden; isolation: isolate;
  transition: transform .18s ease, border-color .22s ease, box-shadow .22s ease;
}
/* left coloured accent */
.dc-mobile-drawer .dcmd-link::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--dc-a), var(--dc-b));
  box-shadow: 0 0 10px var(--dc-a); z-index: 2;
}
/* red active overlay (fades in/out smoothly) */
.dc-mobile-drawer .dcmd-link::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; border-radius: inherit;
  background: linear-gradient(90deg, #ff1f3d 0%, #d4143a 46%, #7a0f45 100%);
  transition: opacity .24s ease;
}
.dc-mobile-drawer .dcmd-link:hover { border-color: rgba(96, 165, 250, .7); box-shadow: 0 8px 20px rgba(2, 8, 40, .55), 0 0 14px rgba(59, 130, 246, .25); }
.dc-mobile-drawer .dcmd-link:active { transform: scale(.985); }
.dc-mobile-drawer .dcmd-link:focus-visible { outline: 2px solid var(--dc-cyan); outline-offset: 2px; }
.dc-mobile-drawer .dcmd-link.is-active { border-color: rgba(255, 96, 128, .85); box-shadow: 0 0 22px rgba(255, 30, 70, .42), inset 0 1px 0 rgba(255, 255, 255, .18); }
.dc-mobile-drawer .dcmd-link.is-active::after { opacity: 1; }
.dc-mobile-drawer .dcmd-link.is-active::before { --dc-a: #fbbf24; --dc-b: #f59e0b; }

.dc-mobile-drawer .dcmd-ico {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 20px; color: #fff; border-radius: 12px;
  background: linear-gradient(145deg, var(--dc-a), var(--dc-b));
  box-shadow: 0 4px 10px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .22s var(--dc-ease);
}
.dc-mobile-drawer .dcmd-link:hover .dcmd-ico { transform: scale(1.07) rotate(-4deg); }
.dc-mobile-drawer .dcmd-link:active .dcmd-ico { transform: scale(.94); }
.dc-mobile-drawer .dcmd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-mobile-drawer .dcmd-chev { flex: 0 0 auto; font-size: 15px; color: #cfd9ff; transition: transform .2s ease; }
.dc-mobile-drawer .dcmd-link:hover .dcmd-chev { transform: translateX(3px); }

/* tones */
.dc-mobile-drawer .dcmd-link[data-tone="red"]    { --dc-a: #ff6a7c; --dc-b: #e11d48; }
.dc-mobile-drawer .dcmd-link[data-tone="amber"]  { --dc-a: #f6a312; --dc-b: #b45309; }
.dc-mobile-drawer .dcmd-link[data-tone="blue"]   { --dc-a: #3d8bff; --dc-b: #1747d6; }
.dc-mobile-drawer .dcmd-link[data-tone="green"]  { --dc-a: #22c55e; --dc-b: #138a3d; }
.dc-mobile-drawer .dcmd-link[data-tone="purple"] { --dc-a: #a855f7; --dc-b: #6d28d9; }
.dc-mobile-drawer .dcmd-link[data-tone="teal"]   { --dc-a: #22d3ee; --dc-b: #0e7490; }
.dc-mobile-drawer .dcmd-link[data-tone="pink"]   { --dc-a: #f43f8e; --dc-b: #be185d; }
.dc-mobile-drawer .dcmd-link[data-tone="sky"]    { --dc-a: #38bdf8; --dc-b: #2563eb; }
.dc-mobile-drawer .dcmd-link[data-tone="lime"]   { --dc-a: #34d058; --dc-b: #15803d; }
.dc-mobile-drawer .dcmd-link[data-tone="orange"] { --dc-a: #fb923c; --dc-b: #ea580c; }
.dc-mobile-drawer .dcmd-link[data-tone="violet"] { --dc-a: #8b5cf6; --dc-b: #5b21b6; }

/* ---------- decorative footer ---------- */
.dc-mobile-drawer .dcmd-foot { position: relative; margin: 14px -14px 0; height: 128px; pointer-events: none; }
.dc-mobile-drawer .dcmd-foot svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.dc-mobile-drawer .dcmd-slogan {
  position: absolute; right: 22px; top: 14px; color: #fff; font-size: 15px; font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  padding-bottom: 6px; background: linear-gradient(90deg, transparent, #ff2a45) bottom / 100% 3px no-repeat;
  transform: rotate(-4deg);
}
.dc-mobile-drawer .dcmd-scroll::after { content: ''; display: block; height: env(safe-area-inset-bottom, 0px); }

/* ---------- staggered entrance (only while opening) ---------- */
.dc-mobile-drawer .dcmd-item, .dc-mobile-drawer .dcmd-head, .dc-mobile-drawer .dcmd-search { opacity: 1; }
.dc-mobile-drawer.is-open .dcmd-item {
  animation: dcmdIn .38s var(--dc-ease) both;
  animation-delay: calc(110ms + var(--i, 0) * 35ms);
}
.dc-mobile-drawer.is-open .dcmd-head, .dc-mobile-drawer.is-open .dcmd-search { animation: dcmdIn .34s var(--dc-ease) both; }
@keyframes dcmdIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

/* ---------- small phones ---------- */
@media (max-width: 359px) {
  .dc-mobile-drawer .dcmd-link { font-size: 16px; gap: 10px; min-height: 50px; }
  .dc-mobile-drawer .dcmd-ico { width: 40px; height: 40px; font-size: 18px; }
  .dc-mobile-drawer .dcmd-brand { margin-left: 8px; }
}

/* ---------- desktop keeps its own horizontal navigation ---------- */
@media (min-width: 1024px) { .dc-mobile-drawer { display: none !important; } }

/* ---------- background scroll lock (set by JS while open) ---------- */
html.dc-drawer-lock, html.dc-drawer-lock body { overflow: hidden !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dc-mobile-drawer, .dc-mobile-drawer *, .dc-mobile-drawer *::before, .dc-mobile-drawer *::after {
    transition-duration: .01ms !important; animation: none !important; transition-delay: 0s !important;
  }
}
