/* ==========================================================================
   SUCESOS.LAT — ADMIN INSTAGRAM STUDIO PRO (CSS AVANZADO)
   Cero impacto visual en lectores públicos • Glassmorphism y controles Pro
   ========================================================================== */

.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: inline-flex !important;
}

/* Badge flotante ultra-elegante en tarjetas */
.admin-card-badge {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 40;
  background: linear-gradient(135deg, rgba(42, 54, 16, 0.95), rgba(72, 91, 30, 0.95));
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.is-admin .admin-card-badge {
  display: inline-flex;
}

.admin-card-badge:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, #485b1e, #7ea336);
  box-shadow: 0 6px 20px rgba(72, 91, 30, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Barra Dock flotante para el Administrador */
#sucesos-admin-dock {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99999;
  background: rgba(10, 15, 6, 0.92);
  color: #cbd5c0;
  border: 1px solid rgba(72, 91, 30, 0.4);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  align-items: center;
  gap: 0.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideDockUp 0.3s ease-out;
}

body.is-admin #sucesos-admin-dock {
  display: flex;
}

@keyframes slideDockUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#sucesos-admin-dock a {
  color: #7ea336;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

#sucesos-admin-dock a:hover {
  color: #a3b880;
}

#sucesos-admin-dock button.logout-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

#sucesos-admin-dock button.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* OVERLAY MODAL STUDIO */
#ig-studio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 7, 2, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#ig-studio-modal.active {
  display: flex;
  opacity: 1;
}

.ig-modal-container {
  width: 100%;
  max-width: 1260px;
  max-height: 95vh;
  background: #080c05;
  border: 1px solid #1f2b13;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ig-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #0c1207;
  border-bottom: 1px solid #18230f;
}

.ig-modal-body {
  padding: 18px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Pestañas de formato (4:5 Feed, 9:16 Historia, Slide 2) */
.format-tab-btn {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid #233116;
  background: #11190a;
  color: #cbd5c0;
  cursor: pointer;
  transition: all 0.15s;
}

.format-tab-btn.active {
  background: #485b1e;
  border-color: #5f7827;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(72, 91, 30, 0.35);
}
