/* Premium Integrated Academica Spain Badge - Sidebar Glossy Version */
.sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100vh - 40px) !important;
  height: auto !important;
}

.academica-sidebar-footer {
  margin-top: auto;
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.academica-badge {
  background: rgba(42, 86, 74, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: fit-content;
}

/* The Glossy Shine Effect - Dynamic & Premium */
.academica-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 5s infinite linear;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

.academica-badge:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(42, 86, 74, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.academica-badge-text {
  font-size: 0.6rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.academica-badge-dot {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px rgba(255, 255, 255, 1); }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Hide in Mobile Bottom Nav context */
@media (max-width: 1024px) {
  .academica-sidebar-footer {
    display: none;
  }
}
