/* ============================================
   EVENT.CSS - Event Article Layout
   Following DESIGN.MD principles:
   - No hard borders (tonal transitions only)
   - Ambient shadows (diffused, subtle)
   - XL rounded corners
   - Glassmorphism for navigation
   - Asymmetric layouts
   ============================================ */

/* Hero Section */
.event-hero {
  position: relative;
  height: 716px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.event-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 69, 13, 0.8) 0%,
    rgba(0, 69, 13, 0.4) 50%,
    transparent 100%
  );
}

.event-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.event-hero-inner {
  max-width: 42rem;
}

.event-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #acf4a4;
  color: #002203;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.event-hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1;
}

.event-hero-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #acf4a4;
  font-size: 1.25rem;
  font-weight: 500;
}

/* Mobile hero adjustments */
@media (max-width: 767px) {
  .event-hero {
    height: auto;
    min-height: 60vh;
    padding: 4rem 0;
  }

  .event-hero-title {
    font-size: 2.5rem;
  }

  .event-hero-date {
    font-size: 1rem;
  }

  .event-hero-content {
    padding: 0 1.5rem;
  }
}

/* Overview Section */
.event-overview {
  padding: 6rem 0;
  background-color: #f8f9fa;
}

.event-overview-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.event-overview-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-overview-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #191c1d;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.event-overview-description {
  font-size: 1.125rem;
  color: #41493e;
  line-height: 1.6;
  font-style: italic;
}

.event-criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.event-criteria-card {
  padding: 2rem;
  border-radius: 0.75rem;
  background-color: #f3f4f5;
  border-left: 4px solid #00450d;
}

.event-criteria-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #00450d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.event-criteria-card p {
  color: #191c1d;
  font-weight: 500;
  line-height: 1.75;
}

.event-route-arrow {
  color: #1b5e20;
  margin: 0 0.25rem;
}

/* Cazare Section */
.event-cazare {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-cazare h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #191c1d;
}

.event-cazare-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cazare-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.04);
  transition: all 0.5s ease;
}

.cazare-card:hover {
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.12);
}

.cazare-image-wrapper {
  height: 10rem;
  overflow: hidden;
}

.cazare-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.cazare-card:hover .cazare-image {
  transform: scale(1.1);
}

.cazare-content {
  padding: 1.5rem;
}

.cazare-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #191c1d;
  margin-bottom: 0.5rem;
}

.cazare-description {
  color: #41493e;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.cazare-location {
  color: #00450d;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Obiective Section */
.event-obiective {
  padding: 6rem 0;
  background-color: #edeeef;
}

.event-obiective-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.event-obiective-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 1rem;
}

.event-obiective-header-content {
  max-width: 36rem;
}

.event-obiective-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #191c1d;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.event-obiective-header p {
  color: #41493e;
}

.event-obiective-icons {
  display: flex;
  gap: 0.5rem;
}

.obiective-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(172, 244, 164, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00450d;
}

.event-obiective-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.obiective-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.obiective-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.04);
  transition: all 0.3s ease;
}

.obiective-card:hover {
  transform: translateY(-4px);
}

.obiective-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00450d;
  margin-bottom: 0.5rem;
}

.obiective-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Participants Section */
.event-participants {
  padding: 6rem 0;
  background-color: #f8f9fa;
}

.event-participants-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem;
}

.event-participants-header {
  text-align: center;
  margin-bottom: 4rem;
}

.event-participants-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #191c1d;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.event-participants-header p {
  color: #41493e;
}

.participants-table-wrapper {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.06);
  border: 1px solid rgba(192, 201, 187, 0.1);
}

.participants-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.participants-table thead {
  background-color: #00450d;
  color: #ffffff;
}

.participants-table th {
  padding: 1.25rem 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.participants-table tbody tr {
  border-bottom: 1px solid rgba(192, 201, 187, 0.1);
  transition: background-color 0.3s ease;
}

.participants-table tbody tr:hover {
  background-color: rgba(172, 244, 164, 0.05);
}

.participants-table td {
  padding: 1rem 2rem;
}

.participant-number {
  font-weight: 700;
  color: #00450d;
}

.participant-name {
  font-weight: 600;
}

.participant-role {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.role-profesor {
  background-color: #d1f4d1;
  color: #1b5e20;
}

.role-elev {
  background-color: #dcdddd;
  color: #5d5f5f;
}

.participants-pagination {
  padding: 1rem 2rem;
  background-color: #edeeef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.pagination-info {
  color: #41493e;
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.pagination-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(192, 201, 187, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 0.75rem;
}

.pagination-btn:hover {
  background-color: rgba(172, 244, 164, 0.2);
}

.pagination-btn.active {
  background-color: #00450d;
  color: #ffffff;
  border-color: #00450d;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Gallery Section */
.event-gallery {
  padding: 6rem 0;
  background-color: #e7e8e9;
  overflow: hidden;
}

.event-gallery-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.event-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.event-gallery-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #191c1d;
  letter-spacing: -0.02em;
}

.gallery-view-all {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid #00450d;
  color: #00450d;
  font-weight: 700;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-view-all:hover {
  background-color: #00450d;
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  grid-auto-rows: 200px;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.gallery-zoom-icon {
  color: #ffffff;
  font-size: 3.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
}

.gallery-play-button {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-play-icon {
  color: #ffffff;
  font-size: 1.5rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .event-hero-title {
    font-size: 4.5rem;
  }

  .event-overview-container {
    grid-template-columns: repeat(12, 1fr);
  }

  .event-overview-content {
    grid-column: span 7;
  }

  .event-cazare {
    grid-column: span 5;
  }

  .event-criteria-grid {
    grid-template-columns: 1fr;
  }

  .event-obiective-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-obiective-header {
    flex-direction: row;
    align-items: flex-end;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .event-obiective-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .obiective-column:nth-child(2),
  .obiective-column:nth-child(4) {
    margin-top: 2rem;
  }
}

/* Transport Icon Styling */
.transport-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(172, 244, 164, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00450d;
}

.transport-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.transport-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #191c1d;
}

/* Participants table mobile scroll */
@media (max-width: 767px) {
  .participants-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .participants-table {
    min-width: 600px;
  }

  .participants-table th,
  .participants-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}
