/* ==========================================================================
   DRUMMER VULGARIS - GERMÁN SIMÁN
   Estilos del Panel de Administración (Backoffice Dark Luxury)
   ========================================================================== */

:root {
  --bg-dark: #0a0b0e;
  --bg-card: #13161f;
  --bg-card-hover: #1a1e2a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(245, 158, 11, 0.35);
  --accent-gold: #f59e0b;
  --accent-orange: #ea580c;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Pantalla de Login
   -------------------------------------------------------------------------- */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%), var(--bg-dark);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
  text-align: center;
}

.login-badge-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.75rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.login-form {
  text-align: left;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.input-with-icon input {
  padding-left: 2.75rem !important;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.form-hint code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent-gold);
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.back-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.back-link:hover {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   Layout del Dashboard
   -------------------------------------------------------------------------- */
.dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: #0f1118;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-flame {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0b0c10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-pill.connected {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.status-pill.connected .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-pill.local {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
}

.status-pill.local .status-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.25rem;
  overflow-x: auto;
}

.tab-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.tab-item.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.06);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Encabezados de Sección
   -------------------------------------------------------------------------- */
.section-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Botones de Administración
   -------------------------------------------------------------------------- */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary-admin {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0b0c10;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-primary-admin:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-outline-admin {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline-admin:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost-admin {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost-admin:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger-admin {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger-admin:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Grilla de Eventos en el Admin
   -------------------------------------------------------------------------- */
.events-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.event-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.event-admin-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.event-admin-thumb-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.event-admin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-admin-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 17, 24, 0.9);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.event-admin-content {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-admin-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.event-admin-subtitle {
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.event-admin-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.event-admin-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-admin-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Grilla de Galería en el Admin
   -------------------------------------------------------------------------- */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
}

.gallery-admin-card:hover {
  border-color: var(--border-accent);
}

.gallery-admin-img-wrap {
  width: 100%;
  height: 200px;
  background: #000;
  position: relative;
}

.gallery-admin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-admin-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 17, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.gallery-admin-info {
  padding: 1rem;
}

.gallery-admin-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.gallery-admin-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Formularios y Modales del Admin
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

select option {
  background: #181b24;
  color: #fff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Zona de Drop & Drag con Previsualización WebP
   -------------------------------------------------------------------------- */
.drop-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.05);
}

.file-hidden-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-prompt {
  pointer-events: none;
}

.drop-icon {
  font-size: 2.25rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.drop-prompt p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.drop-prompt p span {
  color: var(--accent-gold);
  text-decoration: underline;
}

.drop-prompt small {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.preview-wrap {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  border-radius: 12px;
}

.preview-wrap img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.optimization-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 17, 24, 0.9);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Modales del Admin
   -------------------------------------------------------------------------- */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.admin-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.modal-close-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.modal-close-icon:hover {
  color: #fff;
}

.admin-form-body {
  padding: 2rem;
}

.admin-modal-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Configuración Supabase & Snippet SQL
   -------------------------------------------------------------------------- */
.supabase-config-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem;
}

.config-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.sql-instructions-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sql-instructions-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.code-box-wrap {
  position: relative;
  background: #08090d;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.code-box-wrap pre {
  padding: 1.25rem;
  max-height: 320px;
  overflow: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: #38bdf8;
  line-height: 1.45;
}

.btn-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-copy:hover {
  background: var(--accent-gold);
  color: #0b0c10;
}

/* --------------------------------------------------------------------------
   Grilla y Tarjetas de Álbumes de Rutas en el Admin
   -------------------------------------------------------------------------- */
.albums-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.album-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.album-admin-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.album-admin-thumb-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.album-admin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-admin-card:hover .album-admin-thumb {
  transform: scale(1.05);
}

.album-admin-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 17, 24, 0.9);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.album-admin-photos-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 17, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.album-admin-content {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.album-admin-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.album-admin-subtitle {
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.album-admin-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-admin-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

/* Modal y Dropzone de Álbumes */
.admin-modal-wide {
  max-width: 820px !important;
}

.album-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  height: 48px;
  width: 100%;
}

.photos-multi-dropzone {
  min-height: 110px !important;
  margin-bottom: 1rem;
}

.album-photos-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.85rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.5rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) transparent;
}

.album-photo-thumb-item {
  position: relative;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.album-photo-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.album-photo-thumb-remove:hover {
  background: #ef4444;
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   Grilla y Tarjetas de Artículos en el Admin
   -------------------------------------------------------------------------- */
.articles-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.article-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-admin-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-admin-thumb-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.article-admin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-admin-card:hover .article-admin-thumb {
  transform: scale(1.05);
}

.article-admin-source-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 17, 24, 0.9);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.article-admin-content {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-admin-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.article-admin-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-admin-excerpt {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-admin-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

/* Extractor de URL */
.url-extractor-box {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(22, 26, 36, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.url-extractor-box label {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.url-extractor-box label i {
  color: var(--accent-gold);
}

.url-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.url-input-group input {
  flex: 1;
}

.btn-accent-admin {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  white-space: nowrap;
}

.btn-accent-admin:hover {
  background: var(--accent-gold);
  color: #0b0c10;
}

.url-extractor-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .supabase-config-card {
    grid-template-columns: 1fr;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-topbar {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .events-admin-grid {
    grid-template-columns: 1fr;
  }
}
