/* ============================================
   TT Beauty Lounge — Logo Animation (Opțiunea B)
   Rotație 3D pe axa Y + shine sincronizat
   ============================================ */

.tt-logo-anim {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 10px 30px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.12);
  perspective: 800px;
  perspective-origin: 50% 50%;
  isolation: isolate;
}

.tt-logo-anim img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  backface-visibility: visible;
  transform-style: preserve-3d;
  animation: tt-logo-rotate-3d 8s cubic-bezier(.45,.05,.55,.95) infinite;
  will-change: transform;
}

@keyframes tt-logo-rotate-3d {
  0%    { transform: rotateY(0deg) scale(1); }
  35%   { transform: rotateY(360deg) scale(1.02); }
  40%   { transform: rotateY(360deg) scale(1); }
  75%   { transform: rotateY(720deg) scale(1.02); }
  80%   { transform: rotateY(720deg) scale(1); }
  100%  { transform: rotateY(720deg) scale(1); }
}

.tt-logo-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(227,196,140,0) 40%,
    rgba(227,196,140,.45) 70%,
    rgba(227,196,140,0) 85%
  );
  opacity: 0;
  pointer-events: none;
  animation: tt-logo-flash 8s ease-in-out infinite;
  z-index: 2;
}

@keyframes tt-logo-flash {
  0%, 30%   { opacity: 0; }
  38%       { opacity: 1; }
  45%, 70%  { opacity: 0; }
  78%       { opacity: 1; }
  85%, 100% { opacity: 0; }
}

.tt-logo-anim.tt-logo-lg {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--surface-2, #33251c), var(--surface, #2c2019));
  box-shadow: none;
  perspective: 1400px;
}

.tt-logo-anim.tt-logo-lg img {
  border-radius: 18px;
  object-fit: contain;
  padding: 18%;
}

.tt-logo-anim.tt-logo-lg::after {
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(227,196,140,0) 30%,
    rgba(227,196,140,.28) 50%,
    rgba(227,196,140,0) 70%
  );
}

.tt-logo-anim.tt-logo-sm {
  width: 52px;
  height: 52px;
}

@media (prefers-reduced-motion: reduce) {
  .tt-logo-anim img,
  .tt-logo-anim::after {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .tt-logo-anim img {
    animation-duration: 10s;
  }
}
