/* ==========================================================================
   BokitCord Thanksgiving Harvest Theme & Ambient Decor
   ========================================================================== */

:root {
  --tg-gold: #f59e0b;
  --tg-gold-glow: rgba(245, 158, 11, 0.4);
  --tg-amber: #d97706;
  --tg-orange: #ea580c;
  --tg-orange-glow: rgba(234, 88, 12, 0.4);
  --tg-red: #b91c1c;
  --tg-brown: #78350f;
  --tg-cream: #fef3c7;
  --tg-moss: #15803d;
}

/* --------------------------------------------------------------------------
   1. Corner Harvest Garlands & Interactive Turkey Mascot
   -------------------------------------------------------------------------- */
.thanksgiving-decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  overflow: hidden;
}

.thanksgiving-garland {
  position: absolute;
  top: 0;
  width: 160px;
  height: 120px;
  opacity: 0.88;
  filter: drop-shadow(0 2px 8px rgba(120, 53, 15, 0.35));
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.thanksgiving-garland-left {
  left: 0;
}

.thanksgiving-garland-right {
  right: 0;
  transform: scaleX(-1);
}

/* Interactive Dangling / Peeking Turkey Mascot */
.thanksgiving-turkey-wrap {
  position: absolute;
  top: 0;
  right: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: top center;
  animation: turkeySway 4s ease-in-out infinite alternate;
  z-index: 99999;
  user-select: none;
}

.thanksgiving-turkey-ribbon {
  width: 2px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(245, 158, 11, 0.85), rgba(234, 88, 12, 0.45));
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
  transition: height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thanksgiving-turkey {
  width: 44px;
  height: 44px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.thanksgiving-turkey-wrap:hover .thanksgiving-turkey {
  transform: scale(1.18) rotate(6deg);
}

.thanksgiving-turkey-wrap:hover .thanksgiving-turkey-ribbon {
  height: 64px;
}

.thanksgiving-turkey-wrap.celebrating .thanksgiving-turkey {
  animation: turkeyFlap 0.8s ease-in-out;
}

@keyframes turkeySway {
  0% { transform: rotate(-5deg); }
  50% { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}

@keyframes turkeyFlap {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.3) rotate(-12deg) translateY(-8px); }
  50% { transform: scale(1.25) rotate(10deg) translateY(-5px); }
  75% { transform: scale(1.15) rotate(-6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* --------------------------------------------------------------------------
   2. Navbar Brand Turkey Mascot & Festive Accents
   -------------------------------------------------------------------------- */
.thanksgiving-navbar-turkey {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.55));
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.thanksgiving-navbar-turkey:hover {
  transform: scale(1.2) rotate(8deg);
}

/* Navbar Thanksgiving Ambient Accents */
body.thanksgiving-theme #global-top-navbar {
  border-bottom: 2px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.12), 0 1px 0 rgba(234, 88, 12, 0.25) !important;
  background: linear-gradient(180deg, rgba(28, 18, 12, 0.94) 0%, rgba(16, 18, 22, 0.92) 100%) !important;
}

body.thanksgiving-theme .brand-spark {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.55) !important;
}

body.thanksgiving-theme .navbar-status-pill {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

body.thanksgiving-theme .status-pulse-dot {
  background: #f59e0b !important;
  box-shadow: 0 0 8px #f59e0b !important;
}

body.thanksgiving-theme .navbar-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(234, 88, 12, 0.24) 100%) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.28) !important;
  color: #fff !important;
}

body.thanksgiving-theme .navbar-tab:hover:not(.active) {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.22) !important;
  color: #fef3c7 !important;
}

/* --------------------------------------------------------------------------
   3. Navbar Thanksgiving Toggle Button
   -------------------------------------------------------------------------- */
.btn-thanksgiving-toggle {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(234, 88, 12, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #fef3c7;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
  flex-shrink: 0;
  outline: none;
  user-select: none;
}

.btn-thanksgiving-toggle:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(234, 88, 12, 0.32));
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-thanksgiving-toggle.disabled {
  opacity: 0.75;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  box-shadow: none;
}

.btn-thanksgiving-toggle.disabled:hover {
  opacity: 1;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. Auth / Login Screen Thanksgiving Harvest Accents
   -------------------------------------------------------------------------- */
body.thanksgiving-theme .auth-card {
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.18) !important;
  background: rgba(24, 16, 12, 0.9) !important;
}

body.thanksgiving-theme .auth-glow-1 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%) !important;
}

body.thanksgiving-theme .auth-glow-2 {
  background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, transparent 70%) !important;
}

body.thanksgiving-theme .auth-logo-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.55) !important;
}

.thanksgiving-edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.42);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #fef3c7;
  margin-top: 8px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  user-select: none;
}

.thanksgiving-edition-badge:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(234, 88, 12, 0.32));
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

.thanksgiving-edition-badge.disabled {
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  box-shadow: none;
}

.thanksgiving-edition-badge.disabled:hover {
  opacity: 1;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Floating Ambient Autumn Leaves
   -------------------------------------------------------------------------- */
.thanksgiving-falling-leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0.65;
  animation: floatAutumnLeaf 14s linear infinite;
  z-index: 1;
}

.thanksgiving-falling-leaf:nth-child(1) {
  left: 8%;
  animation-duration: 16s;
  animation-delay: 0s;
}

.thanksgiving-falling-leaf:nth-child(2) {
  left: 28%;
  animation-duration: 20s;
  animation-delay: 3s;
}

.thanksgiving-falling-leaf:nth-child(3) {
  left: 55%;
  animation-duration: 18s;
  animation-delay: 6s;
}

.thanksgiving-falling-leaf:nth-child(4) {
  left: 82%;
  animation-duration: 22s;
  animation-delay: 1.5s;
}

@keyframes floatAutumnLeaf {
  0% {
    top: -50px;
    transform: translateX(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  50% {
    transform: translateX(40px) rotate(160deg) scale(0.95);
  }
  85% {
    opacity: 0.7;
  }
  100% {
    top: 105%;
    transform: translateX(-30px) rotate(340deg) scale(0.75);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   6. Harvest Burst Confetti Particles on Click
   -------------------------------------------------------------------------- */
.thanksgiving-confetti-particle {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  animation: fallHarvestParticle 2.6s ease-out forwards;
  font-size: 22px;
  user-select: none;
}

@keyframes fallHarvestParticle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tg-x, 30px), var(--tg-y, 320px)) scale(0.4) rotate(var(--tg-rot, 360deg));
  }
}
