@import url(./styles.css);

/* ====== Hero: رأس صفحة الحدث ====== */
.event-hero-section {
  padding: 124px 10%;
  padding-bottom: 0;
  background-color: var(--primary-50);
  width: 100vw;
}

.event-details .event-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-900);
}

.event-details .event-subtitle {
  font-size: 24px;
  color: var(--gray-700);
}

.event-details .event-meta span {
  font-size: 20px;
  color: var(--gray-500);
}

.event-details .event-notes h5 {
  font-weight: 700;
  color: var(--primary-900);
  margin-top: 20px;
}

.event-details .event-notes ul {
  list-style: none;
  padding-inline-start: 0;
}

.event-details .event-notes ul li::before {
  content: "•";
  color: var(--primary-500);
  font-weight: bold;
  display: inline-block;
  width: 1em;
}

.event-classification {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 4px;
  padding-bottom: 48px;
}

.event-actions {
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 12px;
}

/* ====== المعرض ====== */
.hero-gallery {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  padding-top: 32px;
}

.main-image {
  width: 64%;
}

.hero-gallery .main-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hero-gallery .thumbnail-gallery {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  height: 100%;
}

.hero-gallery .thumbnail-gallery .img-thumbnail {
  width: 56px;
  height: 56px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
  border-radius: 16px;
}

.hero-gallery .thumbnail-gallery .img-thumbnail:hover,
.hero-gallery .thumbnail-gallery .img-thumbnail.active {
  border-color: var(--primary-500);
}

/* ====== قسم عن الفعالية والموقع ====== */
.about-event-section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-900);
  border-bottom: 2px solid var(--primary-500);
  padding-bottom: 16px;
}

.about-event h4,
.location-details h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 1rem;
}

.about-event p,
.location-details p,
.about-event ul,
.location-details ul {
  color: var(--gray-700);
  font-size: 0.95rem;
}

.about-event ul,
.location-details ul {
  padding-inline-start: 1.2rem;
  list-style: none;
}

.about-event ul li::before,
.location-details ul li::before {
  content: "•";
  color: var(--primary-500);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-inline-end: -1em;
}

.event-section,
.location-section {
  margin-bottom: 2rem;
}

.map-placeholder iframe {
  border-radius: 15px;
  width: 100%;
}

/* ====== فعاليات ذات صلة ====== */
.related-events {
  padding: 64px 10%;
  padding-bottom: 64px;
  width: 100vw;
}

.event-card {
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background-color: var(--white-color);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--gray-200);
}

.event-card .ratio img {
  object-fit: cover;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  padding: 16px 16px 0;
}

.event-card-header .tag {
  background-color: var(--primary-100);
  color: var(--primary-700);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.event-card-header .city {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.event-card-content {
  padding: 16px;
}

.event-card-content p:first-of-type {
  font-size: 1.1rem;
  color: var(--primary-900);
}

.event-card-content p:nth-of-type(2) {
  font-size: 0.95rem;
  color: var(--gray-700);
  min-height: 45px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.event-card .date {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ====== استجابة ====== */
@media (min-width: 768px) {
  .event-details .event-title {
    font-size: 2.2rem;
  }
  .hero-gallery .thumbnail-gallery .img-thumbnail {
    width: 70px;
    height: 70px;
  }
}

@media (min-width: 992px) {
  .event-hero-section .row {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: flex-start;
  }
  .event-details {
    text-align: start;
  }
  .event-details .event-title {
    font-size: 2.5rem;
  }
  .hero-gallery {
    margin-top: 0;
  }
  .hero-gallery .thumbnail-gallery {
    justify-content: space-between;
  }
  .hero-gallery .thumbnail-gallery .img-thumbnail {
    width: 80px;
    height: 80px;
  }
}
