/* Eve Road Sovereign Custom Styles */

/* Base Customizations */
html {
  scrollbar-width: thin;
  scrollbar-color: #C5A059 #16130e;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #110e09;
}

::-webkit-scrollbar-thumb {
  background-color: #C5A059;
  border-radius: 4px;
  border: 2px solid #110e09;
}

/* Nav link bottom line animation */
.nav-link {
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #e9c176;
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link.active-link::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-link.active-link {
  color: #e9c176 !important;
}

/* Header dynamic glass style */
.header-glass {
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.5);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Checkbox Active State */
.threat-chk-btn.checked {
  border-color: #e9c176 !important;
  background-color: rgba(233, 193, 118, 0.08) !important;
  color: #F3EAD3 !important;
}

.threat-chk-btn.checked .chk-box {
  background-color: #e9c176 !important;
  border-color: #e9c176 !important;
}

.threat-chk-btn.checked .chk-box i {
  display: block !important;
  color: #020617 !important;
}

/* Step Buttons Dynamic Styles */
.step-btn.active-step {
  background-color: #0F172A !important;
  border-color: rgba(233, 193, 118, 0.4) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.step-btn.active-step span.absolute {
  color: rgba(233, 193, 118, 0.12) !important;
}

/* Smooth Detail Transitions */
#step-detail-content {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.step-transition-hide {
  opacity: 0;
  transform: translateY(10px);
}

.step-transition-show {
  opacity: 1;
  transform: translateY(0);
}

/* Mock Terminal Styling */
#console-logs::-webkit-scrollbar {
  width: 4px;
}
#console-logs::-webkit-scrollbar-thumb {
  background-color: rgba(197, 160, 89, 0.3);
}

/* Image zoom styling */
.img-zoom-hover:hover img {
  transform: scale(1.05);
}

/* Custom CSS helper for aspect ratio on older engines */
.aspect-ratio-portrait {
  aspect-ratio: 4 / 5;
}

/* Prevent double-tap zoom on ios buttons */
button, select, input {
  touch-action: manipulation;
}
