/* Industry Detail Page Styles */

/* Industry Hero */
.industry-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #012a4a 100%);
  padding: 4rem 0;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.industry-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.industry-hero-text {
  color: white;
}

.industry-category {
  display: inline-block;
  background: rgba(0, 176, 176, 0.2);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.industry-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.industry-hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.industry-stats-inline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-inline i {
  font-size: 1.25rem;
  color: var(--accent);
}

.industry-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.industry-hero-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.industry-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(1, 4, 50, 0.3) 0%,
    rgba(0, 176, 176, 0.1) 100%
  );
}

/* Machines Section */
.machines-section {
  padding: 5rem 0;
  background: var(--bg-section);
}

.machine-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Machine List (for non-metal industries) */
.machines-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.machine-list-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  border-left: 4px solid var(--accent);
}

.machine-list-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.machine-number {
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: 50%;
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.machine-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Machine Slider (for metal-steel industry) */
.machines-slider-container {
  margin-top: 2rem;
  position: relative;
}

.machines-swiper {
  padding: 2rem 0;
  overflow: visible;
}

.machine-slide {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
}

.machine-slide:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.machine-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.machine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.machine-slide:hover .machine-image img {
  transform: scale(1.1);
}

.machine-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 4, 50, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.machine-slide:hover .machine-overlay {
  opacity: 1;
}

.machine-overlay i {
  font-size: 2rem;
  color: white;
}

.machine-content {
  padding: 2rem;
}

.machine-content h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.machine-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-brochure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-brochure:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-details:hover {
  background: var(--accent);
  color: white;
}

/* No Machines Message */
.no-machines-message {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  margin-top: 2rem;
}

.no-machines-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-machines-content i {
  font-size: 4rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.no-machines-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.no-machines-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Swiper Customization */
.machines-swiper .swiper-pagination {
  bottom: -1rem;
}

.machines-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--accent);
  opacity: 0.3;
}

.machines-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

.machines-swiper .swiper-button-next,
.machines-swiper .swiper-button-prev {
  color: var(--accent);
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  margin-top: -25px;
}

.machines-swiper .swiper-button-next:after,
.machines-swiper .swiper-button-prev:after {
  font-size: 20px;
  font-weight: 600;
}

.machines-swiper .swiper-button-next:hover,
.machines-swiper .swiper-button-prev:hover {
  background: var(--accent);
  color: white;
}

/* Industry Overview */
.industry-overview {
  padding: 5rem 0;
  background: white;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.overview-card {
  background: var(--bg-section);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.overview-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.overview-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.overview-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Related Industries */
.related-industries {
  padding: 5rem 0;
  background: var(--bg-section);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-card-content {
  padding: 1.5rem;
}

.related-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.related-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Industry CTA */
.industry-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #012a4a 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.industry-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 176, 176, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

.industry-cta .cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.industry-cta h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.industry-cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Machine Modal */
.machine-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
}

.machine-modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-dark);
}

.modal-body {
  padding: 3rem;
}

.modal-swiper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Loading States */
.loading-content {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.loading-content::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .industry-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .industry-hero h1 {
    font-size: 2rem;
  }

  .industry-hero p {
    font-size: 1rem;
  }

  .industry-stats-inline {
    flex-direction: column;
    gap: 0.75rem;
  }

  .industry-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .machines-list {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .machines-swiper .swiper-button-next,
  .machines-swiper .swiper-button-prev {
    display: none;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .modal-body {
    padding: 2rem;
  }

  .machine-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-brochure,
  .btn-details {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .industry-hero {
    padding: 2rem 0;
  }

  .industry-hero h1 {
    font-size: 1.75rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .industry-cta h2 {
    font-size: 1.75rem;
  }
}
