/* 3D Tilt Icon Component Styles */

.tilt-scene {
  width: 100%;
  min-height: 400px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tilt-scene.with-bg {
  background: #08080f;
  cursor: none;
}

.tilt-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127,119,221,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,119,221,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.tilt-ambient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83,74,183,0.22) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tilt-wrapper {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.08s linear;
}

.tilt-icon-body {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
}

.tilt-icon-body.large {
  width: 280px;
  height: 280px;
}

.tilt-face {
  width: 100%;
  height: 100%;
  background: var(--bg-card, #12101e);
  border-radius: 40px;
  border: 1.5px solid rgba(127,119,221,0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 60px rgba(83,74,183,0.3);
}

.tilt-circuit-lines {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  overflow: hidden;
  opacity: 0.18;
  pointer-events: none;
}

.tilt-circuit-lines svg {
  width: 100%;
  height: 100%;
}

.tilt-eye-row {
  display: flex;
  gap: 20px;
  margin-bottom: 4px;
}

.tilt-eye {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9089f5;
  position: relative;
  animation: tilt-blink 4s infinite;
}

.tilt-eye::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 3px;
  transition: transform 0.1s;
}

@keyframes tilt-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.tilt-brand-text {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}

.tilt-brand-text span {
  color: #9089f5;
}

.tilt-mouth {
  width: 40px;
  height: 3px;
  background: rgba(144,137,245,0.6);
  border-radius: 2px;
  transition: transform 0.2s;
}

.tilt-tagline {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 11px;
  color: rgba(144,137,245,0.8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tilt-signal-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5dcaa5;
  top: 16px;
  right: 16px;
  animation: tilt-pulse-dot 2s infinite;
}

@keyframes tilt-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.tilt-corner-accent {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(127,119,221,0.4);
  border-style: solid;
}

.tilt-corner-accent.tl { 
  top: 12px; 
  left: 12px; 
  border-width: 1.5px 0 0 1.5px; 
  border-radius: 4px 0 0 0; 
}

.tilt-corner-accent.br { 
  bottom: 12px; 
  right: 12px; 
  border-width: 0 1.5px 1.5px 0; 
  border-radius: 0 0 4px 0; 
}

.tilt-shadow-plane {
  width: 160px;
  height: 20px;
  border-radius: 50%;
  background: rgba(83,74,183,0.25);
  margin-top: 20px;
  filter: blur(8px);
  transition: transform 0.08s linear, opacity 0.08s linear;
}

.tilt-label {
  position: absolute;
  bottom: 20px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}

.tilt-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
  display: none;
}

.tilt-scene.with-bg .tilt-crosshair {
  display: block;
}

.tilt-crosshair::before,
.tilt-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(144,137,245,0.7);
  border-radius: 1px;
}

.tilt-crosshair::before { 
  width: 1px; 
  height: 20px; 
  left: 9.5px; 
  top: 0; 
}

.tilt-crosshair::after { 
  width: 20px; 
  height: 1px; 
  top: 9.5px; 
  left: 0; 
}

/* Product-specific variant - Agent LinkedIn */
.tilt-face.agent-linkedin {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  border-color: rgba(10, 102, 194, 0.6);
  box-shadow: 
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 0 60px rgba(10, 102, 194, 0.4);
}

.tilt-face.agent-linkedin .tilt-eye {
  background: #fff;
}

.tilt-face.agent-linkedin .tilt-brand-text {
  font-size: 24px;
}

.tilt-face.agent-linkedin .tilt-brand-text span {
  color: #70b5f9;
}

.tilt-face.agent-linkedin .tilt-mouth {
  background: rgba(255,255,255,0.5);
}

.tilt-face.agent-linkedin .tilt-tagline {
  color: rgba(255,255,255,0.7);
}

.tilt-face.agent-linkedin .tilt-signal-dot {
  background: #70b5f9;
}

.tilt-face.agent-linkedin .tilt-corner-accent {
  border-color: rgba(255,255,255,0.3);
}

.tilt-face.agent-linkedin .tilt-circuit-lines svg line,
.tilt-face.agent-linkedin .tilt-circuit-lines svg circle {
  stroke: rgba(255,255,255,0.3);
  fill: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .tilt-scene {
    min-height: 300px;
  }
  
  .tilt-icon-body {
    width: 160px;
    height: 160px;
  }
  
  .tilt-icon-body.large {
    width: 200px;
    height: 200px;
  }
  
  .tilt-brand-text {
    font-size: 24px;
  }
  
  .tilt-eye {
    width: 10px;
    height: 10px;
  }
  
  .tilt-eye::after {
    width: 4px;
    height: 4px;
  }
}
