/* Buttons */
.btn-teamup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px; /* Increased padding for arrow safety */
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-teamup:hover {
  letter-spacing: 0.12em;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 180px;
}

.btn-primary:hover {
  background: var(--color-signal);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  padding: 12px 24px;
}

.btn-outline:hover {
  background: var(--color-surface-container);
}

.btn-hq-wide {
  width: 100%;
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none;
  padding: 18px 40px;
  max-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
}

.btn-hq-wide span {
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hq-wide i.transition-arrow {
  display: none !important; /* Standardize to CSS arrow instead */
}

.btn-hq-wide:hover {
  background: var(--color-signal) !important;
}

/* Global Search Component (Industrial HQ Style) */
.hq-search-bar {
  background: transparent;
  border: 1px solid var(--color-surface-container-high);
  padding: 16px 24px;
  border-radius: 0; /* SHARP INDUSTRIAL CORNERS */
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 350px;
  transition: all 0.3s ease;
}

.hq-search-bar i {
  color: var(--color-gray-500);
  font-size: 16px;
}

.hq-search-bar input {
  border: none;
  background: transparent !important;
  outline: none !important;
  font-family: var(--font-mono) !important; /* Technical Mono Font */
  font-size: 16px !important;
  width: 100%;
  color: #000 !important;
}

.hq-search-bar:focus-within {
  border-color: var(--color-signal);
  background: rgba(253, 48, 4, 0.02);
}

/* Inputs */
.input-field {
  width: 100%;
  background: var(--color-surface-container);
  padding: 16px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
}

.input-field:focus {
  background: var(--color-surface-container-high);
}

.hq-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-surface-container-high);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  color: #000;
  border-radius: 0;
  margin-bottom: 10px;
}

.hq-input:focus {
  border-color: var(--color-signal);
  background: rgba(253, 48, 4, 0.02);
}

select.hq-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

textarea.hq-input {
  resize: vertical;
  min-height: 120px;
}

/* Section tonal backgrounds */
.section-light {
  background: var(--color-surface);
}
.section-muted {
  background: var(--color-surface-low);
}
.section-container {
  background: var(--color-surface-container);
}
.section-dark {
  background: #000;
  color: #fff;
}

/* Image Blocks */
.img-block {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-wrapper {
  overflow: hidden;
  position: relative;
}

.img-wrapper:hover .img-block {
  transform: scale(1.05);
}

.tag-reveal {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-signal);
  color: white;
  padding: 4px 12px;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-wrapper:hover .tag-reveal {
  opacity: 1;
}

/* Premium Loader System (Refined Two-Div Structure) */
#loader {
  display: flex !important;
  flex-direction: column !important; /* Stack spinner and text */
  justify-content: center !important;
  align-items: center !important;
  min-height: 240px;
  width: 100%;
  z-index: 10;
  position: relative;
  gap: 15px; /* Space between spinner and text */
}

.spinner {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.spinner::before {
  content: "";
  width: 48px;
  height: 48px;
  border: 4px solid rgba(253, 48, 4, 0.1); /* Subtle track */
  border-top: 4px solid #fd3004; /* Single solid color focus */
  border-radius: 50%;
  position: absolute;
  animation: hq-spin 0.8s linear infinite;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
  font-weight: 700;
  animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes hq-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
