/**
 * @file
 * Content Showcase component styles — brand-colour redesign.
 *
 * Mirrors designs/content-showcase-mockup.html exactly.
 * Primary selectors: cs-* (maps 1-to-1 to mockup classes).
 * Drupal content-showcase__* classes are present in HTML for semantic compat
 * but CSS is driven by cs-* to keep a pixel-perfect design reference.
 *
 * Brand tokens:
 *   --brand-orange:    #ff5c00
 *   --brand-navy-deep: #020c18
 *   --brand-navy-mid:  #00264d
 *   --brand-navy-light:#003a75
 *   Oswald (headings) + Inter (body)
 */

/* ==========================================================================
   Shared section wrapper
   ========================================================================== */

.cs-showcase,
.content-showcase {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture overlay */
.cs-showcase::before,
.content-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cs-showcase--dark::before,
.content-showcase--dark::before {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

.cs-showcase--light::before,
.content-showcase--light::before {
  background-image:
    linear-gradient(rgba(2,12,24,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,12,24,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ==========================================================================
   Colour variants
   ========================================================================== */

.cs-showcase--dark,
.content-showcase--dark {
  background: linear-gradient(160deg, #020c18 0%, #00264d 60%, #031a30 100%);
}

.cs-showcase--light,
.content-showcase--light {
  background: #ffffff;
}

/* ==========================================================================
   Container
   ========================================================================== */

section.content-showcase .cs-container {
  /*max-width: 1200px;*/
  /*margin: 0 auto;*/
  /*padding: 0 32px;*/
  /*position: relative;*/
}

/* ==========================================================================
   Section header
   ========================================================================== */

section.content-showcase .cs-header,
.content-showcase__header {
  text-align: center;
  margin-bottom: 64px;
}

/* Eyebrow label */
section.content-showcase .cs-eyebrow,
.content-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff5c00;
  margin-bottom: 16px;
}

section.content-showcase .cs-eyebrow::before,
section.content-showcase .cs-eyebrow::after,
.content-showcase__eyebrow::before,
.content-showcase__eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #ff5c00;
}

/* Section title */
section.content-showcase .cs-title,
.content-showcase__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cs-showcase--dark .cs-title,
.content-showcase--dark .content-showcase__title {
  color: #ffffff;
}

.cs-showcase--light .cs-title,
.content-showcase--light .content-showcase__title {
  color: #020c18;
}

/* Orange highlighted word inside title */
section.content-showcase .cs-title span,
.content-showcase__title span {
  color: #ff5c00;
}

/* Section description */
section.content-showcase .cs-desc,
.content-showcase__description {
  font-size: 1.10rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.cs-showcase--dark .cs-desc,
.content-showcase--dark .content-showcase__description {
  color: rgba(255,255,255,.55);
}

.cs-showcase--light .cs-desc,
.content-showcase--light .content-showcase__description {
  color: #4a5568;
}

/* ==========================================================================
   Card grid
   ========================================================================== */

section.content-showcase .cs-grid,
.content-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ==========================================================================
   Card base
   ========================================================================== */

section.content-showcase .cs-card,
.content-showcase__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease,
              background .3s ease;
}

/* Left-edge orange accent on hover */
section.content-showcase .cs-card::after,
.content-showcase__card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .3s ease;
}

section.content-showcase .cs-card:hover,
.content-showcase__card:hover {
  transform: translateY(-4px);
}

section.content-showcase .cs-card:hover::after,
.content-showcase__card:hover::after {
  background: #ff5c00;
}

/* Dark card */
.cs-showcase--dark .cs-card,
.content-showcase--dark .content-showcase__card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
}

.cs-showcase--dark .cs-card:hover,
.content-showcase--dark .content-showcase__card:hover {
  border-color: rgba(255,92,0,.4);
  background: rgba(255,255,255,.07);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

/* Light card */
.cs-showcase--light .cs-card,
.content-showcase--light .content-showcase__card {
  background: #ffffff;
  border: 1px solid #e8edf3;
  box-shadow: 0 2px 12px rgba(2,12,24,.06);
}

.cs-showcase--light .cs-card:hover,
.content-showcase--light .content-showcase__card:hover {
  border-color: rgba(255,92,0,.4);
  box-shadow: 0 16px 40px rgba(2,12,24,.12);
}

/* ==========================================================================
   Card image / gradient placeholder
   ========================================================================== */

section.content-showcase .cs-card__image,
.content-showcase__image-wrapper {
  height: 188px;
  overflow: hidden;
  flex-shrink: 0;
}

section.content-showcase .cs-card__image img,
section.content-showcase .cs-card__image .cs-gradient,
.content-showcase__image-wrapper img,
.content-showcase__image-wrapper .content-showcase__gradient {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Brand gradient placeholders (cycle via cs-gradient--1/2/3) */
section.content-showcase .cs-gradient--1 { background: linear-gradient(135deg, #ff5c00 0%, #7a1f00 100%); }
section.content-showcase .cs-gradient--2 { background: linear-gradient(135deg, #003a75 0%, #ff5c00 100%); }
section.content-showcase .cs-gradient--3 { background: linear-gradient(135deg, #020c18 0%, #003a75 100%); }

/* ==========================================================================
   Card body
   ========================================================================== */

section.content-showcase .cs-card__body,
.content-showcase__content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* ==========================================================================
   Category badge
   ========================================================================== */

section.content-showcase .cs-badge,
.content-showcase__category {
  display: inline-block;
  width: fit-content;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 14px;
  border-radius: 15px;
}

.cs-showcase--dark .cs-badge,
.content-showcase--dark .content-showcase__category {
  background: rgba(255,92,0,.12);
  color: #ff5c00;
  border: 1px solid rgba(255,92,0,.25);
}

.cs-showcase--light .cs-badge,
.content-showcase--light .content-showcase__category {
  background: rgba(255,92,0,.10);
  color: #cc4700;
  border: 1px solid rgba(255,92,0,.2);
}

/* ==========================================================================
   Card title
   ========================================================================== */

section.content-showcase .cs-card__title,
.content-showcase__card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em !important;
  line-height: 1.3 !important;
  transition: color .25s ease;
}

.cs-showcase--dark .cs-card__title,
.content-showcase--dark .content-showcase__card-title {
  color: #ffffff;
}

.cs-showcase--light .cs-card__title,
.content-showcase--light .content-showcase__card-title {
  color: #020c18;
}

.cs-showcase--dark .cs-card:hover .cs-card__title,
.content-showcase--dark .content-showcase__card:hover .content-showcase__card-title {
  color: #ff5c00;
}

.cs-showcase--light .cs-card:hover .cs-card__title,
.content-showcase--light .content-showcase__card:hover .content-showcase__card-title {
  color: #ff5c00;
}

/* ==========================================================================
   Card summary
   ========================================================================== */

section.content-showcase .cs-card__summary,
.content-showcase__summary {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.65;
  flex: 1;
}

.cs-showcase--dark .cs-card__summary,
.content-showcase--dark .content-showcase__summary {
  color: rgba(255,255,255,.55);
}

.cs-showcase--light .cs-card__summary,
.content-showcase--light .content-showcase__summary {
  color: #4a5568;
}

/* ==========================================================================
   Meta row (date + reading time)
   ========================================================================== */

section.content-showcase .cs-card__meta,
.content-showcase__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: 0.8125rem;
  gap: 8px;
}

.cs-showcase--dark .cs-card__meta,
.content-showcase--dark .content-showcase__meta {
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.35);
}

.cs-showcase--light .cs-card__meta,
.content-showcase--light .content-showcase__meta {
  border-top: 1px solid #e8edf3;
  color: #718096;
}

section.content-showcase .cs-meta-item,
.content-showcase__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.content-showcase__icon {
  flex-shrink: 0;
}

/* ==========================================================================
   CTA button
   ========================================================================== */

section.content-showcase .cs-cta-wrap,
.content-showcase__cta-wrap {
  text-align: center;
  margin-top: 56px;
}

section.content-showcase .cs-cta,
.content-showcase__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  transition: all .3s ease;
}

.cs-cta-icon,
.content-showcase__cta-icon {
  transition: transform .3s ease;
  flex-shrink: 0;
}

section.content-showcase .cs-cta:hover .cs-cta-icon,
.content-showcase__cta:hover .content-showcase__cta-icon {
  transform: translateX(5px);
}

/* Dark CTA */
.cs-showcase--dark .cs-cta,
.content-showcase--dark .content-showcase__cta {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #ffffff;
}

.cs-showcase--dark .cs-cta:hover,
.content-showcase--dark .content-showcase__cta:hover {
  border-color: #ff5c00;
  background: rgba(255,92,0,.08);
  color: #ff5c00;
  transform: translateY(-2px);
}

/* Light CTA */
.cs-showcase--light .cs-cta,
.content-showcase--light .content-showcase__cta {
  background: #ff5c00;
  border: 2px solid #ff5c00;
  color: #ffffff;
}

.cs-showcase--light .cs-cta:hover,
.content-showcase--light .content-showcase__cta:hover {
  background: #cc4700;
  border-color: #cc4700;
  box-shadow: 0 8px 20px rgba(255,92,0,.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  section.content-showcase .cs-grid,
  .content-showcase__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .cs-showcase,
  .content-showcase {
    padding: 60px 0;
  }

  section.content-showcase .cs-title,
  .content-showcase__title {
    font-size: 1.75rem;
  }

  section.content-showcase .cs-desc,
  .content-showcase__description {
    font-size: 1rem;
  }

  section.content-showcase .cs-card__meta,
  .content-showcase__meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  section.content-showcase .cs-grid,
  .content-showcase__grid {
    grid-template-columns: 1fr;
  }
}
