/*
Theme Name: Docy Child
Theme URI: https://wp.spider-themes.com/docy/
Template: docy
Author: spider-themes
Author URI: https://themeforest.net/user/spider-themes
Description: Docy is a powerful, responsive, and high-performance online documentation WordPress theme that can assist you quickly develop your next product’s documentation. It can be used for documenting API, frameworks, plugins, templates, software, manual etc.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: docy-child
*/

/* =========================================
   Halloween Campaign Topbar
========================================= */

.forumax-sale-bar,
.forumax-sale-bar * {
  box-sizing: border-box;
}

.forumax-sale-bar {
  position: relative;
  z-index: 9999;
  width: 100%;
  min-height: 76px;
  overflow: hidden;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 8% 100%, rgba(168, 85, 247, 0.4) 0%, transparent 55%),
    radial-gradient(circle at 88% 120%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    linear-gradient(90deg, #181135 0%, #201548 18%, #2d1a64 45%, #241652 75%, #180f36 100%);
  border-bottom: 1px solid rgba(255, 120, 0, 0.3);
  box-shadow: 0 4px 25px rgba(8, 4, 20, 0.7);
}

/* Bat micro-animations */
@keyframes hallowBatFly1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5px, -3px) scale(0.94); }
}
@keyframes hallowBatFly2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4px, -2.5px) scale(1.06); }
}

.hallow-bat-1 { animation: hallowBatFly1 3.8s ease-in-out infinite; }
.hallow-bat-2 { animation: hallowBatFly2 3.2s ease-in-out infinite; }
.hallow-bat-3 { animation: hallowBatFly1 4.4s ease-in-out infinite; }

/* Topbar inner flex container */
.forumax-sale-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  min-height: 76px;
  margin: 0 auto;
  padding: 6px 48px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* =========================================
   Left Section: Castle Landscape & Countdown
========================================= */

.forumax-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

/* Seamless Haunted Castle & Twilight Sky Scenery */
.forumax-castle-scenery {
  width: 195px;
  height: 72px;
  flex: 0 0 195px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.forumax-castle-scenery svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Clean, Airy Countdown Timer */
.forumax-countdown {
  display: flex;
  align-items: center;
}

.forumax-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 11px;
}

.forumax-time:first-child {
  padding-left: 2px;
}

.forumax-time strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.forumax-time span {
  color: #d8b4fe;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.forumax-divider-col {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* =========================================
   Center Offer & Mascot Group
========================================= */

.forumax-offer-group {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Mascot + Wooden Sign combo */
.forumax-mascot-sign {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
}

.forumax-ghost-mascot {
  width: 52px;
  height: 60px;
  flex: 0 0 52px;
  filter: drop-shadow(0 4px 14px rgba(168, 85, 247, 0.5));
  animation: ghostBob 3.2s ease-in-out infinite;
  position: relative;
  z-index: 3;
  margin-right: -12px;
}

@keyframes ghostBob {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-2deg);
  }
}

.forumax-wood-sign {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #d98d3b 0%, #b25d1a 60%, #7d3b0b 100%);
  border: 2px solid #542204;
  border-radius: 8px;
  padding: 5px 12px 6px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 230, 180, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transform: rotate(2deg);
  transition: transform 0.2s ease;
}

.forumax-wood-sign:hover {
  transform: rotate(0deg) scale(1.04);
}

.forumax-wood-sign::before,
.forumax-wood-sign::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #240e02;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
.forumax-wood-sign::before { left: 5px; }
.forumax-wood-sign::after { right: 5px; }

.forumax-wood-label {
  font-size: 8px;
  font-weight: 900;
  color: #381502;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  text-shadow: 0 1px 0 rgba(255, 230, 180, 0.4);
}

.forumax-wood-discount {
  font-size: 17px;
  font-weight: 900;
  color: #fff9ee;
  text-shadow: 0 2px 0 #542204, 0 3px 6px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* Message typography - Short & Crisp Halloween Headline */
.forumax-message-block {
  display: flex;
  align-items: center;
}

.forumax-headline {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.forumax-headline span.spooky-font {
  font-family: 'Creepster', cursive, sans-serif;
  font-weight: normal;
  color: #ffffff;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(216, 180, 254, 0.7), 0 2px 4px rgba(0, 0, 0, 0.85);
}

/* =========================================
   Call to Action (CTA) Button
========================================= */

.forumax-cta-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.forumax-sale-btn,
.forumax-sale-btn:link,
.forumax-sale-btn:visited {
  position: relative;
  min-height: 44px;
  padding: 10px 18px 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff8400 0%, #ff5500 50%, #e63900 100%);
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(255, 85, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
}

.forumax-sale-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.forumax-sale-btn:hover::before {
  left: 150%;
}

.forumax-sale-btn:hover,
.forumax-sale-btn:focus {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #ff941a 0%, #ff6600 50%, #f04200 100%);
  box-shadow: 0 6px 24px rgba(255, 85, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  text-decoration: none !important;
}

.forumax-btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex: 0 0 24px;
}

.forumax-btn-icon svg {
  width: 16px;
  height: 16px;
}

/* =========================================
   Dismiss / Close Button
========================================= */

.forumax-close {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: 14px;
  width: 28px;
  height: 28px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(18, 12, 38, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8b4fe;
  transition: all 0.18s ease;
}

.forumax-close:hover,
.forumax-close:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-50%) rotate(90deg);
  border-color: rgba(255, 255, 255, 0.3);
}

.forumax-close svg {
  width: 12px;
  height: 12px;
}

/* =========================================
   Responsive Design
========================================= */

@media (max-width: 1240px) {
  .forumax-halloween-scenery {
    width: 200px;
    opacity: 0.55;
  }
  .forumax-sale-inner {
    padding-right: 48px;
    gap: 14px;
  }
  .forumax-headline {
    font-size: 14px;
  }
  .forumax-headline span.spooky-font {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .forumax-halloween-scenery {
    display: none;
  }
  .forumax-pricing-note {
    display: none;
  }
  .forumax-spiderweb {
    display: none;
  }
  .forumax-time strong {
    font-size: 17px;
  }
  .forumax-time span {
    font-size: 8px;
  }
  .forumax-sale-inner {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .forumax-sale-bar {
    min-height: auto;
  }
  .forumax-sale-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 38px 12px 14px;
    gap: 10px;
  }
  .forumax-offer-group {
    order: 1;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .forumax-message-block {
    align-items: center;
  }
  .forumax-countdown-area {
    order: 2;
    padding: 5px 12px;
  }
  .forumax-cta-wrapper {
    order: 3;
  }
  .forumax-sale-btn,
  .forumax-sale-btn:link,
  .forumax-sale-btn:visited {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 12px;
    gap: 8px;
  }
  .forumax-btn-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .forumax-btn-icon svg {
    width: 13px;
    height: 13px;
  }
  .forumax-close {
    top: 14px;
    transform: none;
  }
  .forumax-close:hover,
  .forumax-close:focus {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .forumax-mascot-sign {
    transform: scale(0.92);
  }
  .forumax-headline {
    font-size: 12px;
  }
  .forumax-headline span.spooky-font {
    font-size: 14px;
  }
  .forumax-tagline {
    font-size: 10px;
  }
  .forumax-time {
    padding: 0 6px;
  }
  .forumax-time strong {
    font-size: 15px;
  }
}
