/* Charis Blueweb - mega-menu promo (CSS art, no ThemeForest graphic) */

.mega-menu__left.bg-img {
 background-image:
 radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
 linear-gradient(168deg, #f4f9ff 0%, #dceeff 48%, #b9dbf8 100%) !important;
 background-color: #e8f3fc;
}

.mega-menu__left::after {
 mix-blend-mode: soft-light;
 opacity: 0.35;
}

.mega-menu__thumb {
 margin-top: auto;
 padding: 8px 0 4px;
 pointer-events: none;
}

.mega-menu__thumb img {
 display: none;
}

.mega-menu-art {
 position: relative;
 width: min(100%, 260px);
 height: 148px;
 margin: 0 auto;
}

.mega-menu-art__base {
 position: absolute;
 left: 50%;
 bottom: 18px;
 width: 78%;
 height: 18px;
 transform: translateX(-50%) perspective(240px) rotateX(58deg);
 border-radius: 40%;
 background:
 linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(50, 140, 231, 0.18)),
 rgba(255, 255, 255, 0.35);
 border: 1px solid rgba(255, 255, 255, 0.65);
 box-shadow:
 0 18px 28px -16px rgba(26, 111, 192, 0.45),
 inset 0 1px 0 rgba(255, 255, 255, 0.8);
 backdrop-filter: blur(6px);
}

.mega-menu-art__slab {
 position: absolute;
 left: 50%;
 bottom: 30px;
 width: 58px;
 height: 78px;
 border-radius: 14px;
 background:
 linear-gradient(145deg, rgba(255, 255, 255, 0.7) 0%, rgba(50, 140, 231, 0.35) 45%, rgba(26, 111, 192, 0.55) 100%);
 border: 1px solid rgba(255, 255, 255, 0.7);
 box-shadow:
 10px 16px 28px -12px rgba(26, 111, 192, 0.4),
 inset 0 1px 0 rgba(255, 255, 255, 0.85),
 inset -8px -10px 20px rgba(26, 111, 192, 0.2);
 backdrop-filter: blur(8px);
 transform-origin: 50% 100%;
 animation: mega-menu-art-slab 7s ease-in-out infinite;
}

.mega-menu-art__wedge {
 position: absolute;
 left: 28%;
 bottom: 32px;
 width: 0;
 height: 0;
 border-left: 30px solid transparent;
 border-right: 30px solid transparent;
 border-bottom: 70px solid rgba(80, 168, 240, 0.55);
 filter: drop-shadow(8px 12px 16px rgba(26, 111, 192, 0.28));
 transform-origin: 50% 100%;
 animation: mega-menu-art-wedge 7s ease-in-out infinite;
 animation-delay: -1.2s;
}

.mega-menu-art__wedge::after {
 content: "";
 position: absolute;
 left: -28px;
 top: 18px;
 width: 0;
 height: 0;
 border-left: 28px solid transparent;
 border-right: 28px solid transparent;
 border-bottom: 62px solid rgba(255, 255, 255, 0.35);
}

.mega-menu-art__orb {
 position: absolute;
 left: 58%;
 bottom: 86px;
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background:
 radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 28%, transparent 42%),
 radial-gradient(circle at 70% 78%, rgba(26, 111, 192, 0.55) 0%, transparent 55%),
 linear-gradient(160deg, rgba(180, 220, 255, 0.85), rgba(50, 140, 231, 0.65));
 border: 1px solid rgba(255, 255, 255, 0.75);
 box-shadow:
 0 14px 24px -10px rgba(26, 111, 192, 0.55),
 inset 0 -8px 16px rgba(26, 111, 192, 0.25);
 animation: mega-menu-art-float 4.5s ease-in-out infinite;
}

.mega-menu-art__glow {
 position: absolute;
 left: 50%;
 bottom: 8px;
 width: 55%;
 height: 24px;
 transform: translateX(-50%);
 border-radius: 50%;
 background: radial-gradient(ellipse, rgba(50, 140, 231, 0.28) 0%, transparent 70%);
 filter: blur(2px);
}

@keyframes mega-menu-art-float {
 0%,
 100% {
 transform: translateY(0);
 }
 50% {
 transform: translateY(-8px);
 }
}

@keyframes mega-menu-art-slab {
 0%,
 100% {
 transform: translateX(-42%) rotate(-8deg);
 }
 50% {
 transform: translateX(-42%) rotate(-5deg) translateY(-3px);
 }
}

@keyframes mega-menu-art-wedge {
 0%,
 100% {
 transform: rotate(-18deg);
 }
 50% {
 transform: rotate(-14deg) translateY(-2px);
 }
}

@media screen and (max-width: 1399px) {
 .mega-menu-art {
 width: min(100%, 220px);
 height: 124px;
 }

 .mega-menu-art__slab {
 width: 54px;
 height: 72px;
 bottom: 28px;
 }

 .mega-menu-art__wedge {
 border-left-width: 28px;
 border-right-width: 28px;
 border-bottom-width: 66px;
 bottom: 30px;
 }

 .mega-menu-art__orb {
 width: 38px;
 height: 38px;
 bottom: 80px;
 }
}

@media (prefers-reduced-motion: reduce) {
 .mega-menu-art__slab,
 .mega-menu-art__wedge,
 .mega-menu-art__orb {
 animation: none;
 }
}

/* Mobile: left promo panel is hidden, so give the list panel brand atmosphere */
@media screen and (max-width: 575px) {
 .mega-menu {
  background:
   radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.92) 0%, transparent 55%),
   radial-gradient(90% 70% at 100% 100%, rgba(50, 140, 231, 0.16) 0%, transparent 60%),
   linear-gradient(168deg, #f4f9ff 0%, #e8f3fc 42%, #d5eafb 100%);
  background-color: #e8f3fc;
 }

 .mega-menu__right {
  background: transparent;
  position: relative;
 }

 .mega-menu__right::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
   linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 28%, transparent 72%, rgba(26, 111, 192, 0.08) 100%);
 }

 .mega-menu__item {
  border-bottom-color: rgba(26, 111, 192, 0.12);
 }

 .mega-menu__link::after {
  background: rgba(50, 140, 231, 0.12);
 }

 .mega-menu__link:hover::after {
  background: rgba(50, 140, 231, 0.16);
 }
}
