/* ==========================================================================
   Corporate Christmas Theme — Intranet Corporativa
   Nano Banana PNG Illustrations + Multi-Layer Falling Snow & Animations:
   - Burgundy-to-pine header with evergreen garland, twinkling lights, baubles & sleigh
   - Santa hats on INTRANET logo, Entrar/Avatar, Acesso rápido & Support Chat FAB
   - Icy blue-white background without tiled margin snowflake image
   - Waving Santa beside Feed de Conteúdos / Card 1, gifts ONLY on row 1 Cards 2-3
   - Peeking Santa on right edge of Últimas atualizações & sleigh atop Novembro 2026
   - Clean row 2+ cards, left sidebar base & calendar bottom
   ========================================================================== */

html,
body {
  overflow-x: clip;
}

/* 1. Soft Icy Blue-White Corporate Winter Background */
body {
  background-color: #e9f1fa !important;
  background-image:
    linear-gradient(180deg, #e4eef9 0%, #edf4fb 45%, #f4f8fd 100%) !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  background-size: 100% 100% !important;
  position: relative;
  min-height: 100vh;
}

/* Multi-layer Atmospheric Falling Snow */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -32px;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.snowflake--crystal {
  color: #ffffff;
  line-height: 1;
  text-shadow:
    0 1px 4px rgba(15, 23, 42, 0.22),
    0 0 8px rgba(147, 197, 253, 0.65);
}

.snowflake--dot {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(219, 234, 254, 0.55) 65%, transparent 100%);
  box-shadow: 0 0 6px rgba(147, 197, 253, 0.48);
}

.snowflake-drift-a {
  animation-name: snowfall-drift-a;
}

.snowflake-drift-b {
  animation-name: snowfall-drift-b;
}

@keyframes snowfall-drift-a {
  0% {
    transform: translate3d(0, -32px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--sway-x, 22px), 52vh, 0) rotate(160deg);
  }
  100% {
    transform: translate3d(calc(var(--sway-x, 22px) * -0.55), 106vh, 0) rotate(320deg);
  }
}

@keyframes snowfall-drift-b {
  0% {
    transform: translate3d(0, -32px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(calc(var(--sway-x, 22px) * -1), 52vh, 0) rotate(-150deg);
  }
  100% {
    transform: translate3d(calc(var(--sway-x, 22px) * 0.55), 106vh, 0) rotate(-300deg);
  }
}

/* 2. Left Sidebar — Frosted Icy-Blue Winter Background (Clean White Footer) */
#sidebarLeft {
  background-color: #dce9f5 !important;
  background-image: url("../images/christmas/sidebar-left-winter-bg.d501044e70f8.png") !important;
  background-repeat: no-repeat !important;
  background-position: left top !important;
  background-size: cover !important;
  border-right: 1px solid rgba(191, 211, 232, 0.85) !important;
  box-shadow: 2px 0 10px rgba(15, 23, 42, 0.04) !important;
}

#sidebarLeft > div:last-child {
  background: #ffffff !important;
}

/* 3. Christmas Red-to-Pine Header, Pine Garland, Twinkling Lights & Sleigh */
.christmas-site-header {
  background-color: #5b0e13 !important;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(251, 191, 36, 0.16) 0%, transparent 22%),
    radial-gradient(circle at 68% 18%, rgba(251, 191, 36, 0.14) 0%, transparent 24%),
    linear-gradient(90deg, #590d12 0%, #6d141a 24%, #3e1b14 45%, #143822 68%, #0a2415 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.christmas-site-header .text-slate-400 {
  color: #efe3cc !important;
}

.christmas-site-header .border-\[\#2c5282\] {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Clean Translucent Search Input inside Header */
.christmas-site-header input[name="q"] {
  background-color: rgba(8, 18, 12, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.christmas-site-header input[name="q"]::placeholder {
  color: rgba(239, 227, 204, 0.7) !important;
}

/* Secondary Links Bar inside Header (if rendered) */
.christmas-site-header > div.bg-white\/5 {
  background-color: rgba(8, 18, 12, 0.26) !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

.christmas-site-header > .w-full,
.christmas-site-header > div.bg-white\/5 {
  position: relative;
  z-index: 10;
}

/* Top Evergreen Pine Garland with Baubles & Snowflakes */
.christmas-garland-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background-image: url("../images/christmas/garland-lights.fbc02a9c9160.png");
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 22px;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

@media (min-width: 768px) {
  .christmas-garland-header {
    height: 24px;
    background-size: auto 24px;
  }
}

@media (max-width: 767px) {
  .christmas-site-header > .w-full {
    padding-top: 26px !important;
  }
}

/* Twinkling Golden Fairy-Light Overlay on Garland */
.christmas-garland-twinkle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.christmas-garland-twinkle span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbeb 0%, #fde047 45%, rgba(245, 158, 11, 0) 75%);
  box-shadow: 0 0 9px 2px rgba(253, 224, 71, 0.72);
  animation: fairy-twinkle 2.4s ease-in-out infinite;
}

.christmas-garland-twinkle span:nth-child(1) { left: 5%; top: 7px; animation-delay: 0s; }
.christmas-garland-twinkle span:nth-child(2) { left: 15%; top: 10px; animation-delay: 0.6s; }
.christmas-garland-twinkle span:nth-child(3) { left: 26%; top: 6px; animation-delay: 1.2s; }
.christmas-garland-twinkle span:nth-child(4) { left: 37%; top: 11px; animation-delay: 0.3s; }
.christmas-garland-twinkle span:nth-child(5) { left: 48%; top: 7px; animation-delay: 1.5s; }
.christmas-garland-twinkle span:nth-child(6) { left: 58%; top: 10px; animation-delay: 0.9s; }
.christmas-garland-twinkle span:nth-child(7) { left: 68%; top: 6px; animation-delay: 0.2s; }
.christmas-garland-twinkle span:nth-child(8) { left: 78%; top: 11px; animation-delay: 1.3s; }
.christmas-garland-twinkle span:nth-child(9) { left: 88%; top: 7px; animation-delay: 0.5s; }
.christmas-garland-twinkle span:nth-child(10) { left: 95%; top: 10px; animation-delay: 1.7s; }

@keyframes fairy-twinkle {
  0%, 100% {
    opacity: 0.95;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.7);
  }
}

/* Santa Hat Perched on "INTRANET" Logo */
.christmas-logo-hat::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -11px;
  width: 28px;
  height: 21px;
  background-image: url("../images/christmas/santa-hat-left.a5661a434725.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 65;
  transform: rotate(-14deg);
  transition: transform 0.25s ease;
}

.group:hover .christmas-logo-hat::before {
  transform: rotate(-20deg) scale(1.06);
}

/* Animated Flying Sleigh & Reindeer in Header */
.christmas-header-sleigh {
  position: relative;
  margin-top: 4px;
  margin-bottom: -14px;
  z-index: 45;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.christmas-header-sleigh-img {
  width: 220px;
  height: auto;
  animation: sleigh-fly 3.8s ease-in-out infinite;
}

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

/* 4. Executive Gold "Entrar" Button & Tailored Santa Hats */
.christmas-login-btn {
  background: linear-gradient(135deg, #d99b26 0%, #b47612 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid rgba(253, 230, 138, 0.7) !important;
  box-shadow: 0 3px 10px rgba(180, 118, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  border-radius: 9999px !important;
  padding: 0.48rem 1.3rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  transition: all 0.22s ease !important;
}

.christmas-login-btn:hover {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(180, 118, 18, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.christmas-login-btn::after {
  content: '';
  position: absolute;
  top: -13px;
  right: -9px;
  width: 34px;
  height: 25px;
  background-image: url("../images/christmas/santa-hat-right.e57c235cf5d6.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 65;
  transform: rotate(15deg);
  transition: transform 0.25s ease;
}

.christmas-login-btn:hover::after {
  transform: rotate(21deg) scale(1.06);
}

.christmas-avatar-hat::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -7px;
  width: 26px;
  height: 20px;
  background-image: url("../images/christmas/santa-hat-right.e57c235cf5d6.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 65;
  transform: rotate(15deg);
}

/* Tailored Santa Hat on Acesso Rápido Top-Left Wrapper */
.christmas-hat-acesso-rapido {
  position: absolute;
  top: -16px;
  left: -12px;
  width: 44px;
  height: 33px;
  background-image: url("../images/christmas/santa-hat-left.a5661a434725.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 30;
  pointer-events: none;
  transform: rotate(-16deg);
  transition: transform 0.25s ease;
}

.relative:hover > .christmas-hat-acesso-rapido {
  transform: rotate(-22deg);
}

/* Tailored Santa Hat on Floating Support Chat FAB */
.sc-fab-btn {
  position: relative !important;
  overflow: visible !important;
}

.sc-fab-btn::after {
  content: '';
  position: absolute;
  top: -15px;
  right: -6px;
  width: 42px;
  height: 31px;
  background-image: url("../images/christmas/santa-hat-right.e57c235cf5d6.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 10001;
  transform: rotate(16deg);
  transition: transform 0.25s ease;
}

.sc-fab-btn:hover::after {
  transform: rotate(22deg) scale(1.06);
}

/* Tilted Santa Hat on Login "Bem-vindo de volta" Heading */
.christmas-welcome-hat::before {
  content: '';
  position: absolute;
  top: -13px;
  left: -9px;
  width: 34px;
  height: 25px;
  background-image: url("../images/christmas/santa-hat-left.a5661a434725.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 20;
  transform-origin: 62% 88%;
  transform: rotate(-12deg);
}

/* 5. Event Slider visible above "Feed de Conteúdos" */

/* 6. "Feed de Conteúdos" Heading & Holly Accent */
.christmas-feed-header-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .christmas-feed-header-wrapper {
    margin-bottom: 3.75rem;
  }
}

.christmas-title-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.christmas-holly-badge {
  display: inline-block;
  width: 28px;
  height: 25px;
  flex-shrink: 0;
  background-image: url("../images/christmas/holly.4a440a62c521.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

.christmas-holly-mini {
  display: inline-block;
  width: 20px;
  height: 18px;
  margin-left: auto;
  background-image: url("../images/christmas/holly.4a440a62c521.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 7. Card-Contoured Snow Cap + Row-1 Waving Santa & Gift Clusters */
.christmas-snow-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 22px;
  background-image: url("../images/christmas/snow-cap.7289f1419589.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  z-index: 15;
  pointer-events: none;
}

/* Waving Santa Peeking Behind Card 1 Top-Right Edge */
.christmas-santa-card-peeking {
  position: absolute;
  top: -54px;
  right: 12px;
  width: 104px;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.14));
  animation: santa-peek-bob 3.2s ease-in-out infinite;
}

.christmas-santa-card-peeking img {
  width: 100%;
  height: auto;
}

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

/* Wrapped Gift Clusters Only on Top Edge of Row-1 Cards 2 & 3 */
.christmas-gifts-card {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.18));
}

.christmas-gifts-card img {
  width: 100%;
  height: auto;
}

.christmas-gifts-card-1 {
  top: -40px;
  left: 16px;
  width: 108px;
}

.christmas-gifts-card-2 {
  top: -35px;
  right: 16px;
  width: 108px;
}

.christmas-feed-card:hover .christmas-gifts-card {
  animation: gift-bounce 0.55s ease-in-out;
}

@keyframes gift-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-4px) rotate(-1.5deg); }
  75% { transform: translateY(-1px) rotate(1deg); }
}

/* Peeking Santa on Right Edge of "Últimas atualizações" */
.christmas-santa-side-peeking {
  position: absolute;
  top: -22px;
  right: -34px;
  width: 112px;
  z-index: 25;
  pointer-events: none;
  transform-origin: bottom right;
  filter: drop-shadow(-3px 4px 8px rgba(15, 23, 42, 0.18));
  animation: santa-side-sway 3.6s ease-in-out infinite;
}

.christmas-santa-side-peeking img {
  width: 100%;
  height: auto;
}

@keyframes santa-side-sway {
  0%, 100% {
    transform: translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateX(-3px) rotate(-2.5deg);
  }
}

/* Miniature Sleigh with Reindeer Perched on Snowy Top Border of Calendar */
.christmas-sidebar-sleigh {
  position: absolute;
  top: -34px;
  right: 8px;
  width: 146px;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.28));
  animation: sleigh-sidebar-float 3.8s ease-in-out infinite;
}

.christmas-sidebar-sleigh img {
  width: 100%;
  height: auto;
}

@keyframes sleigh-sidebar-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* White Sidebar Widgets — Subtle Icy Top Highlight */
.christmas-white-widget {
  box-shadow:
    inset 0 3px 0 0 #ffffff,
    inset 0 8px 14px -6px rgba(186, 214, 242, 0.32),
    0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

/* 8. 3-Column Desktop Grid & Refined Corporate Holiday Badges */
@media (min-width: 1280px) {
  #campaigns-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}

#campaigns-grid > a .card-badge-pill,
#campaigns-grid > a span.bg-blue-700 {
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22) !important;
}

/* Alternating Deep Christmas Red & Forest Pine Green Badges */
#campaigns-grid > a:nth-child(6n+1) .card-badge-pill,
#campaigns-grid > a:nth-child(6n+4) .card-badge-pill,
#campaigns-grid > a:nth-child(6n) .card-badge-pill {
  background-color: #8b1a1a !important;
}

#campaigns-grid > a:nth-child(6n+2) .card-badge-pill,
#campaigns-grid > a:nth-child(6n+3) .card-badge-pill,
#campaigns-grid > a:nth-child(6n+5) .card-badge-pill {
  background-color: #164e33 !important;
}

/* Sidebar "Últimas atualizações" bullet & crisp legible label */
aside .rounded-full.bg-blue-500,
aside span.w-2.h-2.bg-blue-500 {
  background-color: #8b1a1a !important;
}

aside span.text-blue-500,
aside span.text-blue-700 {
  color: #8b1a1a !important;
  background-color: transparent !important;
}

/* 9. Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .snow-container,
  .christmas-garland-twinkle {
    display: none !important;
  }
  .christmas-header-sleigh-img,
  .christmas-santa-card-peeking,
  .christmas-santa-side-peeking,
  .christmas-sidebar-sleigh,
  .christmas-gifts-card {
    animation: none !important;
  }
}
