/* Wines Page Specific Styling */

/* Body specific style for wines page */
.wines-page {
  background: linear-gradient(145deg, #0f0f0f 0%, #181818 50%, #0f0f0f 100%);
}

/* Active navigation state */
.nav-links a.active {
  color: var(--accent-light);
}

.nav-links a.active:before {
  width: 100%;
}

/* Wines Hero Section */
.wines-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
  padding-top: 8rem;
}

.wines-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(138, 15, 30, 0.3) 0%,
    rgba(15, 15, 15, 0.7) 100%
  );
  z-index: 1;
}

.wines-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.wines-hero-content h1 {
  font-size: 5rem;
  color: var(--off-white);
  margin-bottom: 2rem;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.wines-hero-content h1:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.wines-hero-content p {
  font-size: 1.8rem;
  color: var(--text);
  max-width: 700px;
  margin: 2rem auto 0;
  line-height: 1.7;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Wine Filtering Section */
.wine-filters {
  background: linear-gradient(
    to right,
    rgba(20, 20, 20, 0.97),
    rgba(25, 25, 25, 0.97),
    rgba(20, 20, 20, 0.97)
  );
  padding: 2rem 0;
  position: sticky;
  top: 65px;
  z-index: 900;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(212, 161, 82, 0.3);
  color: var(--text);
  font-size: 1.5rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  text-transform: uppercase;
}

.filter-btn:hover {
  background: rgba(138, 15, 30, 0.2);
  border-color: rgba(212, 161, 82, 0.5);
  transform: translateY(-3px);
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    rgba(138, 15, 30, 0.8) 0%,
    rgba(183, 42, 56, 0.8) 100%
  );
  color: var(--off-white);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(138, 15, 30, 0.3);
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-sort label {
  color: var(--text);
  font-size: 1.5rem;
}

.sort-select {
  padding: 0.8rem 1.5rem;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(212, 161, 82, 0.3);
  color: var(--text);
  font-size: 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-label {
  color: var(--text);
  font-size: 1.4rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(138, 15, 30, 0.2);
  border: 1px solid rgba(212, 161, 82, 0.3);
  color: var(--text);
  font-size: 1.3rem;
  border-radius: 50px;
}

.remove-filter {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.clear-filters {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
  text-decoration: underline;
}

.clear-filters:hover {
  color: var(--off-white);
}

/* Wine Collection Grid */
.wine-collection {
  padding: 5rem 0;
  position: relative;
}

.wine-collection:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(138, 15, 30, 0.05) 0%,
    rgba(212, 161, 82, 0.05) 100%
  );
  z-index: 0;
}

.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

/* Wine Category Badges */
.wine-category {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.wine-category.red {
  background: linear-gradient(
    135deg,
    rgba(138, 15, 30, 0.2) 0%,
    rgba(183, 42, 56, 0.2) 100%
  );
  color: #e87c85;
  border: 1px solid rgba(138, 15, 30, 0.3);
}

.wine-category.white {
  background: linear-gradient(
    135deg,
    rgba(212, 161, 82, 0.2) 0%,
    rgba(240, 194, 123, 0.2) 100%
  );
  color: #f0c27b;
  border: 1px solid rgba(212, 161, 82, 0.3);
}

.wine-category.rose {
  background: linear-gradient(
    135deg,
    rgba(219, 112, 147, 0.2) 0%,
    rgba(240, 128, 128, 0.2) 100%
  );
  color: #f08080;
  border: 1px solid rgba(219, 112, 147, 0.3);
}

/* Modal Wine Category Badge */
.wine-category-badge {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin: 1rem 0 2rem;
  font-weight: 500;
}

.modal-details .red {
  background: linear-gradient(
    135deg,
    rgba(138, 15, 30, 0.3) 0%,
    rgba(183, 42, 56, 0.3) 100%
  );
  color: #e87c85;
  border: 1px solid rgba(138, 15, 30, 0.4);
}

.modal-details .white {
  background: linear-gradient(
    135deg,
    rgba(212, 161, 82, 0.3) 0%,
    rgba(240, 194, 123, 0.3) 100%
  );
  color: #f0c27b;
  border: 1px solid rgba(212, 161, 82, 0.4);
}

.modal-details .rose {
  background: linear-gradient(
    135deg,
    rgba(219, 112, 147, 0.3) 0%,
    rgba(240, 128, 128, 0.3) 100%
  );
  color: #f08080;
  border: 1px solid rgba(219, 112, 147, 0.4);
}

/* Enhanced Wine Detail Modal */
.modal-details .wine-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  font-size: 1.3rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-value {
  font-size: 1.6rem;
  color: var(--off-white);
}

/* Wine Regions Section */
.wine-regions {
  padding: 8rem 0;
  background: linear-gradient(
    to bottom,
    var(--dark-bg),
    var(--light-bg),
    var(--dark-bg)
  );
  position: relative;
}

.wine-regions:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(138, 15, 30, 0.05) 0%,
    rgba(212, 161, 82, 0.05) 100%
  );
  z-index: 0;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.region-card {
  background: linear-gradient(
    145deg,
    rgba(28, 28, 28, 0.95) 0%,
    rgba(25, 25, 25, 0.95) 100%
  );
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  border: 1px solid rgba(212, 161, 82, 0.1);
}

.region-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.region-image {
  height: 200px;
  overflow: hidden;
}

.region-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.region-card:hover .region-image img {
  transform: scale(1.1);
}

.region-content {
  padding: 2.5rem;
}

.region-content h3 {
  font-size: 2.2rem;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.region-content h3:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.region-content p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text);
}

/* Animation for wine cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wine-card {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.wine-card:nth-child(2) {
  animation-delay: 0.2s;
}

.wine-card:nth-child(3) {
  animation-delay: 0.4s;
}

.wine-card:nth-child(4) {
  animation-delay: 0.6s;
}

.wine-card:nth-child(5) {
  animation-delay: 0.8s;
}

.wine-card:nth-child(6) {
  animation-delay: 1s;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-sort {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .wine-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .modal-details .wine-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wines-hero {
    min-height: 350px;
  }

  .wines-hero-content h1 {
    font-size: 3.5rem;
  }

  .wines-hero-content p {
    font-size: 1.6rem;
  }

  .filter-categories {
    overflow-x: auto;
    padding-bottom: 1rem;
    justify-content: flex-start;
    width: 100%;
  }

  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .wine-filters {
    top: 65px;
    padding: 1.5rem 0;
  }

  .wine-grid {
    gap: 2.5rem;
  }

  .regions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .wines-hero-content h1 {
    font-size: 3rem;
  }

  .active-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .clear-filters {
    margin-left: 0;
    margin-top: 1rem;
  }
}
