/*==============================================================================
STATSCALAR ENTERPRISE - INDUSTRY-GLANCE BLADE STYLES
Version: 2.0
Page: Industry Intelligence Directory
Framework: Laravel Blade + Bootstrap
Author: Balagali
Description: Styling for the industry-at-a-glance directory page — hero,
industry taxonomy discovery, industry collection blocks with intelligence
tiles, platform capability highlights, and closing CTA.
==============================================================================*/

/*==============================================================================
01. INDUSTRY HERO - Page Header
==============================================================================*/
.ss-industry-hero {
  padding: 35px 0;
  background: linear-gradient(135deg, #f8fcfa 0%, #eef9f3 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e8eef3;
}

.ss-industry-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(0, 168, 107, 0.06);
}

.ss-industry-content {
  position: relative;
  z-index: 2;
}

.ss-industry-content h1 {
  font-size: 45px;
  letter-spacing: 1px;
  font-weight: 800;
  line-height: 1.15;
  margin: 22px 0;
  color: var(--ss-heading);
  max-width: 760px;
}

.ss-industry-content p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 700px;
  color: var(--ss-muted);
  margin-bottom: 42px;
}

.ss-industry-content p:last-child {
  margin-bottom: 0;
}

/* Hero Meta Stats */
.ss-industry-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

/* .ss-industry-page prefix: details-blade.css also defines .ss-meta-item
   (a totally different bordered-list treatment) and this file was winning
   the cascade there, since it loads later in header.blade.php's global
   stylesheet list. Scoping stops this page's rules from matching outside
   its own markup. */
.ss-industry-page .ss-meta-item {
  background: #fff;
  padding: 20px 28px;
  border-radius: 18px;
  border: 1px solid var(--ss-border);
  box-shadow: var(--ss-shadow-sm);
  min-width: 150px;
  transition: var(--ss-transition);
}

.ss-industry-page .ss-meta-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--ss-shadow);
}

.ss-industry-page .ss-meta-item strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--ss-primary);
  margin-bottom: 6px;
}

.ss-industry-page .ss-meta-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ss-muted);
}

/* Hero Side Card */
.ss-industry-side {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ss-side-card {
  background: #fff;
  border-radius: 24px;
  padding: 34px;
  width: 100%;
  box-shadow: var(--ss-shadow);
  border: 1px solid var(--ss-border);
}

.ss-side-card h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--ss-heading);
}

.ss-side-card ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-side-card li {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--ss-text);
}

.ss-side-card li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ss-primary);
  margin-right: 14px;
  flex-shrink: 0;
}

.ss-side-card li:last-child {
  margin-bottom: 0;
}

/*==============================================================================
02. INDUSTRY DISCOVERY HEADER - Directory Intro + Stats
==============================================================================*/
.ss-industry-discovery {
  margin-bottom: 20px;
}

.ss-discovery-heading h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 20px 0 18px;
  color: var(--ss-heading);
}

.ss-discovery-heading p {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ss-muted);
}

.ss-discovery-heading p:last-child {
  margin-bottom: 0;
}

/* Directory Stats Cards */
.ss-directory-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: stretch;
  margin-top: 18px;
}

.ss-directory-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.ss-directory-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 34px;
  font-weight: 800;
  color: var(--ss-primary);
}

.ss-directory-card span {
  font-size: 18px;
  color: var(--ss-muted);
}

.ss-directory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ss-shadow);
}

/*==============================================================================
03. INDUSTRY COLLECTION BLOCK - Grouped Industry Container
==============================================================================*/
.ss-industry-block {
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: 26px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--ss-shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
  position: relative;
  background-clip: padding-box;
}

.ss-industry-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--ss-primary), #34d399);
}

.ss-industry-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--ss-shadow-lg);
}

.ss-industry-block:last-child {
  margin-bottom: 0;
}

/* Block Header */
.ss-industry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.ss-industry-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ss-industry-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 24px;
  background: var(--ss-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-primary);
  flex-shrink: 0;
  transition:
    background 0.30s ease,
    color 0.30s ease,
    transform 0.30s ease;
}

.ss-industry-block:hover .ss-industry-icon {
  transform: scale(1.08);
}

.ss-industry-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ss-primary);
  margin-bottom: 4px;
}

.ss-industry-header h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ss-heading);
  margin: 0;
}

.ss-industry-count {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 999px;
  background: var(--ss-primary-light);
  color: var(--ss-primary);
  font-weight: 700;
  white-space: nowrap;
}

/*==============================================================================
04. INTELLIGENCE AREA TILES - Sub-Category Grid
==============================================================================*/
.industry-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ss-intelligence-card {
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: 16px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
}

.ss-intelligence-card a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: inherit;
  min-height: 64px;
  text-decoration: none;
}

.ss-intelligence-card:hover {
  transform: translateY(-4px);
  border-color: var(--ss-primary);
  box-shadow: var(--ss-shadow);
}

.ss-intelligence-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ss-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-primary);
  font-size: 16px;
  flex-shrink: 0;
  transition:
    background 0.30s ease,
    color 0.30s ease,
    transform 0.30s ease;
}

.ss-intelligence-card:hover .ss-intelligence-icon {
  background: var(--ss-primary);
  color: #fff;
  transform: scale(1.08);
}

.ss-intelligence-content {
  flex: 1;
  min-width: 0;
}

.ss-intelligence-content h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ss-heading);
  word-break: break-word;
}

/* Secondary label intentionally hidden for a cleaner tile (kept in markup for a11y/SEO) */
.ss-intelligence-content span {
  display: none;
}

.ss-intelligence-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-primary);
  font-size: 12px;
  transition: var(--ss-transition);
  flex-shrink: 0;
}

.ss-intelligence-card:hover .ss-intelligence-arrow {
  background: var(--ss-primary);
  color: #fff;
  transform: translateX(3px);
}

/*==============================================================================
05. PLATFORM CAPABILITY HIGHLIGHTS

.ss-industry-page prefix: details-blade.css also defines .ss-intelligence-
highlights / .ss-highlight-card / .ss-highlight-icon (with much larger
padding: 112px / 42px 34px) and this file was winning the cascade there
since it loads later in header.blade.php's global stylesheet list -- it was
silently squashing the product details page's own highlights section.
==============================================================================*/
.ss-industry-page .ss-intelligence-highlights {
  padding: 20px 0;
  background: #f8fafc;
  margin-top: 10px;
  overflow: hidden;
}

.ss-industry-page .ss-highlight-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  box-shadow: var(--ss-shadow-sm);
  margin-bottom: 30px;
  background-clip: padding-box;
}

.ss-industry-page .ss-highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ss-shadow-lg);
  border-color: var(--ss-primary);
}

.ss-industry-page .ss-highlight-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--ss-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--ss-primary);
  transition:
    background 0.30s ease,
    color 0.30s ease,
    transform 0.30s ease;
}

.ss-industry-page .ss-highlight-card:hover .ss-highlight-icon {
  background: var(--ss-primary);
  color: #fff;
  transform: scale(1.08);
}

.ss-industry-page .ss-highlight-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ss-heading);
}

.ss-industry-page .ss-highlight-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ss-muted);
}

.ss-industry-page .ss-highlight-card p:last-child {
  margin-bottom: 0;
}

/*==============================================================================
06. INDUSTRY CTA - Closing Call to Action
==============================================================================*/
.ss-industry-cta {
  padding: 15px 0;
  background: linear-gradient(135deg, #eef9f3 0%, #f8fcfa 100%);
  overflow: hidden;
}

.ss-industry-cta-box {
  max-width: 900px;
  margin: auto;
  text-align: center;
  background: #fff;
  border-radius: 30px;
  padding: 60px 40px;
  border: 1px solid var(--ss-border);
  box-shadow: var(--ss-shadow-lg);
  position: relative;
  z-index: 2;
}

.ss-industry-cta-box h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 24px 0;
  color: var(--ss-heading);
}

.ss-industry-cta-box p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ss-muted);
}

.ss-industry-cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/*==============================================================================
07. RESPONSIVE DESIGN
==============================================================================*/

/* Large Tablet - 1200px and below */
@media (max-width: 1200px) {
  .ss-industry-header {
    gap: 24px;
  }
  
  .ss-industry-right {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
  
  .ss-industry-cta-box {
    max-width: 100%;
  }
  
  .industry-sub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet - 991px and below */
@media (max-width: 991px) {
  .ss-industry-hero {
    padding: 70px 0;
  }
  
  .ss-industry-content h1 {
    font-size: 40px;
  }
  
  .ss-industry-side {
    margin-top: 40px;
  }
  
  .ss-directory-stats {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  
  .ss-industry-block {
    padding: 30px;
    margin-bottom: 28px;
  }
  
  .ss-industry-header {
    align-items: flex-start;
    flex-direction: column;
  }
  
  .ss-industry-left {
    align-items: flex-start;
  }
  
  .ss-industry-right {
    margin-top: 10px;
  }
  
  .ss-industry-page .ss-intelligence-highlights {
    padding: 32px 0;
  }
}

/* Mobile - 767px and below */
@media (max-width: 767px) {
  .ss-industry-hero {
    text-align: center;
  }
  
  .ss-industry-content {
    max-width: 100%;
  }
  
  .ss-industry-content h1 {
    font-size: 32px;
  }
  
  .ss-industry-content p {
    font-size: 16px;
  }
  
  .ss-industry-meta {
    flex-direction: column;
  }
  
  .ss-industry-page .ss-meta-item {
    width: 100%;
  }
  
  .ss-industry-side {
    margin-top: 35px;
  }
  
  .ss-side-card {
    padding: 28px;
  }
  
  .ss-discovery-heading h2 {
    font-size: 30px;
  }
  
  .ss-directory-card {
    padding: 22px;
    text-align: center;
  }
  
  .ss-industry-block {
    padding: 24px;
  }
  
  .ss-industry-header h3 {
    font-size: 24px;
  }
  
  .ss-industry-icon {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  
  .ss-industry-count {
    width: 100%;
    justify-content: center;
  }
  
  .ss-industry-left {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  
  .ss-industry-right {
    justify-content: center;
  }
  
  .industry-sub-grid {
    grid-template-columns: 1fr;
  }
  
  .ss-intelligence-card a {
    padding: 15px 16px;
    min-height: 70px;
  }
  
  .ss-intelligence-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  
  .ss-intelligence-content h4 {
    font-size: 15px;
  }
  
  .ss-industry-page .ss-highlight-card {
    padding: 24px 20px;
  }

  .ss-industry-page .ss-highlight-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .ss-industry-page .ss-highlight-card h4 {
    font-size: 19px;
  }
  
  .ss-industry-cta-box {
    padding: 40px 24px;
  }
  
  .ss-industry-cta-box h2 {
    font-size: 28px;
  }
  
  .ss-industry-cta-box p {
    font-size: 16px;
  }
  
  .ss-industry-cta-actions {
    flex-direction: column;
  }
  
  .ss-industry-cta-actions .ss-btn {
    width: 100%;
  }
}

/*==============================================================================
08. ACCESSIBILITY & UTILITIES
==============================================================================*/
@media (prefers-reduced-motion: reduce) {
  .ss-industry-block,
  .ss-highlight-card,
  .ss-intelligence-card,
  .ss-directory-card,
  .ss-meta-item,
  .ss-industry-icon,
  .ss-highlight-icon,
  .ss-intelligence-icon,
  .ss-intelligence-arrow {
    transition: none;
    animation: none;
  }
  
  .ss-industry-block:hover,
  .ss-highlight-card:hover,
  .ss-intelligence-card:hover,
  .ss-directory-card:hover,
  .ss-meta-item:hover {
    transform: none;
  }
  
  .ss-industry-block:hover .ss-industry-icon,
  .ss-highlight-card:hover .ss-highlight-icon,
  .ss-intelligence-card:hover .ss-intelligence-icon {
    transform: none;
  }
}

.ss-intelligence-card a:focus-visible,
.ss-industry-cta-actions .ss-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.18);
}
