@import 'root.css';

.global-record-event-description{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  white-space: normal;
  max-width: 100%;
  line-height: 1.5;
}

.global-record-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 600px;
  background: transparent;
  background-image: radial-gradient(
    circle 300px at 0% 50%,
    rgba(90, 226, 195, 0.08) 0%,
    rgba(90, 226, 195, 0.04) 40%,
    rgba(90, 226, 195, 0.01) 70%,
    transparent 100%
  );
  overflow: hidden;
}

.global-record-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 600px;
  background: transparent;
  background-image: radial-gradient(
    circle 300px at 100% 50%,
    rgba(90, 226, 195, 0.06) 0%,
    rgba(90, 226, 195, 0.03) 40%,
    rgba(90, 226, 195, 0.01) 70%,
    transparent 100%
  );
  overflow: hidden;
}

.global-record-no-events {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: #64748b;
  font-weight: 400;
  background-color: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin: 40px auto;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.global-record-no-events::before {
  content: "📋";
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.global-record-hero-section {
  max-width: 1000px;
  height: 200px;
  overflow: hidden;
  margin: 70px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
}

.global-record-hero-title {
  position: relative;
  color: #111827;
  font-family: "Inter", "-apple-system", sans-serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

.global-record-hero-subtitle {
  padding-top: 16px;
  color: #6c757d;
  font-size: 1.2em;
  font-weight: normal;
}

.global-record-events-section {
  overflow-x: hidden;
  max-width: 1000px;
  margin: 10px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 1;
  margin-bottom: 70px;
}

.global-record-event-card {
  display: flex;
  border-radius: 60px;
  overflow: hidden;
  height: 313px;
  background-color: #fff;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.global-record-event-card:hover {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.global-record-image-wrapper {
  width: 50%;
  height: 313px;
  overflow: hidden;
  border-radius: 60px 0 0 60px;
}

.global-record-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-record-event-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.global-record-event-date {
  display: inline-block;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  padding: 3px 12px;
  border-radius: 20px;
  text-align: center;
  background-color: #5ae2c3;
  width: fit-content;
}

.global-record-event-title {
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-top: 38px;
  line-height: 33px;
  margin-bottom: 0;
}

.global-record-event-description {
  color: #8e8e8e;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.5;
  margin-bottom: 0;
}

.language-filter-container {
  max-width: 1000px;
  margin: 32px auto 20px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.language-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background-color: #f8fafc;
  padding: 8px;
  border-radius: 12px;
  display: inline-flex;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
}

.language-option {
  display: flex;
  align-items: center;
  position: relative;
}

.language-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.language-label {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
}

.language-label::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.language-option input[type="radio"]:checked + .language-label {
  background-color: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.language-option input[type="radio"]:checked + .language-label::before {
  border-color: #5ae2c3;
  background-color: #5ae2c3;
  box-shadow: inset 0 0 0 2px #fff;
}

.language-option:hover input[type="radio"]:not(:checked) + .language-label {
  background-color: #f1f5f9;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0 3rem 0;
  width: 100%;
}

.load-more-btn {
  background-color: #5AE2C3;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(90, 226, 195, 0.3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.load-more-btn:hover {
  background-color: #45c4a8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 226, 195, 0.4);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(90, 226, 195, 0.2);
}

.load-more-btn:disabled {
  background-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #5ae2c3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 991px) {
  .global-record-hero-section {
    height: 300px;
  }

  .global-record-hero-title {
    font-size: 64px;
  }

  .global-record-events-section {
    padding: 20px;
    max-width: 90%;
  }

  .global-record-event-card {
    flex-direction: column;
    height: auto;
  }

  .global-record-image-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 60px 60px 0 0;
  }

  .global-record-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
  }

  .global-record-event-content {
    width: 100%;
    padding: 30px;
  }

  .language-filter-container {
    max-width: 90%;
  }
}

@media (max-width: 640px) {
  .global-record-hero-section {
    height: 400px;
  }

  .global-record-hero-title {
    font-size: 48px;
  }

  .global-record-events-section {
    padding: 15px;
  }

  .global-record-event-card {
    border-radius: 30px;
  }

  .global-record-image-wrapper {
    height: 200px;
    border-radius: 30px 30px 0 0;
  }

  .global-record-event-content {
    width: 100%;
    padding: 20px;
  }

  .global-record-event-title {
    font-size: 20px;
    margin-top: 20px;
  }

  .global-record-event-description {
    font-size: 14px;
  }

  .language-filter-container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .language-filter {
    gap: 4px;
    padding: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .language-filter::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .language-label {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    min-width: max-content;
  }

  .language-label::before {
    width: 10px;
    height: 10px;
    margin-right: 6px;
  }

  .load-more-btn {
    padding: 10px 28px;
    font-size: 13px;
  }
}