/* ═══════════════════════════════════════════════════════════
   IT BOY — v5 Refinements CSS
   R01 Temp Image Atmospheric Treatment (Dark + Light modes)
   R04 Logo text removed — logo only spacing fix
   R05 Favicon (handled in HTML)
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   R04 — Logo: image only, no text, correct sizing
══════════════════════════════════════════════════ */
.logo {
  gap: 0;
  padding: 4px 0;
}
.logo .logo-img-dark,
.logo .logo-img-light {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.logo:hover .logo-img-dark,
.logo:hover .logo-img-light {
  filter: drop-shadow(0 0 10px rgba(26, 86, 219, 0.4));
}

/* Hide any stray logo-text that might remain */
.logo-text { display: none !important; }


/* ══════════════════════════════════════════════════
   R01 — Temp Image: Atmospheric Glass Treatment
   Supports dark mode and light mode automatically
══════════════════════════════════════════════════ */

/* Container */
.temp-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: visible; /* let atmosphere bleed out */
  margin-bottom: 8px;
}

/* Primary atmospheric glow — behind the image */
.temp-img-atmosphere {
  position: absolute;
  inset: -28px;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;

  /* Dark mode: deep blue ambient glow */
  background: radial-gradient(
    ellipse 85% 75% at 50% 55%,
    rgba(26, 86, 219, 0.22) 0%,
    rgba(59, 130, 246, 0.08) 45%,
    transparent 72%
  );
  animation: atmoBreath 5s ease-in-out infinite;
  filter: blur(12px);
}
.temp-img-atmosphere-2 {
  inset: -44px;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(26, 86, 219, 0.10) 0%,
    rgba(99, 155, 255, 0.04) 50%,
    transparent 70%
  );
  animation: atmoBreath 7s ease-in-out infinite reverse;
  animation-delay: 1.2s;
  filter: blur(24px);
}

@keyframes atmoBreath {
  0%, 100% { opacity: 0.65; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.04); }
}

/* The actual image */
.temp-img-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;

  /* No hard border — use atmosphere instead */
  border: none;
  outline: none;
  box-shadow: none;

  /* Soft mask: fade edges so image bleeds into background */
  mask-image: radial-gradient(
    ellipse 92% 88% at 50% 50%,
    black 48%,
    rgba(0,0,0,0.85) 65%,
    rgba(0,0,0,0.45) 80%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 92% 88% at 50% 50%,
    black 48%,
    rgba(0,0,0,0.85) 65%,
    rgba(0,0,0,0.45) 80%,
    transparent 100%
  );

  /* Subtle depth shadow */
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.55))
          drop-shadow(0 0 24px rgba(26,86,219,0.15));

  transition: filter 0.4s ease, transform 0.4s ease;
}
.temp-img-wrapper:hover .temp-img-main {
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6))
          drop-shadow(0 0 32px rgba(26,86,219,0.25));
  transform: translateY(-3px);
}

/* Vignette overlay — blends bottom edge into section bg */
.temp-img-vignette {
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 48%;
  z-index: 2;
  pointer-events: none;
  border-radius: 0 0 18px 18px;

  /* Dark mode gradient */
  background: linear-gradient(
    to top,
    var(--bg-primary, #0c0e10) 0%,
    rgba(12,14,16,0.65) 40%,
    transparent 100%
  );
  transition: background 0.5s ease;
}

/* ── Light Mode Adaptations ── */
[data-theme="light"] .temp-img-atmosphere {
  background: radial-gradient(
    ellipse 85% 75% at 50% 55%,
    rgba(26, 86, 219, 0.14) 0%,
    rgba(99, 155, 255, 0.06) 45%,
    transparent 72%
  );
}
[data-theme="light"] .temp-img-atmosphere-2 {
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(186, 214, 255, 0.18) 0%,
    rgba(219, 234, 254, 0.08) 50%,
    transparent 70%
  );
}
[data-theme="light"] .temp-img-main {
  filter: drop-shadow(0 14px 36px rgba(0,0,0,0.18))
          drop-shadow(0 0 20px rgba(26,86,219,0.10));
  mask-image: radial-gradient(
    ellipse 90% 85% at 50% 50%,
    black 50%,
    rgba(0,0,0,0.8) 65%,
    rgba(0,0,0,0.35) 82%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 85% at 50% 50%,
    black 50%,
    rgba(0,0,0,0.8) 65%,
    rgba(0,0,0,0.35) 82%,
    transparent 100%
  );
}
[data-theme="light"] .temp-img-vignette {
  background: linear-gradient(
    to top,
    var(--bg-primary, #f5f7fa) 0%,
    rgba(245,247,250,0.65) 40%,
    transparent 100%
  );
}
[data-theme="light"] .temp-img-wrapper:hover .temp-img-main {
  filter: drop-shadow(0 18px 44px rgba(0,0,0,0.22))
          drop-shadow(0 0 28px rgba(26,86,219,0.18));
}

/* ── Responsive: temp image sizing ── */
@media (max-width: 1024px) {
  .temp-img-main { border-radius: 14px; }
  .temp-img-atmosphere { inset: -20px; }
}
@media (max-width: 768px) {
  .temp-img-wrapper { margin: 0 auto 16px; max-width: 90%; }
  .temp-img-vignette { height: 36%; }
}


/* ══════════════════════════════════════════════════
   Global: remove any lingering logo-text spacing
══════════════════════════════════════════════════ */
.logo {
  min-width: 0;
}
/* Ensure header logo link has no extra padding from removed text */
.site-header .logo {
  height: 54px;
  display: flex;
  align-items: center;
}
