/* ========== LOGO ORANGETUBE ========== */
.ot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.ot-logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255, 107, 0, 0.35));
}

.ot-logo-text {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 50%, #e85d04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ot-logo-text .tube {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Sidebar más compacto */
.sidebar .ot-logo-mark { width: 36px; height: 36px; }
.sidebar .ot-logo-text { font-size: 1.15rem; }

/* ========== SPLASH AL ABRIR ========== */
#ot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#ot-splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#ot-splash .ot-logo {
  flex-direction: column;
  gap: 16px;
}

#ot-splash .ot-logo-mark {
  width: 96px;
  height: 96px;
  animation: ot-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             ot-spin-soft 1.2s ease-in-out 0.15s;
}

#ot-splash .ot-logo-text {
  font-size: 2rem;
  opacity: 0;
  animation: ot-fade-up 0.6s ease 0.45s forwards;
}

#ot-splash .ot-logo-text .tube {
  color: #f5f5f5;
}

@keyframes ot-pop {
  0%   { transform: scale(0.2) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes ot-spin-soft {
  0%   { filter: drop-shadow(0 0 0 transparent); }
  50%  { filter: drop-shadow(0 0 28px rgba(255, 140, 0, 0.85)); }
  100% { filter: drop-shadow(0 2px 10px rgba(255, 107, 0, 0.45)); }
}

@keyframes ot-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo normal en sidebar: sutil al hover */
.sidebar .ot-logo:hover .ot-logo-mark {
  transform: scale(1.06);
  transition: transform 0.2s ease;
}

/* ===================================================
   EXTENSIONES: CONTROL TOTAL DE LA NARANJA REAL (NUEVO)
   =================================================== */

/* 1. CONTROL DEL LOGO EN LA PANTALLA DE BIENVENIDA (HERO) */
.welcome-hero .hero-icon {
  display: none !important; /* Elimina el icono rojo viejo de play de la foto */
}

.welcome-hero .hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.welcome-hero .hero-logo-mark {
  width: 110px !important;
  height: 110px !important;
  filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.6)) drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
  animation: floatOrange 4s ease-in-out infinite;
}

@keyframes floatOrange {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

/* 2. REGLAS UNIVERSALES PARA SVG EN CUALQUIER SECCIÓN */
.ot-logo-mark svg, 
svg.ot-logo-mark {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* 3. CONTROL EN TOPBAR Y MÓVIL */
.topbar .ot-logo-mark {
  width: 34px;
  height: 34px;
}

/* 4. TEMAS CLAROS O CON FONDO */
body[data-theme="light"] .ot-logo-text .tube {
  color: #111111;
}

/* 5. EFECTO DE GLOW EN TEMAS TRANSPARENTES/ANIMADOS */
body[data-theme='orange'] .ot-logo-mark,
body[data-theme='anim-waves'] .ot-logo-mark,
body[data-theme='custom'] .ot-logo-mark {
  filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.7));
}
