/* ============================================
   MELORIA REGISTRATION PAGE
   ============================================ */
html, body {
  overflow-x: hidden;
}
.meloria-registration {
  min-height: 100vh;
  background-color: #F8E08A;
  width: 100%;
}

/* Background Pattern Overlay */
.meloria-registration::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

/* Animated Background Dots */
.meloria-registration::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    );
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 25px 25px;
  opacity: 0.3;
  animation: dotMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes dotMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Header Section */
.meloria-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.meloria-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #F8E08A);
}
.meloria-header img{
  width: 100%;
}

.meloria-title {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 3px;
}

.meloria-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  opacity: 0.95;
  font-weight: 300;
}

.meloria-description {
  font-size: 1.1rem;
  color: #e0f2f1;
  opacity: 0.9;
}

/* Category Section */
.category-section {
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
  max-width: 100%;
}

.category-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 25px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow:
    0 0 5px #fff;
  letter-spacing: 1px;
}

.category-description {
  font-size: 1.1rem;
  color: #e0f2f1;
  opacity: 0.95;
  margin: 0;
}

/* Posters Grid */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.poster-card {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.poster-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.poster-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 140%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.poster-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.poster-card:hover .poster-image {
  transform: scale(1.05);
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-sizing: border-box;
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

.poster-info {
  width: 100%;
}

.poster-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.poster-click {
  font-size: 0.9rem;
  color: #b2dfdb;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease;
}

.poster-card:hover .poster-click {
  transform: translateX(5px);
}

/* Footer */
.meloria-footer {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.back-to-events {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-events:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-events:active {
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .posters-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .meloria-title {
    font-size: 3rem;
  }

  .meloria-subtitle {
    font-size: 1.3rem;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .category-description {
    font-size: 1rem;
  }
  
  .posters-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .meloria-registration {
    padding: 60px 15px 40px;
  }
  
  .meloria-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .meloria-subtitle {
    font-size: 1.1rem;
  }
  
  .meloria-description {
    font-size: 1rem;
  }
  
  .category-section {
    margin-bottom: 60px;
  }
  
  .category-header {
    padding: 20px 15px;
    margin-bottom: 30px;
  }
  
  .category-title {
    font-size: 1.8rem;
  }
  
  .category-description {
    font-size: 0.95rem;
  }
  
  .posters-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 0 10px;
  }
  
  .poster-name {
    font-size: 1rem;
  }
  
  .poster-click {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .meloria-registration {
    padding: 40px 10px 30px;
  }
  
  .meloria-header {
    margin-bottom: 40px;
  }
  
  .meloria-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .meloria-subtitle {
    font-size: 1rem;
  }
  
  .meloria-description {
    font-size: 0.9rem;
  }
  
  .category-section {
    margin-bottom: 50px;
  }
  
  .category-header {
    padding: 18px 12px;
    margin-bottom: 25px;
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .category-description {
    font-size: 0.9rem;
  }
  
  .posters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .poster-overlay {
    padding: 15px;
  }
  
  .poster-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .poster-click {
    font-size: 0.75rem;
  }
  
  .back-to-events {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .meloria-registration,
  .meloria-registration * {
    animation: none !important;
    transition: none !important;
  }
}