/* ═══════════════════════════════════════════════
   LOGO COMPASS — Widget: anigami_compass
   ═══════════════════════════════════════════════ */

.anigami-compass-section {
  position: relative;
}

/* ── Layout dos columnes ── */
.compass-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Quan el vídeo és actiu, amaga les columnes */
.compass-content.video-active .compass-col,
.compass-content.video-active .text-col {
  display: none;
}

/* ── Columna logo ── */
.compass-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Contenidor compass ── */
.compass-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  perspective: 800px;
  cursor: pointer;
}
.compass-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(232, 120, 48, 0.15));
  transition: filter 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  display: block;
}
.compass-wrap:hover .compass-img {
  filter: drop-shadow(0 0 50px rgba(232, 120, 48, 0.3));
}

/* ── Botó vídeo ── */
.compass-video-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 14px 32px 14px 18px;
  border-radius: 40px;
  border: 1px solid rgba(232, 120, 48, 0.2);
  background: rgba(232, 120, 48, 0.04);
  transition: all 0.4s;
}
.compass-video-btn:hover {
  border-color: var(--color-accent);
  background: rgba(232, 120, 48, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 120, 48, 0.12);
}
.compass-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  flex-shrink: 0;
  animation: compassPlayPulse 2.5s ease-in-out infinite;
}
@keyframes compassPlayPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 120, 48, 0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(232, 120, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 120, 48, 0); }
}
.compass-video-btn:hover .compass-play-icon {
  animation: none;
  box-shadow: 0 4px 20px rgba(232, 120, 48, 0.4);
}
.compass-play-icon svg { width: 18px; height: 18px; }
.compass-play-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transition: color 0.3s;
}
.compass-video-btn:hover .compass-play-label { color: #fff; }

/* ── Columna text ── */
.compass-label {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 24px;
}
.compass-accent-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 24px;
}
.compass-headline {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 28px;
}
.compass-headline strong {
  font-weight: 700;
  color: var(--color-accent);
}
.compass-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Vídeo inline ── */
.compass-video-inline {
  grid-column: 1 / -1;
}
.compass-video-inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.compass-video-inner iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.compass-video-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.compass-video-close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .compass-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .compass-wrap { margin: 0 auto; }
  .compass-accent-line { margin-left: auto; margin-right: auto; }
}
