/* ==========================================================================
   Simula & Simplifica — Design System (Tech/Hacker Dark Mode)
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-card: #12161f;
  --bg-card-hover: #1a202c;
  --bg-input: #0f131a;

  --color-simula: #00C2E0;      /* Neon Cyan */
  --color-simula-glow: rgba(0, 194, 224, 0.25);
  --color-simplifica: #F28C28;  /* Neon Amber */
  --color-simplifica-glow: rgba(242, 140, 40, 0.25);

  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --text-heading: #ffffff;

  --border-color: #21262d;
  --border-glow: #30363d;

  --status-pending: #f1e05a;
  --status-completed: #238636;
  --status-failed: #da3633;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Fixo Global */
.header-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transform: translateZ(0);
}

.brand-logo {
  font-family: 'Orbitron', var(--font-family);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.brand-logo .part-simula {
  color: var(--color-simula);
  text-shadow: 0 0 12px var(--color-simula-glow);
}

.brand-logo .part-amp {
  color: var(--color-simula);
  font-weight: 700;
}

.brand-logo .part-simplifica {
  color: var(--color-simplifica);
  text-shadow: 0 0 12px var(--color-simplifica-glow);
}

.logo-img {
  height: 3.5rem; 
  width: auto; 
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-simula);
  text-shadow: 0 0 8px var(--color-simula-glow);
}

/* Botão "Sair" no menu (páginas administrativas) — sem ícone, mesmo estilo dos links */
.nav-links .nav-logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.nav-links .nav-logout-btn:hover {
  color: var(--color-simula);
  text-shadow: 0 0 8px var(--color-simula-glow);
}

/* Selo de descrição (páginas administrativas) */
.admin-badge {
  font-size: 0.75rem;
  background: var(--color-simplifica);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 10px;
  white-space: nowrap;
}

/* Menu Hambúrguer — oculto por padrão, ativado apenas no breakpoint mobile */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1002;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

/* Main Container */
main.main-content {
  flex: 1;
  margin-top: 70px;
  padding: 40px 20px;
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer-global {
  border-top: 1px solid var(--border-color);
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 60px;
}

.footer-global a {
  color: inherit;
  text-decoration: none;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.footer-global .footer-legal-links a {
  color: var(--color-simula);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-consent {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-consent a {
  color: var(--color-simula);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Botões Estilizados */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-simula), #0098b3);
  color: #000000;
  box-shadow: 0 0 15px var(--color-simula-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 194, 224, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-simplifica), #c76f18);
  color: #000000;
  box-shadow: 0 0 15px var(--color-simplifica-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(242, 140, 40, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--color-simula);
  color: var(--color-simula);
}

/* Turnstile Container - Reserva de altura para evitar Layout Shift (CLS) */
.cf-turnstile {
  min-height: 65px;
}

/* Form Controls */
.form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-simula);
  box-shadow: 0 0 10px var(--color-simula-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

/* Cards Estilizados */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hero Section (Landing Page) */
.hero-section {
  text-align: center;
  padding: 40px 0 60px 0;
}

.hero-title {
  font-family: 'Orbitron', var(--font-family);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 18px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero-title .part-simula {
  color: var(--color-simula);
  text-shadow: 0 0 16px var(--color-simula-glow);
}

.hero-title .part-amp {
  color: var(--color-simula);
  font-weight: 700;
}

.hero-title .part-simplifica {
  color: var(--color-simplifica);
  text-shadow: 0 0 16px var(--color-simplifica-glow);
}

.hero-title .hero-subtitle-tag {
  display: block;
  color: #ffffff;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 36px auto;
}

/* Video Placeholder Container */
.video-container {
  margin: 40px auto;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.video-placeholder-content {
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
}

.play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-simplifica);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px var(--color-simplifica-glow);
  transition: var(--transition-fast);
}

.video-placeholder-content:hover .play-icon {
  transform: scale(1.1);
}

/* ===========================================================================
   VÍDEOS RESPONSIVOS E SEÇÃO DE TUTORIAIS
   ========================================================================== */

.video-destaque-wrapper {
  width: 100%;
  max-width: 840px;
  margin: 0 auto 36px auto;
}

.video-responsive-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 194, 224, 0.15);
  border: 1px solid var(--border-color);
  background: #000;
}

.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tutoriais-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tutoriais-grid--lives > .tutorial-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 24px) / 2);
}

.tutorial-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tutorial-card-title {
  color: var(--text-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 4px;
}

.tutorial-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Cards de Entregas Grid */
.entregas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card-entrega {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-entrega .entrega-indicator {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-entrega-1 .entrega-indicator {
  background: rgba(0, 194, 224, 0.15);
  color: var(--color-simula);
  border: 1px solid var(--color-simula);
}

.card-entrega-2 .entrega-indicator {
  background: rgba(242, 140, 40, 0.15);
  color: var(--color-simplifica);
  border: 1px solid var(--color-simplifica);
}

.card-entrega-3 .entrega-indicator {
  background: rgba(242, 140, 40, 0.15);
  color: var(--color-simplifica);
  border: 1px solid var(--color-simplifica);
}

/* Toast Alerts */
.toast-alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-success {
  background: rgba(35, 134, 54, 0.2);
  border: 1px solid var(--status-completed);
  color: #3fb950;
}

.toast-error {
  background: rgba(218, 54, 51, 0.2);
  border: 1px solid var(--status-failed);
  color: #f85149;
}

/* Badges Status */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: rgba(241, 224, 90, 0.15);
  color: var(--status-pending);
  border: 1px solid var(--status-pending);
}

.status-completed {
  background: rgba(35, 134, 54, 0.15);
  color: #3fb950;
  border: 1px solid var(--status-completed);
}

.status-failed {
  background: rgba(218, 54, 51, 0.15);
  color: #f85149;
  border: 1px solid var(--status-failed);
}

/* Spinner Loading */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Admin Dashboard Elements */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-simula);
  margin-top: 6px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: #161b22;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.admin-table th:hover {
  color: var(--text-main);
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .tutoriais-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .video-destaque-wrapper {
    padding: 0;
  }

  .tutoriais-grid--lives > .tutorial-card:last-child:nth-child(odd) {
  width: 100%;
  }

  .header-global {
    padding: 0 16px;
  }

  /* Logo reduzida para evitar sobreposição com os links no mobile */
  .logo-img {
    height: 2.1rem;
  }

  .brand-logo {
    font-size: 1rem;
    gap: 6px;
  }

  /* Hambúrguer visível e alinhado à direita */
  .nav-toggle-label {
    display: flex;
  }

  /* Painel de navegação deslizante, alinhado à direita */
  nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: min(280px, 80vw);
    height: calc(100vh - 70px);
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-toggle-input:checked ~ nav {
    transform: translateX(0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
  }

  .nav-links a,
  .nav-links .nav-logout-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
  }

  /* Fundo escurecido, fecha o menu ao tocar fora dele */
  .nav-toggle-input:checked ~ .nav-overlay {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Cabeçalho administrativo: descrição quebra abaixo do nome para caber na largura reduzida */
  .header-admin {
    height: auto;
    min-height: 70px;
    padding: 12px 16px;
  }

  .header-admin .brand-logo {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .header-admin .admin-badge {
    flex-basis: 100%;
    margin-left: 0;
  }

  .header-admin .nav-toggle-label {
    position: absolute;
    top: 12px;
    right: 16px;
  }

  .header-admin nav,
  .header-admin .nav-toggle-input:checked ~ .nav-overlay {
    top: 108px;
    height: calc(100vh - 108px);
  }
}

/* ==========================================================================
   AUTOAVALIAÇÃO — Chips de escala numérica
   ========================================================================== */

.autoavaliacao-item {
  margin-bottom: 26px;
}

.autoavaliacao-item label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-heading);
}

.scale-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scale-chip {
  min-width: 42px;
  padding: 8px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.scale-chip:hover {
  border-color: var(--color-simula);
  color: var(--color-simula);
}

.scale-chip.selected {
  color: #0b0e13;
  background: linear-gradient(135deg, var(--color-simula), #0098b3);
  border-color: var(--color-simula);
  box-shadow: 0 0 10px var(--color-simula-glow);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ENTREGA 2 — Preview de imagens
   ========================================================================== */

.imagens-preview {
  margin-top: 12px;
}

.imagens-loading {
  font-size: 0.85rem;
  color: var(--color-simula);
}

.imagens-counter {
  font-size: 0.8rem;
  color: var(--color-simula);
  font-weight: 600;
  margin-bottom: 10px;
}

.imagens-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.imagem-thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
}

.imagem-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================================================================
   TUTOR DE IA
   ========================================================================== */

.tutor-toggle {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 50;
  border: 2px solid #00c2e0;
  border-radius: 999px;
  background: #0d1117;
  color: #00c2e0;
  padding: 16px 26px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 194, 224, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutor-toggle:hover {
  background: #00c2e0;
  color: #0a0c10;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 40px rgba(0, 194, 224, 0.65);
}

.tutor-panel {
  position: fixed;
  right: 28px;
  bottom: 96px;
  z-index: 50;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #00c2e0;
  border-radius: 16px;
  background: #121212;
  color: #f4f7f8;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
}

.tutor-header, .tutor-form, .tutor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.tutor-header { justify-content: space-between; border-bottom: 1px solid #243238; }
.tutor-header small { display: block; color: #9bb0b7; margin-top: 3px; }
.tutor-header button, .tutor-actions button { border: 0; background: transparent; color: #b9c8cc; cursor: pointer; }
.tutor-header button { font-size: 1.5rem; }
.tutor-messages { min-height: 220px; max-height: 360px; overflow-y: auto; padding: 14px; display: grid; gap: 10px; }
.tutor-message { max-width: 88%; padding: 10px 12px; border-radius: 12px; line-height: 1.45; white-space: pre-wrap; }
.tutor-message--user { justify-self: end; background: #005b6a; }
.tutor-message--assistant { justify-self: start; background: #20292d; }
.tutor-turnstile { min-height: 0; padding: 0 12px; overflow: hidden; }
.tutor-form { border-top: 1px solid #243238; }
.tutor-form input { min-width: 0; flex: 1; border: 1px solid #40545a; border-radius: 8px; background: #1b2326; color: #fff; padding: 10px; }
.tutor-form button { border: 0; border-radius: 8px; background: #00c2e0; color: #062126; padding: 10px 12px; font-weight: 700; cursor: pointer; }
.tutor-actions { justify-content: space-between; padding-top: 0; font-size: .82rem; }
#tutor-status.is-error { color: #ff8b8b; }

@media (max-width: 520px) {
  .tutor-toggle {
    right: 16px;
    bottom: 16px;
    padding: 13px 20px;
    font-size: 1.05rem;
  }
  .tutor-panel {
    right: 16px;
    bottom: 78px;
  }
}

/* ===========================================================================
   ENTREGA VIDEO CALLOUT & POPUP MODAL (FORMULÁRIO)
   ========================================================================== */

.entrega-video-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.entrega-video-callout:hover {
  border-color: var(--color-simula);
  box-shadow: 0 0 16px rgba(0, 194, 224, 0.15);
}

.entrega-video-thumb-container {
  position: relative;
  width: 175px;
  min-width: 175px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.entrega-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.entrega-video-thumb-container:hover .entrega-video-thumb-img {
  transform: scale(1.05);
}

.entrega-video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.entrega-video-thumb-container:hover .entrega-video-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.entrega-video-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-simplifica);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--color-simplifica-glow);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.entrega-video-thumb-container:hover .entrega-video-play-btn {
  transform: scale(1.12);
  background: #ff9b3d;
}

.entrega-video-info {
  flex: 1;
  min-width: 0;
}

.entrega-video-title {
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.entrega-video-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.entrega-video-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--color-simula);
  border: 1px solid var(--color-simula);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.entrega-video-action-btn:hover {
  background: var(--color-simula);
  color: #0a0c10;
  box-shadow: 0 0 14px var(--color-simula-glow);
}

/* Modal Popup */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 194, 224, 0.2);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.is-open .video-modal-dialog {
  transform: translateY(0) scale(1);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 22, 31, 0.95);
}

.video-modal-title {
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.video-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.video-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.video-modal-body {
  padding: 0;
  background: #000;
}

@media (max-width: 600px) {
  .entrega-video-callout {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .entrega-video-thumb-container {
    width: 100%;
    min-width: 100%;
  }
  .video-modal-backdrop {
    padding: 8px;
  }
  .video-modal-dialog {
    border-radius: var(--radius-md);
  }
  .video-modal-header {
    padding: 10px 14px;
  }
}
