/**
 * Temporal Constraints CSS
 * Styling for tiles that are locked due to time constraints
 */

/* Temporal Locked Tile */
.tile.temporal-locked {
  opacity: 0.5;
  filter: grayscale(0.7);
  cursor: not-allowed;
  position: relative;
}

.tile.temporal-locked:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  border-color: var(--gold);
}

/* Diagonal stripe pattern overlay */
.tile.temporal-locked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.3) 10px,
    rgba(0, 0, 0, 0.3) 20px
  );
  pointer-events: none;
  border-radius: 8px;
  z-index: 1;
}

/* Lock Icon */
.temporal-lock-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 24px;
  z-index: 2;
  animation: lockPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
  pointer-events: none;
}

@keyframes lockPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Locked Badge */
.tile.temporal-locked::after {
  content: '🔒 LOCKED';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 215, 0, 0.9);
  color: #000;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hours Button Styling */
#hours-btn {
  background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
  color: #000;
  font-weight: bold;
  border: 2px solid #00ff41;
  transition: all 0.3s ease;
}

#hours-btn:hover {
  background: linear-gradient(135deg, #00cc33 0%, #00aa29 100%);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
  transform: translateY(-2px);
}

#hours-btn:active {
  transform: translateY(0);
}

/* Temporal Tooltip */
.temporal-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--gold);
  font-size: 0.85rem;
  max-width: 300px;
  z-index: 10000;
  pointer-events: none;
  animation: fadeIn 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.temporal-tooltip::before {
  content: '🕐';
  margin-right: 8px;
  font-size: 1.2em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .temporal-lock-icon {
    font-size: 18px;
    top: 5px;
    right: 5px;
  }

  .tile.temporal-locked::after {
    font-size: 0.6rem;
    padding: 3px 8px;
    bottom: 5px;
  }

  .temporal-tooltip {
    max-width: 200px;
    font-size: 0.75rem;
    padding: 8px 12px;
  }
}

/* Animation when tile becomes locked */
.tile.temporal-locked {
  animation: lockAnimation 0.5s ease;
}

@keyframes lockAnimation {
  0% { filter: grayscale(0); opacity: 1; }
  50% { filter: grayscale(0.5); opacity: 0.7; }
  100% { filter: grayscale(0.7); opacity: 0.5; }
}

/* Animation when tile becomes unlocked */
.tile.temporal-unlocked {
  animation: unlockAnimation 0.5s ease;
}

@keyframes unlockAnimation {
  0% { filter: grayscale(0.7); opacity: 0.5; }
  50% { filter: grayscale(0.3); opacity: 0.8; }
  100% { filter: grayscale(0); opacity: 1; }
}
