/* ==========================================================================
   NexusCast WHMCS theme: the November layer
   The website's Thanksgiving look, on top of custom.css: a warm evening sky, falling leaves,
   rust and orange in place of blue, and the page itself as a sheet of paper so every stock
   WHMCS screen stays dark-on-light and readable. header.tpl loads this file in November only.
   ========================================================================== */

body.nc-seasonal {
  /* Rust takes over from Globe Blue wherever the theme uses its primary colour. */
  --nc-primary:        #c2410c;
  --nc-primary-dark:   #9a3412;
  --nc-primary-deeper: #7c2d12;
  --nc-primary-light:  #ffedd5;

  background-color: #0b1020;
  background-image:
    radial-gradient(ellipse 70% 46% at 78% 4%, rgba(249, 115, 22, .2), transparent 70%),
    radial-gradient(ellipse 60% 40% at 8% 0%, rgba(37, 99, 235, .22), transparent 72%),
    radial-gradient(ellipse 90% 40% at 50% 104%, rgba(194, 65, 12, .2), transparent 70%),
    linear-gradient(160deg, #0b1020 0%, #121528 50%, #150f17 100%);
  background-attachment: fixed;
}

/* ---------- Falling leaves, behind everything ---------- */
.nc-leaves {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.nc-leaf {
  position: absolute;
  top: -12vh;
  animation: nc-fall linear infinite;
  will-change: transform;
}
.nc-leaf svg {
  display: block;
  animation: nc-sway ease-in-out infinite alternate;
}
@keyframes nc-fall {
  to { transform: translate3d(0, 126vh, 0); }
}
@keyframes nc-sway {
  from { transform: translateX(-1.5rem) rotate(-50deg); }
  to { transform: translateX(1.5rem) rotate(70deg); }
}
body.nc-seasonal #home-banner,
body.nc-seasonal .home-shortcuts,
body.nc-seasonal section#main-body,
body.nc-seasonal .nc-whmcs-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header: evening glass ---------- */
body.nc-seasonal .nc-unified-header {
  background: rgba(11, 16, 32, .8);
  border-bottom-color: rgba(255, 255, 255, .09);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
}
body.nc-seasonal .nc-nav-link,
body.nc-seasonal .nc-header-link {
  color: #c9c5bd !important;
}
body.nc-seasonal .nc-nav-link:hover,
body.nc-seasonal .nc-nav-item.active .nc-nav-link {
  color: #fdba74 !important;
  background-color: rgba(249, 115, 22, .14);
}
body.nc-seasonal .nc-header-link:hover {
  color: #fdba74 !important;
}
body.nc-seasonal .nc-nav-toggle span {
  background: #c9c5bd;
}
body.nc-seasonal .nc-header-btn-account,
body.nc-seasonal .nc-header-btn-account:hover {
  background: #f97316;
  border-color: #f97316;
  color: #0f172a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -8px rgba(249, 115, 22, .6);
}
body.nc-seasonal .nc-header-btn-account:hover {
  background: #fb923c;
  border-color: #fb923c;
}
body.nc-seasonal .nc-header-btn-logout {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #f1ede6 !important;
}
@media (max-width: 991px) {
  body.nc-seasonal .nc-nav-list {
    background: #141922;
    border-top-color: rgba(255, 255, 255, .09);
  }
  body.nc-seasonal .nc-dropdown {
    background: #1c2330;
  }
  body.nc-seasonal .nc-dropdown li a {
    color: #c9c5bd !important;
  }
}

/* ---------- Home banner: the turkey and a thank-you ---------- */
body.nc-seasonal #home-banner {
  background: transparent;
  padding: 40px 0 48px;
}
.nc-turkey {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 auto 8px;
  overflow: visible;
}
.nc-feather {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: nc-eq 1.6s ease-in-out infinite alternate;
}
@keyframes nc-eq {
  from { transform: scaleY(.82); }
  to { transform: scaleY(1); }
}
.nc-bob {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: nc-bob .8s ease-in-out infinite alternate;
}
@keyframes nc-bob {
  to { transform: translateY(2px) rotate(-2deg); }
}
.nc-thanks {
  margin: 0 0 22px;
  color: #fdba74;
  font-family: var(--nc-font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
body.nc-seasonal #home-banner h2 {
  color: #f1ede6;
}

/* ---------- Home shortcuts, on the evening sky ---------- */
body.nc-seasonal .home-shortcuts {
  background-color: rgba(20, 25, 34, .72);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
body.nc-seasonal .home-shortcuts .lead {
  color: #f1ede6;
}
body.nc-seasonal .home-shortcuts ul li {
  border-color: rgba(255, 255, 255, .1) !important;
}
body.nc-seasonal .home-shortcuts ul li:hover {
  background-color: rgba(249, 115, 22, .1);
}
body.nc-seasonal .home-shortcuts ul li a {
  color: #e8e4dc;
}
body.nc-seasonal .home-shortcuts ul li a:hover,
body.nc-seasonal .home-shortcuts ul li a i {
  color: #fdba74;
}

/* ---------- The page: a warm sheet of paper on the sky ----------
   Everything WHMCS draws stays dark-on-light inside it. */
body.nc-seasonal section#main-body {
  padding: 36px 12px 64px;
}
body.nc-seasonal section#main-body > .container,
body.nc-seasonal section#main-body > .container-fluid {
  padding-top: 26px;
  padding-bottom: 34px;
  border-radius: 24px;
  background: linear-gradient(#fffdf8, #fdf8ee);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 26px 56px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .9);
}
@media (min-width: 768px) {
  body.nc-seasonal section#main-body > .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}
body.nc-seasonal .panel,
body.nc-seasonal .well,
body.nc-seasonal .announcement-single,
body.nc-seasonal #order-boxes .fields-container {
  box-shadow: 0 1px 2px rgba(74, 36, 9, .06), 0 10px 28px rgba(74, 36, 9, .08), 0 0 0 1px rgba(74, 36, 9, .08);
}
/* On the login page the card is the sheet, so the wrapper stays clear. */
body.nc-seasonal section#main-body > .container:has(> .row > .main-content > .logincontainer) {
  background: transparent;
  box-shadow: none;
}

/* ---------- Colour details that named blue outright ---------- */
body.nc-seasonal .btn-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -6px rgba(194, 65, 12, .55);
}
body.nc-seasonal .form-control:focus {
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .16);
}
body.nc-seasonal .btn-info:hover,
body.nc-seasonal .btn-info:focus {
  background-color: #fed7aa;
  border-color: #fed7aa;
}

/* ---------- Footer ---------- */
body.nc-seasonal .nc-whmcs-footer {
  background:
    radial-gradient(40% 80% at 100% 0%, rgba(249, 115, 22, .16), transparent 70%),
    rgba(8, 11, 22, .92);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
body.nc-seasonal .nc-footer-col ul li a:hover {
  color: #fdba74;
}

/* ---------- Phones and reduced motion ---------- */
@media (max-width: 640px) {
  .nc-leaf:nth-child(even) { display: none; }
  .nc-leaf svg { scale: .7; }
  .nc-turkey { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-leaves { display: none; }
  .nc-feather, .nc-bob { animation: none; }
}
