/* TRUJO VIDS — Global styles v2.0 */
/* Tokens: navy #0b1120, violet #a855f7, pink #ec4899 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b1120;
  --surface:     rgba(168, 85, 247, 0.06);
  --surface-2:   rgba(255, 255, 255, 0.04);
  --border:      rgba(168, 85, 247, 0.2);
  --border-h:    rgba(168, 85, 247, 0.5);
  --violet:      #a855f7;
  --pink:        #ec4899;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --radius-card: 20px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(168, 85, 247, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(236, 72, 153, 0.10) 0%, transparent 50%);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass card */
.glass {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.card {
  padding: 28px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.15);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.55);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border-h);
  color: var(--violet);
  text-decoration: none;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--violet); text-decoration: none; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.35s; }

/* Ad slot */
#ad-trujovids-1 {
  /* AdSense placeholder — descomentar y reemplazar con script real cuando esté aprobado */
  /* display: none; */
  margin: 48px auto;
  max-width: 728px;
  min-height: 90px;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── Estado del servidor Minecraft (en vivo) ── */
.mc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
}
.mc-status .mc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  flex: none;
}
.mc-status.is-online {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.mc-status.is-online .mc-dot {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: mc-pulse 1.8s infinite;
}
.mc-status.is-offline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.mc-status.is-offline .mc-dot { background: #ef4444; }
@keyframes mc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
