/**
 * Showcase Page — Page-Specific Styles
 *
 * Styles for /showcase/ — the portfolio gallery page presenting Big Bang
 * Visibility's concept sites and landing pages.
 *
 * Layout: single section--dark surface containing an intro block, a Concept
 * Sites group, and a Landing Pages group. Each group has a label heading and
 * a two-column card grid (collapses to single-column at 768px and below).
 *
 * Card image dimensions: 550px × 344px (16:10 ratio, 1x display size).
 * 2x image files are 1100px × 688px.
 * sizes: (max-width: 768px) calc(100vw - 40px), (max-width: 1199px) calc(50vw - 50px), 550px
 *
 * Responsive Breakpoints (Desktop-First — matches site.css):
 * - Desktop: 1025px+ (base styles)
 * - Tablet:  max-width: 768px
 * - Mobile:  max-width: 480px
 */

/**
 * Semi-transparent colors (8-digit hex #RRGGBBAA — see coding-conventions.md):
 *   #ffffff1a  white  ~10%   group heading border-bottom
 *
 * Card image hover box-shadow uses var(--shadow-image-hover) from site.css — see
 * the Shadows section there for the raw value and documentation.
 */

/* ==========================================================================
   Showcase Section — Intro
   ========================================================================== */

/**
 * Intro block sits above the card grid inside the same section container.
 * Bottom margin separates it from the grid without adding a second section
 * and doubling the section padding.
 */
.showcase__intro {
  margin-bottom: var(--space-2xl);
}

/* Page heading (h1) — primary landmark for the page */
.showcase__heading {
  font-size: clamp(3rem, 4.9vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}


.showcase__body p {
  font-size: var(--font-size-large);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-light);
}

.showcase__body p + p {
  margin-top: var(--space-sm);
}

/* ==========================================================================
   Showcase Groups
   ========================================================================== */

/**
 * Groups separate Concept Sites from Landing Pages. Each group contains
 * a heading label and a .showcase-grid.
 */
.showcase-group + .showcase-group {
  margin-top: var(--space-3xl);
}

/* Group label — uppercase section divider above each grid */
.showcase-group__heading {
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted-dark);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid #ffffff1a;
}

/* ==========================================================================
   Showcase Grid
   ========================================================================== */

/**
 * Two-column grid at desktop. Collapses to single-column at 768px.
 * Gap is uniform: 6rem (60px) both between columns and between rows,
 * providing generous breathing room for content-heavy cards.
 *
 * Column width at max-width container (1200px):
 *   (1200 - 40px padding - 60px gap) / 2 = 550px per column
 */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

/* ==========================================================================
   Showcase Card
   ========================================================================== */

/**
 * Each card is an <article> — a self-contained composition with title,
 * description, and link per the HTML5 semantic definition.
 */
.showcase-card {
  display: flex;
  flex-direction: column;
}

/* Image container — enforces 16:10 aspect ratio and clips overflow */
.showcase-card__image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-md);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-card__image {
  box-shadow: var(--shadow-image-hover);
}

.showcase-card__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top;
  transform-origin: top center;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-card__image img {
  transform: scale(1.03);
}

/* Content area — flex column so CTA always anchors to the bottom */
.showcase-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Type badge — pill label identifying the item type */
.showcase-card__badge {
  display: inline-block;
  font-size: var(--font-size-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dark);
  background-color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

/* Card title (h3) */
.showcase-card__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}

/* Category subtitle — design rationale label, muted and italic */
.showcase-card__category {
  font-size: var(--font-size-small);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-muted-dark);
  margin-bottom: var(--space-md);
}

/* Card description — main expanded copy */
.showcase-card__description {
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* Quick-highlight bullets */
.showcase-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.showcase-card__highlights li {
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted-dark);
  padding-left: 2rem;
  position: relative;
}

.showcase-card__highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* CTA link — anchored to card bottom via flex + margin-top: auto */
.showcase-card__cta {
  display: inline-block;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  margin-top: auto;
  position: relative;
  transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated underline */
.showcase-card__cta::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--link-hover);
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-card__cta {
  color: var(--link-hover);
}

.showcase-card__cta:hover {
  color: var(--link-hover);
}

.showcase-card__cta:hover::after {
  width: 100%;
}

.showcase-card__cta:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   Responsive — Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Single-column grid — cards stack vertically */
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Responsive — Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .showcase-card__title {
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .showcase-card__image,
  .showcase-card__image img {
    transition: none;
  }

  .showcase-card:hover .showcase-card__image img {
    transform: none;
  }

  .showcase-card__cta,
  .showcase-card__cta::after {
    transition: none;
  }
}
