/* ========================================
   WASABI Work Access Service - Enhanced Styles
   ======================================== */

/* === Base & Reset === */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

@keyframes fadeInDelay {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* === Utility Classes === */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
  animation: fadeInDelay 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* === Feature Cards === */
.feature-card {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* === Glass Card Effects === */
.glass-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(26, 26, 26, 0.8);
  border-color: rgba(159, 232, 112, 0.2);
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(159, 232, 112, 0.1);
}

/* === Talent Card Locked State === */
.talent-card-locked {
  position: relative;
  overflow: hidden;
}

.talent-card-locked::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  animation: shimmer 3s infinite;
}

/* === Status Indicator === */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* === Blur Effects === */
.blur-text {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

/* === Modal Overlay === */
.contract-modal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.85);
}

/* === Button Enhancements === */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* === Input Focus States === */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(159, 232, 112, 0.1);
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444444;
}

/* === Loading States === */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Skeleton Loading === */
.skeleton {
  background: linear-gradient(
    90deg,
    #1a1a1a 25%,
    #2a2a2a 50%,
    #1a1a1a 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === Tooltips === */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 6px 12px;
  background: #2a2a2a;
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* === Empty States === */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #666;
}

/* === Badge Styles === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(159, 232, 112, 0.1);
  color: #9FE870;
  border: 1px solid rgba(159, 232, 112, 0.2);
}

/* === Responsive Enhancements === */
@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: blur(8px);
  }
  
  .feature-card:hover {
    transform: none;
  }
}

/* === Print Styles === */
@media print {
  .glass-card {
    background: #fff;
    border: 1px solid #ddd;
  }
  
  body {
    background: #fff;
    color: #000;
  }
}
