/* GCH Theme — Custom styles beyond Tailwind */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero italic emphasis */
.gch-hero em {
  font-style: normal;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Region pill active state */
.gch-region-pill.is-active .wp-block-button__link {
  background-color: var(--wp--preset--color--primary) !important;
  color: #fff !important;
}

/* Blog card image hover zoom */
.gch-blog-card .wp-block-post-featured-image img {
  transition: transform 0.3s ease;
}

.gch-blog-card:hover .wp-block-post-featured-image img {
  transform: scale(1.03);
}

/* Job card list layout */
.gch-jobs-list .gch-job-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.gch-jobs-list .gch-job-card__badges {
  order: 1;
  margin-bottom: 0;
}

.gch-jobs-list .gch-job-card__title {
  order: 2;
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.gch-jobs-list .gch-job-card__meta {
  order: 3;
  flex: 1;
  min-width: 150px;
  margin-bottom: 0;
}

.gch-jobs-list .gch-job-card__footer {
  order: 4;
  border-top: none;
  padding-top: 0;
}

/* Sticky header shadow on scroll */
.gch-header {
  transition: box-shadow 0.2s ease;
}

.gch-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Fade-in animation */
@keyframes gch-fade-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gch-animate-in {
  animation: gch-fade-in 0.5s ease forwards;
}

/* Match score badge on job cards */
.gch-match-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.gch-match-badge .score {
  font-size: 1.1rem;
}

.gch-match-badge.excellent {
  background-color: #dcfce7;
  color: #166534;
}

.gch-match-badge.good {
  background-color: #dbeafe;
  color: #1e40af;
}

.gch-match-badge.fair {
  background-color: #fef3c7;
  color: #92400e;
}

/* Enhanced job card header with logo */
.gch-job-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.gch-job-card__logo {
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.gch-job-card__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
  font-size: 1rem;
}

/* Remote badge */
.gch-badge--remote {
  background-color: #fae8ff;
  color: #86198f;
}

/* Salary line */
.gch-job-card__salary {
  font-size: 0.875rem;
  font-weight: 500;
  color: #059669;
  margin-bottom: 0.75rem;
}

/* Quick apply button */
.gch-job-card__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.gch-job-card__quick-apply {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #059669;
  padding: 0.3rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background 0.15s;
}

.gch-job-card__quick-apply:hover {
  background: #047857;
}

/* Advanced filter toggle */
.gch-job-search__advanced {
  margin-top: 0.75rem;
}

.gch-job-search__toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0;
  transition: color 0.15s;
}

.gch-job-search__toggle:hover {
  color: #fff;
}

.gch-job-search__chevron {
  transition: transform 0.2s ease;
}

.gch-job-search__panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.gch-job-search__row--filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gch-job-search__label--dark {
  color: rgba(255, 255, 255, 0.8);
}

.gch-job-search__select--dark {
  background: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #0f172a;
}

.gch-job-search__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.gch-job-search__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.gch-job-search__checkbox-label input[type="checkbox"] {
  accent-color: #f59e0b;
}

.gch-job-search__active-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.gch-job-search__clear {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 500;
}

.gch-job-search__clear:hover {
  color: #f59e0b;
  text-decoration: underline;
}

/* Jobs result meta */
.gch-jobs-meta {
  font-size: 0.9rem;
  color: #64748b;
}

/* Search form responsive */
@media (max-width: 768px) {
  .gch-job-search__btn {
    margin-top: 0.5rem;
  }

  .gch-job-search__row--filters {
    flex-direction: column;
  }

  .gch-hero h1 {
    font-size: 2.25rem !important;
  }

  .gch-region-hero h1 {
    font-size: 2rem !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .gch-header,
  .gch-footer,
  .gch-aa-cta-section,
  .gch-region-bar,
  .gch-newsletter {
    display: none !important;
  }
}
