/* global.css */

/* ===============================
   FUENTES
   =============================== */

@font-face {
  font-family: "Inka-Bod";
  src: url("../assets/fonts/Inka%20Bod.ttf") format("truetype");
}

@font-face {
  font-family: "CooperBlack-Std";
  src: url("../assets/fonts/CooperBlack-Std.otf") format("opentype");
  font-weight: 900;
}

/* ===============================
   RESET
   =============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

/* ===============================
   BASE
   =============================== */

body {
  background-color: #000;
  color: #fff;
  font-family: "Inconsolata", monospace;
}

/* ===============================
   HEADER
   =============================== */

header {
  position: relative;
  padding: 15px 4% 15px 1%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

#header_right {
  display: flex;
}

.nav_links {
  display: flex;
  gap: 50px;
}

.nav_links a {
  color: rgb(238, 23, 23);
  font-size: 15px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.nav_links a:hover,
.nav_links a.active {
  border-bottom-color: #fff;
}

.menu-toggle {
  display: none; /* desktop */
  background: none;
  border: none;
  cursor: pointer;

  width: 32px;
  height: 24px;

  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: rgb(232, 73, 0);
  border-radius: 2px;
}


/* ===============================
   BOTÓN ADMIN (GLOBAL)
   =============================== */

.admin-auth-btn {
  margin-left: 20px;

  background: transparent;
  border: 1px solid rgba(232, 73, 0, 0.6);
  border-radius: 6px;

  padding: 4px 10px;

  font-family: "Inconsolata", monospace;
  font-size: 12px;
  letter-spacing: 0.5px;

  color: rgb(232, 73, 0);
  cursor: pointer;

  opacity: 0.7;

  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.admin-auth-btn:hover {
  opacity: 1;
  background-color: rgb(232, 73, 0);
  color: #000;
  border-color: rgb(232, 73, 0);
}

/* Estado admin logueado (solo visual) */
.admin-auth-btn.admin-active {
  opacity: 1;
  color: rgb(232, 162, 124);
  border-color: rgb(232, 162, 124);
}

.admin-auth-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

/* ===============================
   MENÚ ADMIN (GLOBAL)
   =============================== */

.admin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  width: max-content;       /* 🔑 clave */
  min-width: unset;         /* 🔑 quitamos ancho forzado */

  background-color: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(232, 73, 0, 0.4);
  border-radius: 6px;

  padding: 6px 6px;         /* más compacto */

  display: flex;
  flex-direction: column;
  gap: 2px;

  z-index: 1000;
}


/* oculto por defecto (JS controla esto) */
.admin-menu[hidden] {
  display: none;
}

.admin-menu button {
  background: transparent;
  border: none;

  padding: 6px 12px;
  text-align: left;
  white-space: nowrap;

  font-family: "Inconsolata", monospace;
  font-size: 12px;
  letter-spacing: 0.4px;

  color: rgb(232, 162, 124);
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.admin-menu button:hover {
  background-color: rgba(232, 73, 0, 0.15);
  color: #fff;
}

/* ===============================
   TOAST ADMIN
   =============================== */

.admin-toast {
  position: absolute;
  top: calc(100% + 6px); /* debajo del botón */
  right: 0;

  font-size: 12px;
  font-family: "Inconsolata", monospace;

  color: rgb(232, 162, 124);

  opacity: 0;
  transform: translateY(-4px);

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* visible */
.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   TOGGLE MENÚ ADMIN
   =============================== */

.admin-auth-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-menu-toggle {
  background: none;
  border: 1px solid rgba(232, 73, 0, 0.6);
  border-radius: 6px;

  padding: 4px 8px;

  font-size: 14px;
  line-height: 1;

  color: rgb(232, 73, 0);
  cursor: pointer;
  opacity: 0.7;

  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

/* ===== Desktop hover ===== */
@media (hover: hover) {
  .admin-menu-toggle:hover {
    opacity: 1;
    background-color: rgb(232, 73, 0);
    color: #000;
  }
}

/* ===== Mobile tap ===== */
.admin-menu-toggle:active {
  background-color: rgb(232, 73, 0);
  color: #000;
}

/* estado oculto */
.admin-menu-toggle[hidden] {
  display: none;
}

.admin-menu-icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(48%) sepia(94%) saturate(2700%) hue-rotate(6deg);
}


/* ===============================
   HERO (BASE)
   =============================== */

.hero {
  font-family: "Inka-Bod", serif;
  text-align: center;
  margin: 30px auto 50px;
}

.hero h1 {
  color: rgb(232, 73, 0);
  font-size: 110px;
  letter-spacing: 4px;
  margin-bottom: 10px;
  text-shadow: 3px 0 1px rgba(0, 0, 0, 0.7);
}

/* ===============================
   FOOTER – GLOBAL
   =============================== */

.site-footer {
  margin-top: 80px;
  padding: 40px 20px 30px;

  text-align: center;

  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.9),
    rgba(0, 0, 0, 0.6)
  );
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-credits {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-credits strong {
  font-weight: 600;
  color: rgb(232, 162, 124);
}

/* separador*/
.footer-separator {
  width: 120px;
  height: 1px;
  margin: 0 auto;

  background: linear-gradient(
    to right,
    transparent,
    rgba(232, 73, 0, 0.6),
    transparent
  );
}

/* autor / landing */
.footer-author {
  font-size: 12px;
  opacity: 0.65;
}

.footer-author a {
  color: rgb(232, 73, 0);
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    text-shadow 0.2s ease;
}

.footer-author a:hover {
  opacity: 1;
  text-shadow: 0 0 6px rgba(232, 73, 0, 0.6);
}

/* ===============================
   LINKS EXTERNOS (tipografías)
   =============================== */

#tuviamusical {
  font-family: "CooperBlack-Std", Arial, sans-serif;
}

#radiospectro {
  font-family: "Big Shoulders", sans-serif;
}

#radiocultura {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: -1px;
}

/* ===============================
   UTILIDADES GLOBALES
   =============================== */

.hidden {
  display: none !important;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* ===========================
   HEADER / NAV
   =========================== */

@media (max-width: 600px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  #header_right {
    display: none;
  }

  #header_right.open {
    display: block;

    position: absolute;
    top: calc(100% - 12px);
    right: 4%;

    background-color: #000;
    border: 1px solid rgba(232, 73, 0, 0.4);
    border-radius: 8px;

    padding: 15px;
    z-index: 1000;
  }

  /* links en columna */
  .nav_links {
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
  }
}
