.flame-job-card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(45deg, #ff4400, #ffaa00, #ff4400, #ffaa00);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.flame-particles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 14px;
}

.flame {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffaa00, #ff4400);
  border-radius: 50%;
  animation: flameRise 2s infinite ease-out;
  opacity: 0;
}

.flame:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.flame:nth-child(2) {
  left: 30%;
  animation-delay: 0.3s;
}
.flame:nth-child(3) {
  left: 50%;
  animation-delay: 0.6s;
}
.flame:nth-child(4) {
  left: 70%;
  animation-delay: 0.9s;
}
.flame:nth-child(5) {
  left: 90%;
  animation-delay: 1.2s;
}
.flame:nth-child(6) {
  left: 20%;
  animation-delay: 1.5s;
}
.flame:nth-child(7) {
  left: 60%;
  animation-delay: 1.8s;
}
.flame:nth-child(8) {
  left: 40%;
  animation-delay: 0.4s;
}

@keyframes flameRise {
  0% {
    bottom: -10px;
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  20% {
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateY(-20px) scale(0.5);
  }
}

.hot-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #ff4400, #ffaa00);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 68, 0, 0.5);
  z-index: 10;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Premium job card effects */
.premium-job-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(
    90deg,
    #ffd700,
    #ffed4e,
    #fff9c4,
    #ffd700,
    #ffed4e,
    #fff9c4,
    #ffd700
  );
  background-size: 300% 300%;
  animation: goldFlow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Shimmer overlay */
.premium-job-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Sparkle particles */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #fff, #ffd700);
  border-radius: 50%;
  animation: sparkleFloat 3s infinite ease-in-out;
  opacity: 0;
  box-shadow: 0 0 8px #ffd700;
}

.sparkle:nth-child(1) {
  left: 15%;
  top: 20%;
  animation-delay: 0s;
}
.sparkle:nth-child(2) {
  left: 75%;
  top: 30%;
  animation-delay: 0.5s;
}
.sparkle:nth-child(3) {
  left: 45%;
  top: 60%;
  animation-delay: 1s;
}
.sparkle:nth-child(4) {
  left: 85%;
  top: 70%;
  animation-delay: 1.5s;
}
.sparkle:nth-child(5) {
  left: 25%;
  top: 80%;
  animation-delay: 2s;
}
.sparkle:nth-child(6) {
  left: 60%;
  top: 15%;
  animation-delay: 2.5s;
}
.sparkle:nth-child(7) {
  left: 35%;
  top: 40%;
  animation-delay: 0.8s;
}
.sparkle:nth-child(8) {
  left: 90%;
  top: 50%;
  animation-delay: 1.8s;
}

@keyframes sparkleFloat {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.premium-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  color: #1a1a1a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
  z-index: 10;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.9);
  }
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  visibility: visible !important;
  overflow-x: hidden;
}

button.htmx-request .label {
  display: none;
}
button.htmx-request .loading {
  display: inline-block;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-large {
  width: 32px;
  height: 32px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-white {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline;
}
.htmx-request.htmx-indicator {
  display: inline;
}

/* Generic Select Styles */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: black;
  border-radius: 20px;
}

select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f9fafb;
}

/* Dark theme select styles */
.dark select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.dark select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark select:disabled {
  background-color: #374151;
}

[data-controller="job-card"]:hover .apply-button {
  opacity: 1;
}

.apply-button {
  text-align: center;
  border: 2px solid rgba(35, 35, 35, 0);
  opacity: 0;
  vertical-align: middle;
  font-weight: 800;
  background-color: #3b82f6;
  color: white;
  display: inline-block;
  width: 100%;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  border-radius: 12px;
}

/* Shimmer loading effect */
.htmx-request [data-controller="job-card"],
.shimmer-loading {
  position: relative;
}

.htmx-request [data-controller="job-card"] > table,
.htmx-request [data-controller="job-card"]::before,
.htmx-request [data-controller="job-card"] .flame-particles,
.htmx-request [data-controller="job-card"] [data-job-card-target="expandedContent"],
.htmx-request [data-controller="job-card"] .sparkles {
  opacity: 0;
}

.htmx-request [data-controller="job-card"] .shimmer-overlay,
.shimmer-loading .shimmer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(226, 232, 240, 0.7) 8%,
    rgba(241, 245, 249, 0.7) 18%,
    rgba(226, 232, 240, 0.7) 33%
  );
  z-index: 100;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
}

.htmx-request [data-controller="job-card"] .shimmer-overlay::before,
.shimmer-loading .shimmer-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 100%
  );
  animation: shimmerMove 1.5s infinite;
}

@keyframes shimmerMove {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}


