/* ============================================
   Guides Index — Master Cards Premium
   ============================================ */

.guides-page {
  background: #030303;
}

/* --- Hero (compact, above fold) --- */
.guides-hero {
  padding: 24px 0 32px;
}

.guides-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c6aef;
  margin-bottom: 12px;
}

.guides-hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f5f7;
  margin-bottom: 10px;
}

.guides-hero__desc {
  font-size: 1.0625rem;
  color: #666680;
  max-width: 480px;
}

/* --- Grid layout --- */
.guides-grid-section {
  padding: 0 0 80px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===========================================
   MASTER CARD (gcard)
   =========================================== */

/* Accent colors via data attribute */
.gcard[data-accent="violet"]  { --accent: 124, 106, 239; }
.gcard[data-accent="amber"]   { --accent: 245, 189, 65;  }
.gcard[data-accent="cyan"]    { --accent: 0, 206, 201;   }
.gcard[data-accent="green"]   { --accent: 52, 211, 153;  }

.gcard {
  --accent: 124, 106, 239;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: linear-gradient(160deg, #0a0a0f 0%, #060608 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gcard:hover {
  border-color: rgba(var(--accent), 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(var(--accent), 0.06);
}

/* Glow behind card on hover */
.gcard__glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--accent), 0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gcard:hover .gcard__glow {
  opacity: 1;
}

/* --- Badges --- */
.gcard__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.gcard__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--accent));
  background: rgba(var(--accent), 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.gcard__badge--outline {
  background: transparent;
  border: 1px solid rgba(var(--accent), 0.25);
}

/* --- Visual (product image) --- */
.gcard__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  aspect-ratio: 16 / 10;
}

.gcard__visual--compact {
  min-height: 140px;
  margin-bottom: 16px;
}

.gcard__img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.gcard:hover .gcard__img {
  transform: scale(1.05);
}

/* --- Text --- */
.gcard__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.gcard__desc {
  font-size: 0.8125rem;
  color: #555570;
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* --- Specs flash (icons + text) --- */
.gcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.gcard__spec {
  font-size: 0.75rem;
  color: #888898;
  white-space: nowrap;
}

/* --- CTA footer --- */
.gcard__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--accent));
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.gcard:hover .gcard__cta {
  opacity: 1;
}

.gcard__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.gcard:hover .gcard__arrow {
  transform: translateX(5px);
}

/* ===========================================
   FEATURED CARD (Gaming — 2 cols wide)
   =========================================== */
.gcard--featured {
  grid-column: 1 / 3;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 36px 40px;
}

.gcard--featured .gcard__text {
  flex: 1;
}

.gcard--featured .gcard__visual {
  flex: 0 0 280px;
  min-height: auto;
  margin-bottom: 0;
}

.gcard--featured .gcard__img {
  max-height: 220px;
}

.gcard--featured .gcard__title {
  font-size: 1.5rem;
}

.gcard--featured .gcard__desc {
  font-size: 0.9375rem;
  max-width: 380px;
}

.gcard--featured .gcard__glow {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 70%;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gcard--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .guides-hero__title {
    font-size: 2rem;
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .gcard--featured {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }
  .gcard--featured .gcard__visual {
    flex: none;
    width: 100%;
  }
  .gcard--featured .gcard__title {
    font-size: 1.25rem;
  }
}

/* ===========================================
   FILTER BAR
   =========================================== */
.guides-filters {
  padding: 0 0 24px;
  position: sticky;
  top: 70px;
  z-index: 20;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guides-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0 6px;
}

.gf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #555570;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.gf-pill:hover {
  color: #ccc;
  border-color: rgba(255, 255, 255, 0.15);
}

.gf-pill--active {
  color: #fff;
  background: rgba(124, 106, 239, 0.15);
  border-color: rgba(124, 106, 239, 0.4);
}

.gf-pill__count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #7c6aef;
  font-family: 'JetBrains Mono', monospace;
}

.guides-filter-count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #555570;
  min-height: 1.2em;
}

/* Empty state */
.guides-empty {
  text-align: center;
  padding: 80px 20px;
  color: #555570;
  font-size: 1rem;
}

/* Animation on filter */
.gcard {
  animation: gcard-in 0.3s ease;
}

@keyframes gcard-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
