/**
 * Design Hub Styles
 * 
 * Main stylesheet for the Lattice Design Hub
 */

:root {
  --primary-color: #ffc222;
}

/* Hide search bar on Design Hub pages */
body.design-hub-page .ast-search-menu-icon,
body.design-hub-page .slide-search,
body.design-hub-page .ast-search-icon,
body.design-hub-page header .search-field,
body.design-hub-page header .search-form,
body.design-hub-page .ast-header-search,
body.design-hub-page .ast-search-box,
body.design-hub-page .search-icon-wrap,
body.design-hub-page .ast-builder-layout-element.ast-search-menu-icon {
  display: none !important;
}

.design-hub-wrapper {
  padding: 2rem 0;
	
}
.design-hub-wrapper.bg-black.p-0 {
    border-bottom: 1px solid gray;
}
.design-hub-title {
  margin-bottom: 2rem;
  font-weight: 700;
}

.design-hub-content {
  margin-bottom: 0;
}

#design-hub-app {
  min-height: 400px;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 0.25rem;
}

/* Add your custom Design Hub styles below */

/* ========================================
   Global Link Components
   ======================================== */

/* Link with Chevron Arrow - Generic reusable link style */
.link-with-chevron {
  color: #1e9dd8;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.link-with-chevron:hover {
  color: #1e9dd8;
  text-decoration: none;
  transform: translateX(3px);
}

.link-with-chevron .chevron-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 6px;
  font-weight: 400;
}

.link-with-chevron:hover .chevron-icon {
  transform: translateX(4px);
}

/* ========================================
   Global Loading Indicators
   ======================================== */

/* Loading Overlay - Inline */
.table-loading-overlay,
.comparison-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}

/* Loading Overlay - Full Screen */
.comparison-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
}

.loading-spinner .spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1e9dd8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* ========================================
   Global Error Messages
   ======================================== */

.table-error-message,
.comparison-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}

.error-content {
  text-align: center;
  max-width: 500px;
}

.error-content i {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 20px;
}

.error-content p {
  color: #6c757d;
  font-size: 16px;
  margin-bottom: 20px;
}

.btn-retry {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-retry:hover {
  background: #005a87;
}

/** Hero Section */
.design-hub-wrapper.hero-section {
  height: 320px;
  display: flex;
  align-items: center;
  padding: 0;
  background-image: url("/wp-content/themes/astra-child/latticedesignhub/assets/images/help_me_choose_banner_3.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

@media screen and (min-width: 768px) {
  .design-hub-wrapper.hero-section .hero-image {
    display: none;
  }
}
@media screen and (max-width: 767.98px) {
  .design-hub-wrapper.hero-section {
    background-image: none;
    height: auto;
    padding: 40px 0;
  }
  .design-hub-wrapper.hero-section .hero-image {
    padding: 0;
  }
}
