/* ================================================================
   SHARED.CSS — Loading screen, particles, footer, patch banner
   Incluir en todas las páginas
   ================================================================ */

/* ── LOADING SCREEN ─────────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050810;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .4s ease, visibility .4s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-chains {
  width: 80px;
  height: 80px;
  position: relative;
}
.loading-chain-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #C89B3C;
  animation: chain-spin 1.2s linear infinite;
}
.loading-chain-ring:nth-child(2) {
  inset: 10px;
  border-top-color: #4FC3F7;
  animation-duration: .9s;
  animation-direction: reverse;
}
.loading-chain-ring:nth-child(3) {
  inset: 20px;
  border-top-color: #9146FF;
  animation-duration: 1.5s;
}
@keyframes chain-spin { to { transform: rotate(360deg); } }

.loading-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: .2em;
  color: #C89B3C;
  text-shadow: 0 0 20px rgba(200,155,60,.4);
  animation: loading-pulse 1.2s ease-in-out infinite;
}
.loading-logo span { color: #4FC3F7; }
@keyframes loading-pulse {
  0%,100% { opacity: .7; }
  50%      { opacity: 1; }
}

/* ── PATCH BANNER ────────────────────────────────────────────── */
#patch-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: min(600px, calc(100vw - 32px));
  animation: banner-slide-up .35s ease;
}
@keyframes banner-slide-up {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.patch-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(5,8,16,.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(250,204,21,.35);
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  box-shadow: 0 0 20px rgba(250,204,21,.15);
}
.patch-banner-icon {
  font-size: 16px;
  color: #FACC15;
  flex-shrink: 0;
}
.patch-banner-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: #D4C4A0;
  flex: 1;
  line-height: 1.4;
}
.patch-banner-text strong { color: #FACC15; }
.patch-banner-close {
  background: none; border: none; color: #4A5878;
  cursor: pointer; font-size: 14px; padding: 2px 6px;
  flex-shrink: 0;
  transition: color .15s;
}
.patch-banner-close:hover { color: #EF5350; }

/* ── SITE FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(200,155,60,.18);
  background: linear-gradient(180deg, rgba(10,14,26,.9) 0%, #050810 100%);
  position: relative; z-index: 1;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,.4) 30%, rgba(79,195,247,.2) 70%, transparent);
}
.site-footer-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 24px 24px 18px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Brand row */
.footer-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.footer-logo-img { height: 22px; width: auto; }
.footer-logo-text {
  font-family: 'Cinzel', serif; font-size: 15px; font-weight: 900;
  color: var(--text); letter-spacing: .1em;
}
.footer-logo-text span { color: var(--gold); }
.footer-tagline {
  font-size: 11px; color: var(--muted); font-style: italic;
  margin: 0; border-left: 1px solid rgba(200,155,60,.2); padding-left: 16px;
}

/* Links row */
.footer-links-row {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.footer-link {
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .07em; color: var(--muted); text-decoration: none;
  padding: 3px 8px; transition: color .15s;
}
.footer-link:hover         { color: var(--gold); }
.footer-link-twitch:hover  { color: #9146FF; }
.footer-link-yt:hover      { color: #FF5252; }
.footer-link-x:hover       { color: #8899AA; }
.footer-sep { color: rgba(200,155,60,.2); font-size: 14px; padding: 0 6px; user-select: none; }

/* Bottom */
.footer-bottom {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  flex-direction: column; text-align: center;
  gap: 4px; font-family: 'Rajdhani', sans-serif;
  font-size: 10px; color: rgba(74,88,120,.6); letter-spacing: .05em;
}
.footer-bottom span:last-child {
  font-size: 9px; opacity: .6;
}
.footer-patch-badge { font-size: 10px; color: var(--gold); opacity: .55; }

@media(max-width:640px) {
  .footer-tagline { display: none; }
  .footer-links-row { gap: 2px; }
  .footer-link { font-size: 10px; padding: 2px 5px; }
}

/* ── SHARED MOBILE EXTRAS ──────────────────────────────────────── */
@media(max-width:640px) {
  /* Footer links — 2 column wrap */
  .footer-links-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
  }
  .footer-sep { display: none; }
  /* Footer bottom — stack */
  .footer-bottom {
    text-align: center;
    gap: 6px;
  }
  .footer-bottom span:last-child {
    font-size: 8px;
    line-height: 1.5;
  }
  /* Site footer padding */
  .site-footer { padding: 24px 16px 20px; }
  .footer-brand { align-items: center; text-align: center; }
}
