/* Event Detail Page Styles - Builder Space IIIT Delhi */

.event-detail {
  padding: 8rem 2rem 2rem;
  background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
  min-height: 100vh;
}

/* Event Header */
.event-header {
  text-align: center;
  margin-bottom: 4rem;
  color: white;
}

.event-title h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.event-title h1 i {
  color: #F39C12;
  margin-right: 1rem;
}

.event-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 1.2rem;
  margin-top: 1rem;
}

.event-meta span {
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.event-meta i {
  margin-right: 0.5rem;
  color: #F39C12;
}

/* Event Description */
.event-description {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.event-description h2 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #3498DB;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.event-description h3 {
  color: #555;
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.event-description h4 {
  color: #666;
  font-size: 1.6rem;
  margin: 1.5rem 0 0.8rem;
}

.event-description p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
}

.highlights, .experience, .achievements {
  margin: 2rem 0;
}

.highlights ul, .achievements ul {
  list-style: none;
  padding: 0;
}

.highlights li, .achievements li {
  background: #f8f9fa;
  margin: 0.8rem 0;
  padding: 1rem;
  border-left: 4px solid #3498DB;
  border-radius: 5px;
  font-size: 1.3rem;
}

/* Photo Gallery */
.photo-gallery {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.photo-gallery h2 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid #3498DB;
  display: inline-block;
  width: 100%;
  padding-bottom: 0.5rem;
}

.gallery-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-wrapper {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.gallery-item {
  min-width: 100%;
  height: 450px;
  object-fit: cover;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.gallery-item:hover {
  filter: brightness(1.1);
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.control-btn {
  background: #3498DB;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: white;
}

.control-btn:hover {
  background: #2980B9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.control-btn:active {
  transform: translateY(0);
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #3498DB;
  transform: scale(1.2);
}

/* Technical Details */
.technical-details {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.technical-details h2 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid #3498DB;
  display: inline-block;
  width: 100%;
  padding-bottom: 0.5rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-card {
  background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
  padding: 2rem;
  border-radius: 15px;
  color: white;
  text-align: center;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
}

.tech-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tech-card i {
  font-size: 2.5rem;
  margin-right: 1rem;
  color: #F39C12;
}

.tech-card p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 1rem;
  text-align: center;
  border-radius: 5px;
  font-size: 1.2rem;
}

.modal-close, .modal-prev, .modal-next {
  position: absolute;
  background: #3498DB;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.modal-close {
  top: 20px;
  right: 20px;
}

.modal-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.modal-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.modal-close:hover, .modal-prev:hover, .modal-next:hover {
  background: #2980B9;
  transform: scale(1.1);
}

.modal-prev:hover, .modal-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Back Button */
.backbtn {
  text-align: center;
  margin: 3rem 0;
}

.backbtn .btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  color: #333;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.backbtn .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: #3498DB;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .event-detail {
    padding: 6rem 1rem 2rem;
  }
  
  .event-title h1 {
    font-size: 2.5rem;
  }
  
  .event-meta {
    gap: 1rem;
    font-size: 1rem;
  }
  
  .event-description, .photo-gallery, .technical-details {
    padding: 2rem;
  }
  
  .event-description h2, .photo-gallery h2, .technical-details h2 {
    font-size: 2rem;
  }
  
  .gallery-item {
    height: 320px;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 450px) {
  .event-title h1 {
    font-size: 2rem;
  }
  
  .event-meta {
    flex-direction: column;
    align-items: center;
  }
  
  .event-description, .photo-gallery, .technical-details {
    padding: 1.5rem;
  }
  
  .gallery-item {
    height: 280px;
  }
  
  .modal-prev, .modal-next {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}