/* Visual Guides hub — editorial carousel catalog (v1.2.2.5) */

.vg-hub {
  --vg-accent: #6366f1;
  --vg-accent-rgb: 99, 102, 241;
  --vg-cyan: #22d3ee;
  --vg-ink: #0b1220;
  --vg-pad: clamp(1rem, 4vw, 2rem);
}

.vg-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 14vw, 8rem) 0 clamp(2.25rem, 6vw, 3.5rem);
  background:
    radial-gradient(ellipse 85% 65% at 12% 0%, rgba(99, 102, 241, 0.24), transparent 58%),
    radial-gradient(ellipse 50% 45% at 95% 20%, rgba(34, 211, 238, 0.16), transparent 52%),
    linear-gradient(165deg, #04050a 0%, #0a0814 42%, #111827 100%);
}

.vg-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 35% 15%, #000, transparent 75%);
  pointer-events: none;
}

.vg-hero__glow {
  position: absolute;
  top: -20%;
  right: -5%;
  width: 45%;
  height: 60%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.vg-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  padding-inline: var(--vg-pad);
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .vg-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.vg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
  font-family: var(--ff-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.vg-hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vg-accent), var(--vg-cyan));
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.85);
}

.vg-hero__title {
  font-family: var(--ff-head, 'Sora', sans-serif);
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f8fafc;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.vg-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #c4b5fd 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vg-hero__desc {
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  line-height: 1.65;
  color: #94a3b8;
  max-width: 42ch;
  margin: 0;
}

.vg-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.vg-hero__pill {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.vg-search {
  position: relative;
  align-self: stretch;
}

.vg-search__input {
  width: 100%;
  height: 56px;
  padding: 0 3rem 0 3.1rem;
  font-size: 0.95rem;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

@media (min-width: 900px) {
  .vg-search__input {
    height: 100%;
    min-height: 120px;
    padding-top: 1.25rem;
    align-self: stretch;
    border-radius: 20px;
  }
}

.vg-search__input::placeholder { color: rgba(148, 163, 184, 0.75); }

.vg-search__input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.vg-search__icon {
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  color: var(--vg-cyan);
  pointer-events: none;
}

.vg-search__clear {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #f87171;
}

.vg-catalog {
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 120px);
}

.vg-catalog__inner {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  padding-inline: var(--vg-pad);
}

.vg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 700px) {
  .vg-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (min-width: 1100px) {
  .vg-grid { grid-template-columns: repeat(3, 1fr); gap: 1.65rem; }
}

.vg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
}

@media (hover: hover) {
  .vg-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--vg-accent-rgb), 0.35);
    box-shadow: 0 22px 48px rgba(99, 102, 241, 0.16);
  }
  .vg-card:hover .vg-card__img { transform: scale(1.05); }
  .vg-card:hover .vg-card__cta-icon { transform: translateX(4px); }
}

.vg-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.vg-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.vg-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.82) 0%, transparent 58%);
  pointer-events: none;
}

.vg-card__badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--vg-accent), #4f46e5);
  border-radius: 8px;
}

.vg-card__slides {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  min-width: 40px;
  height: 40px;
  padding: 0 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.vg-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.25rem 1.35rem;
}

.vg-card__title {
  font-family: var(--ff-head, 'Sora', sans-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--vg-ink);
  margin: 0 0 0.55rem;
}

.vg-card__desc {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.vg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vg-accent);
}

.vg-card__meta {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  white-space: nowrap;
}

.vg-empty {
  text-align: center;
  padding: clamp(3rem, 10vw, 5rem) 1.5rem;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  background: #fff;
}
