/* ===== CONSTRUCTION TECH INSIGHT ENHANCED STYLING =====
   Industrial-themed styling with construction orange/industry amber/safety green colors
   Professional construction-focused design for AI IoT content
   ================================================ */

/* Construction Tech Theme Variables */
.construction-tech-insight-theme {
  --construction-primary: #EA580C;
  --construction-secondary: #F59E0B;
  --construction-accent: #059669;
  --construction-success: #F97316;
  --construction-text: #374151;
  --construction-text-light: #6B7280;
  --gradient-construction: linear-gradient(135deg, #EA580C, #F97316, #F59E0B);
  --gradient-construction-light: linear-gradient(135deg, rgba(234, 88, 12, 0.05), rgba(249, 115, 22, 0.05), rgba(245, 158, 11, 0.05));
  --gradient-safety: linear-gradient(135deg, #059669, #10B981, #34D399);
  --gradient-industrial: linear-gradient(135deg, #F59E0B, #EAB308, #FBBF24);
}

/* Override base article theme with construction colors */
.construction-tech-insight-theme.insight-article-theme {
  --insight-article-primary: #EA580C;
  --insight-article-secondary: #F59E0B;
  --insight-article-accent: #059669;
  --gradient-article: linear-gradient(135deg, #EA580C, #F97316, #F59E0B);
  --gradient-article-light: linear-gradient(135deg, rgba(234, 88, 12, 0.05), rgba(249, 115, 22, 0.05), rgba(245, 158, 11, 0.05));
}

/* Enhanced Construction Header */
.construction-tech-insight-theme .insight-header {
  background: var(--gradient-construction);
  position: relative;
  overflow: hidden;
}

.construction-tech-insight-theme .insight-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
  animation: constructionBuild 25s ease-in-out infinite;
}

@keyframes constructionBuild {
  0%, 100% { 
    transform: translate(0, 0) scale(1) rotate(0deg); 
    opacity: 0.8;
  }
  25% { 
    transform: translate(35px, -25px) scale(1.1) rotate(1deg); 
    opacity: 0.9;
  }
  50% { 
    transform: translate(-25px, 35px) scale(0.9) rotate(-1deg); 
    opacity: 0.7;
  }
  75% { 
    transform: translate(30px, 20px) scale(1.05) rotate(0.5deg); 
    opacity: 0.85;
  }
}

/* Construction Building Icon */
.construction-tech-insight-theme .insight-category::before {
  content: '🏗️';
  margin-right: 0.5rem;
}

/* Enhanced Statistics with Construction Theme */
.construction-tech-insight-theme .stats-highlight {
  background: var(--gradient-construction-light);
  border: 1px solid rgba(234, 88, 12, 0.15);
  position: relative;
}

.construction-tech-insight-theme .stats-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-construction);
}

.construction-tech-insight-theme .stat-item {
  background: white;
  border: 1px solid rgba(234, 88, 12, 0.1);
  position: relative;
  overflow: hidden;
}

.construction-tech-insight-theme .stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-construction);
}

.construction-tech-insight-theme .stat-item:hover {
  border-color: rgba(234, 88, 12, 0.2);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.1);
}

.construction-tech-insight-theme .stat-number {
  background: var(--gradient-construction);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AI Applications Section */
.construction-tech-insight-theme .ai-applications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.construction-tech-insight-theme .application-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(234, 88, 12, 0.1);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.construction-tech-insight-theme .application-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-safety);
}

.construction-tech-insight-theme .application-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-construction-light);
  transform: rotate(45deg);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: -1;
}

.construction-tech-insight-theme .application-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.15);
  border-color: rgba(234, 88, 12, 0.2);
}

.construction-tech-insight-theme .application-item:hover::after {
  opacity: 1;
}

.construction-tech-insight-theme .application-item h4 {
  color: var(--construction-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.construction-tech-insight-theme .application-item:nth-child(1) h4::before { content: '🤖'; }
.construction-tech-insight-theme .application-item:nth-child(2) h4::before { content: '📡'; }
.construction-tech-insight-theme .application-item:nth-child(3) h4::before { content: '📊'; }
.construction-tech-insight-theme .application-item:nth-child(4) h4::before { content: '⚡'; }

.construction-tech-insight-theme .application-item p {
  color: var(--construction-text);
  line-height: 1.6;
  margin: 0;
}

/* IoT Sensor Network Section */
.construction-tech-insight-theme .iot-network {
  background: var(--gradient-construction-light);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(234, 88, 12, 0.15);
  margin: 3rem 0;
  position: relative;
}

.construction-tech-insight-theme .iot-network::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-construction);
}

.construction-tech-insight-theme .iot-network h3 {
  color: var(--construction-primary);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.construction-tech-insight-theme .iot-network h3::before {
  content: '🌐 ';
}

.construction-tech-insight-theme .sensor-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.construction-tech-insight-theme .sensor-item {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.1);
  border-left: 3px solid var(--construction-accent);
  transition: all 0.3s ease;
}

.construction-tech-insight-theme .sensor-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.12);
  border-left-color: var(--construction-primary);
}

.construction-tech-insight-theme .sensor-item h4 {
  color: var(--construction-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.construction-tech-insight-theme .sensor-item:nth-child(1) h4::before { content: '🌡️'; }
.construction-tech-insight-theme .sensor-item:nth-child(2) h4::before { content: '📏'; }
.construction-tech-insight-theme .sensor-item:nth-child(3) h4::before { content: '⚡'; }
.construction-tech-insight-theme .sensor-item:nth-child(4) h4::before { content: '🔊'; }

.construction-tech-insight-theme .sensor-item .sensor-specs {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.construction-tech-insight-theme .sensor-item .sensor-specs li {
  color: var(--construction-text);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  position: relative;
}

.construction-tech-insight-theme .sensor-item .sensor-specs li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--construction-accent);
  font-weight: bold;
}

/* Safety Metrics Section */
.construction-tech-insight-theme .safety-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--gradient-construction-light);
  border-radius: 20px;
  border: 1px solid rgba(234, 88, 12, 0.1);
}

.construction-tech-insight-theme .safety-item {
  text-align: center;
  background: white;
  padding: 2rem 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.construction-tech-insight-theme .safety-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-safety);
}

.construction-tech-insight-theme .safety-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.1);
}

.construction-tech-insight-theme .safety-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-construction);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.construction-tech-insight-theme .safety-label {
  color: var(--construction-text-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Implementation Roadmap Section */
.construction-tech-insight-theme .implementation-roadmap {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 0;
}

.construction-tech-insight-theme .roadmap-container {
  position: relative;
  padding-left: 3rem;
}

.construction-tech-insight-theme .roadmap-container::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-construction);
}

.construction-tech-insight-theme .roadmap-item {
  position: relative;
  margin-bottom: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(234, 88, 12, 0.1);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
  transition: all 0.3s ease;
}

.construction-tech-insight-theme .roadmap-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--construction-primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.construction-tech-insight-theme .roadmap-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.2);
}

.construction-tech-insight-theme .roadmap-item h4 {
  color: var(--construction-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.construction-tech-insight-theme .roadmap-item .phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-construction);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.construction-tech-insight-theme .roadmap-item p {
  color: var(--construction-text);
  line-height: 1.6;
  margin: 0;
}

/* Technology ROI Section */
.construction-tech-insight-theme .technology-roi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minMax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.construction-tech-insight-theme .roi-case {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(234, 88, 12, 0.1);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.construction-tech-insight-theme .roi-case::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-industrial);
}

.construction-tech-insight-theme .roi-case:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.2);
}

.construction-tech-insight-theme .roi-case-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.construction-tech-insight-theme .roi-case-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-construction);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.construction-tech-insight-theme .roi-case-info h4 {
  color: var(--construction-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.construction-tech-insight-theme .roi-case-info .project-type {
  color: var(--construction-text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.construction-tech-insight-theme .roi-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.construction-tech-insight-theme .benefit-metric {
  text-align: center;
  background: var(--gradient-construction-light);
  padding: 1rem;
  border-radius: 12px;
}

.construction-tech-insight-theme .benefit-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--construction-primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.construction-tech-insight-theme .benefit-label {
  font-size: 0.75rem;
  color: var(--construction-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Challenges and Solutions Section */
.construction-tech-insight-theme .challenges-solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.construction-tech-insight-theme .challenge-item {
  background: var(--gradient-construction-light);
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--construction-primary);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
  transition: all 0.3s ease;
}

.construction-tech-insight-theme .challenge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.1);
  border-left-color: var(--construction-accent);
}

.construction-tech-insight-theme .challenge-item h4 {
  color: var(--construction-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.construction-tech-insight-theme .challenge-item h4::before {
  content: '🎯';
}

.construction-tech-insight-theme .challenge-item p {
  color: var(--construction-text);
  line-height: 1.6;
  margin: 0;
}

.construction-tech-insight-theme .challenge-item strong {
  color: var(--construction-accent);
  font-weight: 700;
}

/* Enhanced CTA with Construction Theme */
.construction-tech-insight-theme .insight-cta {
  background: linear-gradient(135deg, #DC2626 0%, #EA580C 100%);
}

.construction-tech-insight-theme .insight-cta::before {
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

/* Professional Footer with Construction Theme */
.construction-tech-insight-theme .footer {
  background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
  position: relative;
}

.construction-tech-insight-theme .footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.construction-tech-insight-theme .footer-title::before {
  content: '🏗️';
}

.construction-tech-insight-theme .footer-bottom::after {
  content: 'Building Tomorrow with Smart Technology 🤖';
  background: linear-gradient(135deg, #F97316, #F59E0B, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
  .construction-tech-insight-theme .ai-applications,
  .construction-tech-insight-theme .sensor-types,
  .construction-tech-insight-theme .technology-roi,
  .construction-tech-insight-theme .challenges-solutions {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .construction-tech-insight-theme .safety-metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }
  
  .construction-tech-insight-theme .roadmap-container {
    padding-left: 2rem;
  }
  
  .construction-tech-insight-theme .roadmap-item {
    padding: 1.5rem;
  }
  
  .construction-tech-insight-theme .iot-network {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .construction-tech-insight-theme .safety-metrics {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .construction-tech-insight-theme .roi-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .construction-tech-insight-theme .roadmap-container::before {
    left: 0.5rem;
  }
  
  .construction-tech-insight-theme .roadmap-item::before {
    left: -1.5rem;
  }
  
  .construction-tech-insight-theme .roi-case-header {
    flex-direction: column;
    text-align: center;
  }
}