/**
 * eBoss Studio Radio - Broadcast Dark Mode Theme Stylesheet
 * ebossradio.com - EXTASSIS NETwork
 */

:root {
  --bg-broadcast: #070a0f;
  --bg-rack: #0e131d;
  --bg-rack-elevated: #131b29;
  --border-rack: #1e293b;
  --border-highlight: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;
  --accent-amber: #f59e0b;
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-broadcast);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-broadcast);
  overflow-x: hidden;
}

/* Tipografía y Enlaces */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Contenedor central responsivo */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Utilidades Tailwind principales */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.15; }
.text-6xl { font-size: 3.75rem; line-height: 1.1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Bordes y Esquinas */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

/* Colores Temáticos Broadcast */
.bg-broadcast { background-color: var(--bg-broadcast); }
.bg-rack { background-color: var(--bg-rack); }
.bg-rack-elevated { background-color: var(--bg-rack-elevated); }
.border-rack { border-color: var(--border-rack); }
.border-cyan { border-color: var(--accent-cyan); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-crimson { color: var(--accent-crimson); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* Gradientes */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-cyan-400 { --tw-gradient-from: #38bdf8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(56, 189, 248, 0)); }
.to-blue-500 { --tw-gradient-to: #3b82f6; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* Sombras y Efectos Glow */
.shadow-broadcast {
  box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.25), 0 0 15px rgba(2, 132, 199, 0.1);
}
.glow-cyan {
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
}
.glow-onair {
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.6));
  animation: pulse-onair 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-onair {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.98); }
}

/* Botones Broadcast */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-rack);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-rack);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background-color: var(--bg-rack-elevated);
  color: #ffffff;
}

/* Badges */
.badge-onair {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-version {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Grid Adaptativo */
/* Marcos y Contenedores de Capturas Broadcast */
.broadcast-frame {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border-rack);
  background-color: var(--bg-rack);
  padding: 0.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.broadcast-frame:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.2);
}
.broadcast-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-rack);
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: rgba(7, 10, 15, 0.5);
  border-radius: 0.65rem 0.65rem 0 0;
}
.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Tarjetas Pro con Efecto Iluminado */
.card-pro {
  border-radius: 1rem;
  border: 1px solid var(--border-rack);
  background: linear-gradient(180deg, rgba(19, 27, 41, 0.7) 0%, rgba(14, 19, 29, 0.95) 100%);
  padding: 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card-pro:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(2, 132, 199, 0.25);
}
.card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-pro:hover::before {
  opacity: 1;
}

/* Enlaces del Menú de Navegación */
.nav-link {
  position: relative;
  padding: 0.5rem 0.25rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 700;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  border-radius: 2px;
}

/* Indicadores de Estudio */
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--accent-crimson);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: pulse-onair 1.8s infinite;
}

/* Reglas Responsivas Mejoradas */
@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:hidden { display: none !important; }
  .sm\:w-auto { width: auto !important; }
  .sm\:flex-row { flex-direction: row !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:inline-flex { display: inline-flex !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:text-5xl { font-size: 3rem !important; }
  .md\:text-4xl { font-size: 2.25rem !important; }
  .md\:text-left { text-align: left !important; }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:block { display: block !important; }
  .lg\:hidden { display: none !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:text-6xl { font-size: 3.75rem !important; }
}

