/* ===================================================================
   Showcase Gallery CSS
   Production-grade styling for Public Projects showcase pages
   =================================================================== */

/* Hero Section */
.showcase-hero {
  position: relative;
  overflow: hidden;
}

.showcase-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.showcase-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.showcase-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.showcase-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.showcase-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* Hero links to the paid packages (config["package_links"]). Own classes, not
   .btn variants: the Digalu theme's .btn background overrides Bootstrap's. */
.showcase-package-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.showcase-pkg-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #fff;
  color: #9a3412;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.showcase-pkg-btn:hover,
.showcase-pkg-btn:focus-visible {
  color: #7c2d12;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.showcase-pkg-btn--ghost {
  background: transparent;
  color: #fff;
}

.showcase-pkg-btn--ghost:hover,
.showcase-pkg-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Manufacturing cards: equipment summary + a single Preview button. */
.showcase-equip-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b45309;
}

.showcase-equip-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.showcase-equip-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 14px;
  color: #334155;
}

.showcase-equip-list li i {
  width: 18px;
  color: #b45309;
  text-align: center;
}

.showcase-equip-list li small {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-left: auto;
  color: #64748b;
  font-weight: 600;
}

.showcase-equip-list .showcase-equip-more {
  border-bottom: 0;
  color: #64748b;
  font-weight: 600;
}

.showcase-equip-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.showcase-equip-includes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 600;
}

.showcase-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.showcase-preview-btn:hover,
.showcase-preview-btn:focus-visible {
  background: #b45309;
  color: #fff;
  transform: translateY(-1px);
}

/* Card Styles */
.showcase-card {
  border-radius: 12px !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.showcase-card-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-card-meta .badge {
  font-size: 11px;
  font-weight: 500;
}

/* Tags */
.showcase-tag {
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 4px;
}

/* Sections Preview */
.showcase-sections-preview {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.showcase-section-item {
  display: flex;
  align-items: center;
  padding: 4px 0;
  color: #64748b;
}

.showcase-section-item i {
  width: 20px;
  font-size: 11px;
}

.showcase-section-item span {
  font-size: 13px;
}

/* Card Footer */
.showcase-card .card-footer {
  padding-top: 16px !important;
}

/* Dropdown */
.showcase-card .dropdown-menu {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 4px;
}

.showcase-card .dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.showcase-card .dropdown-item:hover {
  background: #f8fafc;
}

/* CTA Section */
.showcase-page section:last-of-type {
  position: relative;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .showcase-hero .display-4 {
    font-size: 1.75rem;
  }

  .showcase-stats {
    gap: 8px !important;
  }

  .showcase-stat {
    padding: 8px 16px;
  }

  .showcase-stat-value {
    font-size: 18px;
  }
}

/* Font Awesome fix: ensure FA6 is loaded alongside Digalu's FA4 */
.showcase-page .fas,
.showcase-page .fa-solid,
.showcase-page .far,
.showcase-page .fab {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* Badge styling override for Bootstrap 5 compatibility */
.fs-7 {
  font-size: 0.85rem !important;
}
