/**
 * Featured Category Showcase for Elementor
 * Stylesheet (Version 2.0.0 - Roha Studios)
 */

:root {
  --fcs-primary: #ff404a;
  --fcs-primary-hover: #ff2833;
  --fcs-bg: #070d18;
  --fcs-card-bg: #0c1421;
  --fcs-card-border: rgba(255, 255, 255, 0.08);
  --fcs-card-radius: 18px;
  --fcs-text-light: #ffffff;
  --fcs-text-muted: #8e9cb2;
  --fcs-pill-inactive-bg: #121a28;
  --fcs-pill-inactive-text: #94a3b8;
  --fcs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fcs-showcase-container {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--fcs-text-light);
}

/* Header Section */
.fcs-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  box-sizing: border-box;
}

.fcs-header-text {
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
}

.fcs-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fcs-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.fcs-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--fcs-text-light);
  letter-spacing: -0.5px;
}

/* Filter Toggles */
.fcs-filters-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

.fcs-filter-btn {
  appearance: none;
  border: 1px solid var(--fcs-card-border);
  outline: none;
  cursor: pointer;
  background: var(--fcs-pill-inactive-bg);
  color: var(--fcs-pill-inactive-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  transition: var(--fcs-transition);
  user-select: none;
  white-space: nowrap;
}

.fcs-filter-btn:hover {
  background: #172235;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.fcs-filter-btn.is-active {
  background: var(--fcs-primary);
  color: #ffffff;
  border-color: var(--fcs-primary);
  box-shadow: 0 4px 14px rgba(255, 64, 74, 0.35);
}

/* Grid Layout */
.fcs-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-sizing: border-box;
}

/* Category Card - 100% Clickable Link */
.fcs-card {
  position: relative;
  background: var(--fcs-card-bg);
  border: 1px solid var(--fcs-card-border);
  border-radius: var(--fcs-card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--fcs-transition);
  opacity: 1;
  transform: scale(1);
}

.fcs-card:hover,
.fcs-card:focus {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  color: inherit;
}

.fcs-card.fcs-item-hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.95);
}

.fcs-card.fcs-anim-fade-in {
  animation: fcsFadeIn 0.35s ease forwards;
}

@keyframes fcsFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Image Wrap */
.fcs-card-image-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: #090f19;
}

.fcs-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.fcs-card:hover .fcs-card-image {
  transform: scale(1.05);
}

/* Floating Badge inside Image */
.fcs-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.3;
}

/* Card Body */
.fcs-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 16px;
}

.fcs-card-title {
  margin: 0 0 8px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fcs-text-light);
  transition: color 0.25s ease;
}

.fcs-card:hover .fcs-card-title {
  color: var(--fcs-primary);
}

.fcs-card-description {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fcs-text-muted);
  flex-grow: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .fcs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile View - Tight spacing eliminating gaps between heading, filters, and cards */
@media (max-width: 767px) {
  .fcs-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fcs-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px !important;
  }

  .fcs-header-text {
    width: 100%;
    margin: 0 !important;
  }

  .fcs-eyebrow {
    margin-bottom: 4px !important;
    font-size: 11.5px;
  }

  .fcs-title {
    margin: 0 !important;
    font-size: 24px;
    line-height: 1.25;
  }

  .fcs-filters-wrap {
    width: 100%;
    gap: 8px;
    margin-top: 2px;
  }

  .fcs-filter-btn {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .fcs-card-image-wrap {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .fcs-header-wrap {
    gap: 10px;
    margin-bottom: 16px !important;
  }

  .fcs-title {
    font-size: 22px;
  }

  .fcs-card {
    padding: 14px;
  }
}
