/* Prismatic Battery Solution CSS */

/* Main Diagram Section */
.diagram-section {
  padding: 3rem 0;
  background-color: #f9fafb;
}

.diagram-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: #1f2937;
}

.main-diagram-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Fullscreen Diagram Container */
.fullscreen-diagram-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
}

.diagram-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 0;
}

.diagram-wrapper:hover {
  transform: scale(1.01);
}

.main-diagram {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

.interactive-diagram:hover {
  transform: scale(1.02);
}

/* Overlay for hover effect */
.diagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.diagram-wrapper:hover .diagram-overlay {
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.zoom-indicator {
  background-color: rgba(255, 255, 255, 0.9);
  color: #374151;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.diagram-wrapper:hover .zoom-indicator {
  transform: translateY(0);
}

/* Modal for fullscreen image */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  border-radius: 0.5rem;
  background-color: white;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.close-modal {
  position: absolute;
  top: 1.25rem;
  right: 2.1875rem;
  color: #333;
  font-size: 2.5rem;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .diagram-wrapper {
    padding: 1rem;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 70vh;
  }
  
  .close-modal {
    top: 0.625rem;
    right: 1.25rem;
    font-size: 1.875rem;
  }
}

/* Diagram Labels */
.diagram-labels-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.diagram-label {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.875rem;
  color: #374151;
}

.label-connector {
  position: absolute;
  height: 40px;
  width: 1px;
  background-color: #9ca3af;
  margin-left: 50%;
  bottom: 100%;
}

/* Process Flow Section */
.process-flow-section {
  padding: 3rem 0;
}

.process-flow-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
  color: #1f2937;
}

.process-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.process-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.process-card-icon {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.process-card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

/* Unique Equipment Section */
.unique-equipment-section {
  padding: 3rem 0;
  background-color: #f9fafb;
}

.equipment-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
  color: #1f2937;
}

.equipment-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.equipment-item {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.equipment-image-container {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
}

.equipment-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.equipment-item:hover .equipment-image {
  transform: scale(1.05);
}

.equipment-info {
  padding: 1.5rem;
  text-align: center;
}

.equipment-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.equipment-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .diagram-title,
  .process-flow-title,
  .equipment-title {
    font-size: 1.5rem;
  }
  
  .main-diagram-container {
    padding: 1rem;
  }
  
  .process-cards-container,
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  
  .diagram-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .diagram-section,
  .process-flow-section,
  .unique-equipment-section {
    padding: 2rem 0;
  }
  
  .equipment-image-container {
    height: 150px;
  }
}