/* ============================================
   GLOBALHIRE@ELAB — Guides / Knowledge Hub
   ============================================ */

/* ── Gradient Blobs ── */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.gradient-blob.blob-1 {
  top: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 232, 157, 0.06) 0%, transparent 70%);
  animation: float-slow 20s ease-in-out infinite;
}

.gradient-blob.blob-2 {
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.05) 0%, transparent 70%);
  animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Hero ── */
.guides-hero {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-12);
  text-align: center;
  position: relative;
}

.guides-hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.guides-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.guides-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* ── Search Bar ── */
.guides-search-bar {
  max-width: 560px;
  margin: 0 auto var(--space-6);
  position: relative;
}

.guides-search-field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--duration-base);
}

.guides-search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

.guides-search-field svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.guides-search-field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-body);
}

.guides-search-field input::placeholder {
  color: var(--text-tertiary);
}

/* ── Filter Chips ── */
.guides-filter-chips {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Guides Sections ── */
.guides-section {
  padding: var(--space-10) 0;
  position: relative;
}

.guides-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  text-align: left;
}

.guides-section .section-header-left {
  display: flex;
  flex-direction: column;
}

.guides-section .section-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: 0;
}

.section-badge {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  background: var(--primary-muted);
  border: 1px solid rgba(0, 232, 157, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Featured Guide ── */
.featured-guide {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 280px;
}

.featured-guide-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 232, 157, 0.08), rgba(124, 92, 255, 0.06));
  z-index: 0;
}

.featured-guide-content {
  position: relative;
  z-index: 1;
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  width: fit-content;
  padding: var(--space-1) var(--space-4);
  background: var(--primary);
  color: var(--bg-deep);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.featured-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.featured-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 500px;
  margin-bottom: var(--space-6);
}

.featured-guide-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.featured-icon-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(0, 232, 157, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.featured-icon-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 255, 0.15);
}

.featured-icon-ring svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

/* ── Carousel Wrapper ── */
.carousel-wrapper {
  position: relative;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-base);
  box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.carousel-arrow-left {
  left: -16px;
}

.carousel-arrow-right {
  right: -16px;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

/* ── Carousel ── */
.carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
  scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ── Country Cards ── */
.country-card {
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.country-card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.country-flag {
  font-size: 40px;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.country-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.country-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex: 1;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.meta-label {
  color: var(--text-tertiary);
}

.meta-value {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Visa Difficulty Dots ── */
.visa-dots {
  display: inline-flex;
  gap: 3px;
}

.visa-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border-default);
}

.visa-dots .dot.filled {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
}

.country-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

/* ── Guide Cards (for licensing, relocation, etc.) ── */
.guide-card {
  width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.guide-card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guide-card-badge {
  display: inline-flex;
  width: fit-content;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.guide-card-badge.cat-licensing {
  background: var(--primary-muted);
  color: var(--primary);
  border: 1px solid rgba(0, 232, 157, 0.2);
}

.guide-card-badge.cat-relocation {
  background: var(--secondary-muted);
  color: var(--secondary);
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.guide-card-badge.cat-job-hunting {
  background: rgba(255, 176, 32, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 176, 32, 0.2);
}

.guide-card-badge.cat-settling-in {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.guide-card-badge.cat-country {
  background: rgba(255, 77, 166, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(255, 77, 166, 0.2);
}

.guide-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  flex: 1;
}

.guide-card .guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.guide-card .read-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.guide-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
}

.guide-card .guide-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .carousel-arrow { display: none; }
  .featured-guide { grid-template-columns: 1fr; }
  .featured-guide-visual { display: none; }
}

@media (max-width: 768px) {
  .guides-hero { padding-top: calc(var(--header-height) + var(--space-8)); }
  .guides-hero h1 { font-size: var(--text-2xl); }
  .guides-filter-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .guides-filter-chips::-webkit-scrollbar { display: none; }
  .featured-guide-content { padding: var(--space-6); }
  .featured-title { font-size: var(--text-xl); }
  .country-card { width: 220px; }
  .guide-card { width: 240px; }
}
