/* ===== FOOTER (to be used as module on all pages) ===== */

.footer {
  background-color: #121212;
  padding: 20px;
  border-top: 1px solid #414141;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-left-group {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: normal;
  background-color: black;
  color: #818181;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px 5px;
  margin: 0 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.footer-left-link {
  color: #818181;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px 10px;
  margin: 0 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .footer-left-link:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
    color: #a3a3a3;
  }
}

.footer-right { 
  display: flex; 
}

.footer-socials-list.hidden { 
  display: none; 
}

.footer-right-group {
  display: flex;
  position: relative;
  margin: 0 4px;
  flex-wrap: nowrap;
  gap: 5px;
  bottom: 100%;
  left: 0;
  background-color: black;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px;
  list-style: none;
  align-items: center;
}

.footer-socials-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-logo-icon {
  width: 20px;
  height: 20px;
  color: var(--icon-color);
  fill: var(--icon-color);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-logo-icon-full {
  display: block;
}

.footer-logo-icon-compact {
  display: none;
}

.footer-logo-icon-mini {
  display: none;
}

@media (max-width: 550px) {
  .footer-logo-icon-full {
    display: none;
  }
  .footer-logo-icon-compact {
    display: block;
  }
  .footer-logo-icon-mini {
    display: none;
  }
}

@media (max-width: 350px) {
  .footer-logo-icon-full {
    display: none;
  }
  .footer-logo-icon-compact {
    display: none;
  }
  .footer-logo-icon-mini {
    display: block;
  }
}

@media (hover: hover) {
  .footer-socials-button:hover .footer-logo-icon {
    opacity: 0.75;
  }
}

.footer-socials-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  left: 0;
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px;
  list-style: none;
  align-items: center;
  margin: 0;
  z-index: 100;
}

@media (hover: hover) and (pointer: fine) {
  .footer-socials-list { display: flex !important; }
  .footer-socials-list.hidden { display: flex !important; }
  .footer-right-group > button {
    pointer-events: none;
    cursor: default;
  }
}

.footer-socials-list a.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  width: 17px;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 3px;
}

.footer-socials-list a.footer-social svg {
  width: 100%;
  height: 100%;
  color: var(--icon-color);
  fill: var(--icon-color);
  transform: scale(var(--icon-scale));
}

@media (hover: hover) {
  a.footer-social:hover { opacity: 1; }
}

@media (max-width: 413px) {
  .footer-content { 
    flex-direction: column; 
    text-align: center; 
  }
  .footer-right { justify-content: center; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #0088CC;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

