/* updates.css */
.updates-hero {
  background-image: url('../assets/updates-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.updates-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  color: white;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.updates-content {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.updates-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.updates-content p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.updates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.update-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  opacity: 0; /* Start hidden for animation */
}

.update-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.update-card[data-type="festival"]::before {
  background: linear-gradient(90deg, #FF5722, #E64A19);
}

.update-card[data-type="sale"]::before {
  background: linear-gradient(90deg, #2196F3, #0D47A1);
}

.update-card[data-type="event"]::before {
  background: linear-gradient(90deg, #9C27B0, #6A1B9A);
}

.update-card[data-type="new"]::before {
  background: linear-gradient(90deg, #00BCD4, #00838F);
}

.update-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.update-date {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 0.5rem;
}

.update-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.update-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.update-link {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.update-link:hover {
  color: #45a049;
}

.update-link::after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.update-link:hover::after {
  transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.update-card {
  animation: fadeInUp 0.5s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .updates-section {
    padding: 3rem 1rem;
  }
  
  .updates-content h2 {
    font-size: 2rem;
  }
  
  .updates-container {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: #111;
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  right: 0;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
  }
  
  .login-btn {
    display: none;
  }
}