/* ==========================================================================
   CATALOG.CSS — COMPLETE & ORGANIZED
   ==========================================================================
   Author: AIO Vend
   Purpose: Catalog card showcase styles with horizontal layout, hover effects,
            responsive design, dark mode support, and pill/meta styling.
   ========================================================================== */

/* ===== GLOBAL SHOWCASE STYLES ===== */
.catalog-showcase {
  background: #f8fafc;
  padding: 4rem 2rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
}

.catalog-showcase__head {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.catalog-showcase__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.catalog-showcase__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.catalog-showcase__subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto;
}

.catalog-showcase__cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.catalog-showcase__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  width: 500px;
  margin-bottom: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.65);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.catalog-showcase__btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

/* ===== CATALOG GRID: HORIZONTAL ROW ===== */
.catalog-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

/* ===== CATALOG CARD BASE ===== */
.catalog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  flex: 1 1 calc(25% - 1.5rem); /* 4 cards per row */
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 300px;
}

/* Hover Effects */
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow:
    20px 20px 0px #10b98130,
    20px 0 25px #2563eb30;
}

/* ===== CARD IMAGE ===== */
.catalog-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-card__image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
  transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card__image img {
  transform: translate(-50%, -50%) scale(1.03);
}

/* ===== CARD CONTENT ===== */
.catalog-card__content {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.catalog-card__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #111827;
  transition: color 0.3s ease;
}

.catalog-card__content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* ===== CARD PILLS ===== */
.catalog-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.catalog-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
  background: #e0f2fe;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== CARD META ===== */
.catalog-card__meta {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  margin-top: auto;
}

.catalog-state {
  font-weight: 600;
  color: #111827;
}

/* ===== CARD HOVER COLOR CHANGES ===== */
.catalog-card:hover h3 {
  color: #2563eb;
}

.catalog-card:hover .catalog-card__meta {
  color: #374151;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] .catalog-showcase {
  background: #111111;
  color: #f3f4f6;
}

[data-theme="dark"] .catalog-card {
  background: #1a1a1a;
}

[data-theme="dark"] .catalog-card__image {
  background: #2a2a2a;
}

[data-theme="dark"] .catalog-card__content h3 {
  color: #ffffff;
}

[data-theme="dark"] .catalog-card__content p {
  color: #888f9c;
}

[data-theme="dark"] .catalog-card__meta {
  color: #d4d6da;
}

[data-theme="dark"] .catalog-card:hover .catalog-card__meta {
  color: #ffffff;
}

[data-theme="dark"] .catalog-showcase__btn {
  background: #2563eb;
  color: #ffffff;
}

[data-theme="dark"] .catalog-showcase__btn:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .catalog-card {
    flex: 1 1 calc(50% - 1rem);
  }

  .catalog-showcase__head {
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .catalog-card {
    flex: 1 1 100%;
  }

  .catalog-showcase__btn {
    padding: 0.85rem 2.5rem;
    font-size: 0.9rem;
    width: auto;
  }
}

@media (max-width: 480px) {
  .catalog-showcase__grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .catalog-showcase__head {
    padding: 0 1rem;
  }
}




