/* natale.css */
:root {
  --christmas-red: #c41e3a;
  --christmas-green: #165b33;
  --christmas-gold: #ffd700;
  --snow-white: #f8f9fa;
  --dark-pine: #0a2615;
}

/* Base Style */
body {
  padding-top: 70px;
}

/* Navbar Base */
.christmas-theme .navbar {
  background: linear-gradient(to right, #0f4025, var(--christmas-green) 50%, #0f4025) !important;
  border-bottom: 2px solid var(--christmas-gold);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Decorative Elements */
.christmas-theme .navbar::before {
  content: '🎄';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  opacity: 0.7;
  z-index: 1029;
}

.christmas-theme .navbar::after {
  content: '🎁';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0.7;
  z-index: 1029;
}

/* Navbar Brand */
.christmas-theme .navbar-brand {
  position: relative;
  z-index: 1029 !important;
}

.christmas-theme .navbar-brand::after {
  content: '⭐';
  position: absolute;
  top: -10px;
  right: -15px;
  font-size: 14px;
  animation: twinkle 1.5s infinite;
}

/* Navigation Links - Updated with new hover effects */
.christmas-theme .navbar .nav-link {
  color: var(--snow-white) !important;
  transition: color 0.3s ease;
  position: relative;
  z-index: 9999;
}

/* Nuovo effetto hover per i link della navbar nel tema natalizio */
.christmas-theme .nav-item.dropdown .nav-link.dropdown-toggle {
  position: relative;
  transition: background-color 0.3s ease;
  border-radius: 0.5rem;
}

.christmas-theme .nav-item.dropdown .nav-link.dropdown-toggle::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--christmas-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.christmas-theme .nav-item.dropdown:hover .nav-link.dropdown-toggle::before {
  width: 80%;
}

.christmas-theme .nav-item.dropdown:hover .dropdown-menu,
.christmas-theme .nav-item.dropdown.show .dropdown-menu {
  display: block !important;
}

.christmas-theme .nav-item.dropdown:hover .dropdown-toggle,
.christmas-theme .nav-item.dropdown.show .dropdown-toggle {
  background-color: rgba(162, 6, 9, 0.754);
}

/* Dropdown Menus */
.christmas-theme .nav-item.dropdown {
  position: relative !important;
}

.christmas-theme .nav-item.dropdown:hover .dropdown-menu,
.christmas-theme .nav-item.dropdown.show .dropdown-menu {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.christmas-theme .dropdown-menu {
  background-color: #0f4025; /* Verde scuro natalizio */
  border: 1px solid var(--christmas-gold);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  min-width: 220px;
  padding: 0.5rem;
  animation: dropdownFade 0.2s ease-in-out;
  z-index: 9999 !important;
}

/* Animazione fade per dropdown */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.christmas-theme .dropdown-menu:hover,
.christmas-theme .dropdown-menu:focus-within {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.christmas-theme .dropdown-menu.show {
  display: block;
}

.christmas-theme .dropdown-item {
  color: var(--snow-white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.christmas-theme .dropdown-item:hover {
  background-color: var(--christmas-red);
  color: var(--snow-white);
  transform: translateX(5px);
}

/* Scrollbar Style */
.christmas-theme .dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.christmas-theme .dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.christmas-theme .dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--christmas-green);
  border-radius: 4px;
}

.christmas-theme .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--dark-pine);
}

/* Grid Dropdown */
.christmas-theme .dropdown-menu.dropdown-grid {
  display: none;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 1rem;
  width: auto;
  max-width: none;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.christmas-theme .nav-item.dropdown:hover .dropdown-menu.dropdown-grid,
.christmas-theme .nav-item.dropdown.show .dropdown-menu.dropdown-grid {
  display: grid !important;
}

.christmas-theme .dropdown-column {
  display: flex;
  flex-direction: column;
}

.christmas-theme .vr-divider {
  width: 1px;
  background-color: var(--christmas-gold);
  margin: 0 auto;
}

/* Profile Container */
.christmas-theme .profile-container:hover .dropdown-menu,
.christmas-theme .profile-container:focus .dropdown-menu {
  display: block !important;
}

.christmas-theme .profile-pic-navbar {
  border: 2px solid var(--christmas-gold);
}

.christmas-theme .profile-pic-large {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 5px;
}

/* Search Elements */
.christmas-theme #search-results-dropdown {
  margin-top: 40px;
  position: absolute;
  width: 100%;
  z-index: 9999;
}

.christmas-theme #search-results-dropdown .dropdown-menu {
  background-color: #2c5d9f;
  width: 390px;
  max-height: auto;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 5px;
  margin-top: 2px;
}

/* Search Result Items */
.christmas-theme .lisearch {
  border-bottom: 2px solid #809dc5;
  list-style-type: none;
  margin-bottom: 6px;
  margin-left: -20px;
}

.christmas-theme .lisearch:last-of-type {
  border: none;
}

.christmas-theme .lisearch:hover {
  cursor: pointer;
  border-radius: 10px;
  opacity: 1;
  background: #2c8dc3;
  color: #c9c9c9;
}

.christmas-theme .lisearch a {
  overflow-wrap: break-word;
  color: white;
  padding: 3px;
  margin: 2px;
  text-decoration: none;
  font-size: 14px;
}

.christmas-theme .lisearch:hover a {
  color: #e7e7e7;
}

/* Search Button and Icons */
.christmas-theme .btn-outline-light {
  background-color: #b51f23;
  color: #fff;
  border-color: var(--christmas-gold);
}

.christmas-theme .btn-outline-light:hover {
  background-color: var(--christmas-gold);
  color: var(--dark-pine);
}

.christmas-theme #openModalButton {
  background-color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  border: 4px solid #6a8dbb;
}

.christmas-theme .fas.fa-search-plus {
  color: #164a95;
}

/* Dropdown Icons and Text */
.christmas-theme .dropdown-icon {
  width: 20px;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  color: var(--snow-white); /* Icone bianche */
  margin-right: 8px;
}

.christmas-theme .dropdown-text {
  margin-left: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* Footer */
.christmas-theme .footer {
  background: linear-gradient(to right, #0f4025, var(--christmas-green) 50%, #0f4025) !important;
  border-top: 2px solid var(--christmas-gold);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1029;
}

/* Snowfall Effect */
.christmas-theme .snowfall {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.christmas-theme .snowflake {
  position: absolute;
  color: var(--snow-white);
  font-size: 14px;
  opacity: 0.7;
  animation: snowfall linear infinite;
}

/* Animations */
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes snowfall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

/* More Results Message */
.christmas-theme .more-results-message {
  font-size: 0.8rem;
  color: #d3d3d3;
  margin-top: 10px;
}

.christmas-theme .more-results-message a {
  color: #b5b5b5;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .christmas-theme .navbar::before,
  .christmas-theme .navbar::after {
    display: none;
  }
}

/* Snow accumulation zone above footer */
.christmas-theme .snow-accumulation {
  position: fixed;
  bottom: 40px; /* Altezza del footer + un po' di spazio */
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  z-index: 1028;
  overflow: hidden;
}

.christmas-theme .accumulated-snow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 40%,
    rgba(255, 255, 255, 0.9) 80%,
    rgba(255, 255, 255, 0.7) 100%
  );
  filter: blur(1px);
}

/* Modify snowfall animation to settle on the accumulation zone */
.christmas-theme .snowflake {
  position: absolute;
  color: var(--snow-white);
  font-size: 14px;
  opacity: 0.7;
  animation: snowfall linear forwards;
  animation-duration: var(--fall-duration);
}

@keyframes snowfall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh - 60px)) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

.christmas-theme .bg-image {
  transition: background-image 1s ease-in-out;
}

.christmas-greeting {
  position: relative;
  z-index: 1;
}

.christmas-message {
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
  opacity: 1;
}

@media (max-width: 768px) {
  .christmas-message {
    font-size: 1.8rem;
  }
}
/* Menu profilo - Tema Natalizio NEW */
.christmas-theme .dropdown-menu.profile-grid {
  display: none;
  grid-template-columns: auto 1px auto !important; /* Forza il layout a tre colonne */
  gap: 0.5rem;
  padding: 1rem;
  width: 490px !important; /* Forza la larghezza corretta */
  background-color: #0f4025;
  border: 1px solid var(--christmas-gold);
  border-radius: 8px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
  margin-top: 0.5rem;
  animation: dropdownFade 0.2s ease-in-out;
  z-index: 9999;
}
.christmas-theme .nav-item.dropdown:hover .dropdown-menu.profile-grid {
  display: grid !important;
}

/* Struttura colonne NEW */
.christmas-theme .profile-column {
  width: 200px;
}

.christmas-theme .features-column {
  width: 220px;
}

.christmas-theme .profile-column,
.christmas-theme .features-column {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Profilo immagine e info NEW */
.christmas-theme .profile-pic-large {
  width: 64px;
  height: 64px;
  border-radius: 5px;
  object-fit: cover;
  border: 2px solid var(--christmas-gold);
}

/* Separatore verticale NEW */
.christmas-theme .vr-divider {
  width: 1px;
  background: var(--christmas-gold) !important;
  margin: 0;
  align-self: stretch;
}

/* Separatore orizzontale */
.christmas-theme .dropdown-divider {
  height: 1px;
  background: var(--christmas-gold);
  margin: 0.5rem 0;
  border: none;
}

/* Responsive NEW */
@media (max-width: 768px) {
  .christmas-theme .dropdown-menu.profile-grid {
    width: 280px;
    grid-template-columns: 1fr;
  }

  .christmas-theme .vr-divider {
    display: none;
  }

  .christmas-theme .profile-column,
  .christmas-theme .features-column {
    width: 100%;
  }
}
