/* Achievements Page Specific Styles */

/* Scoped styles for achievements grid */
:root { 
  --accent-gold: #daae6b; 
  --year-chosen: #650a0b; 
  --button-hex: #800000; 
}

.ypads-section-title { 
  margin: 1.25rem 0; 
  font-size: 1.5rem; 
  color: var(--year-chosen); 
  font-family: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; 
}

.achievements-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1.25rem; 
  margin-bottom: 2rem; 
}

.achievement-card { 
  position: relative; 
  overflow: hidden; 
  border-radius: 6px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.achievement-card img { 
  width: 100%; 
  height: 420px; 
  object-fit: cover; 
  display: block; 
  transition: transform .35s ease; 
}

.achievement-card:hover img { 
  transform: scale(1.03); 
}

.achievement-overlay { 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  padding: 1rem; 
  color: #fff; 
  background: rgba(0,0,0,0.6); 
  display: flex; 
  flex-direction: column; 
  gap: .3rem; 
  align-items: center; 
  justify-content: flex-end; 
}

.achievement-overlay h3 { 
  margin: 0; 
  font-size: 1.125rem; 
  font-weight: 700; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.6); 
  font-family: 'Libre Franklin', sans-serif; 
}

.achievement-overlay p { 
  margin: 0; 
  font-size: .9rem; 
  opacity: .9; 
  font-family: 'Libre Franklin', sans-serif; 
}

.btn-details { 
  margin-top: .5rem; 
  background: transparent; 
  border: 1px solid rgba(255,255,255,0.85); 
  color: #fff; 
  padding: .35rem .6rem; 
  border-radius: 4px; 
  text-decoration: none; 
  font-size: .85rem; 
  font-family: 'Libre Franklin', sans-serif; 
}
 
.btn-details:hover { 
  background: rgba(255,255,255,0.06); 
}

/* Filters / year selector */
.ypads-filters { 
  padding: 0.5rem 0 1.25rem; 
}

.filters-row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem; 
}

.filters-left { 
  display: flex; 
  align-items: flex-start; 
  gap: 1rem; 
}

.year-large { 
  font-size: 36px; 
  font-weight: 800; 
  color: var(--accent-gold); 
  line-height: 1; 
  font-family: 'Libre Franklin', sans-serif; 
}

.year-list { 
  align-self: center; 
  font-size: 18px; 
  color: var(--year-chosen); 
  font-family: 'Libre Franklin', sans-serif; 
}

.year-list a { 
  color: var(--year-chosen); 
  text-decoration: none; 
  margin-right: .5rem; 
  padding-right: .5rem; 
  border-right: 1px solid rgba(0,0,0,0.06); 
  font-size: 18px; 
}

.year-list a.active { 
  font-weight: 700; 
  color: var(--year-chosen); 
}

.filters-right { 
  display: flex; 
  align-items: center; 
  gap: .75rem; 
}

.search-box input { 
  width: 220px; 
  max-width: 38vw; 
  padding: .45rem .6rem; 
  border-radius: 20px; 
  border: 1px solid #ccc; 
  font-family: 'Libre Franklin', sans-serif; 
  font-size: 16px; 
}

.view-toggle { 
  display: inline-flex; 
  border-radius: 20px; 
  overflow: hidden; 
  border: 1px solid rgba(0,0,0,0.08); 
}

.view-toggle button { 
  background: var(--button-hex); 
  color: #ffffff; 
  border: 0; 
  padding: .5rem .9rem; 
  cursor: pointer; 
  font-size: 18px; 
  font-family: 'Libre Franklin', sans-serif; 
}

.view-toggle button.inactive { 
  background: transparent; 
  color: var(--button-hex); 
  border-left: 1px solid rgba(0,0,0,0.04); 
}

.filter-icons button { 
  background: transparent; 
  border: none; 
  cursor: pointer; 
  padding: .35rem; 
  font-size: 1.05rem; 
}

/* Responsive Design */
@media (max-width: 900px) {
  .filters-row { 
    flex-direction: column; 
    align-items: stretch; 
  }
  .filters-right { 
    justify-content: space-between; 
  }
  .search-box input { 
    width: 100%; 
    max-width: 100%; 
  }
}

@media (max-width: 800px) {
  .achievements-grid { 
    grid-template-columns: 1fr; 
  }
  .achievement-card img { 
    height: 180px; 
  }
}

/* Hall of Fame Section */
.ypads-hall-of-fame {
  padding: 3rem 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: -6rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.ypads-hall-of-fame__bg {
  position: absolute;
  left: 0;
  top: 0;
  height: calc(100% + 1rem);
  width: auto;
  object-fit: cover;
  object-position: left top;
  pointer-events: none;
  z-index: 1;
  max-width: 300px;
}

.ypads-hall-of-fame .ypads-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  z-index: 2;
}

.ypads-hall-of-fame-title {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  font-family: "Bricolage Grotesque", sans-serif;
  color: #daae6b;
  margin: 0;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Carousel Section */
.ypads-carousel {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-top: -2rem;
  padding-top: 2rem;
  --preview-height: 100%;
  --preview-max-width: 100%;
  --preview-opacity: 1;
  --preview-spacing: 1250px;
}

.ypads-carousel .carousel-inner {
  width: 100%;
  height: 80vh;
  position: relative;
}

.ypads-carousel .carousel-item {
  height: 100%;
}

.ypads-carousel .carousel-item img {
  height: 100%;
  width: auto;
  max-width: 800px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}

.ypads-carousel .carousel-side-preview {
  position: absolute;
  height: var(--preview-height);
  width: auto;
  max-width: var(--preview-max-width);
  z-index: 10;
  opacity: var(--preview-opacity);
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.ypads-carousel .carousel-side-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px rgba(231, 15, 15, 0.3);
  opacity: 0.5;
}

.ypads-carousel .carousel-side-prev {
  left: calc(50% - var(--preview-spacing));
}

.ypads-carousel .carousel-side-next {
  right: calc(50% - var(--preview-spacing));
}

.ypads-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #daae6b;
  background: transparent;
}

.ypads-carousel .carousel-indicators .active {
  background: #daae6b;
}

.ypads-carousel .carousel-control-prev,
.ypads-carousel .carousel-control-next {
  display: none !important;
}

/* Responsive adjustments for Hall of Fame */
@media (max-width: 1600px) {
  .ypads-hall-of-fame {
    padding: 2.5rem 20px 0;
    margin-bottom: -5rem;
  }
}

@media (max-width: 1400px) {
  .ypads-hall-of-fame {
    padding: 2.5rem 20px 0;
    margin-bottom: -4rem;
  }
  .ypads-carousel {
    --preview-spacing: 360px;
    --preview-max-width: 180px;
  }
  .ypads-carousel .carousel-item img {
    max-width: 700px;
  }
}

@media (max-width: 1200px) {
  .ypads-hall-of-fame {
    padding: 2rem 20px 0;
    margin-bottom: -3rem;
  }
  .ypads-hall-of-fame__bg {
    max-width: 250px;
  }
  .ypads-carousel {
    --preview-spacing: 340px;
    --preview-max-width: 160px;
    --preview-height: 65%;
  }
  .ypads-carousel .carousel-item img {
    max-width: 650px;
  }
}

@media (max-width: 1000px) {
  .ypads-hall-of-fame {
    padding: 2rem 16px 0;
    margin-bottom: -2.5rem;
  }
  .ypads-carousel {
    --preview-spacing: 320px;
    --preview-max-width: 140px;
    --preview-height: 60%;
  }
  .ypads-carousel .carousel-item img {
    max-width: 600px;
  }
}

@media (max-width: 900px) {
  .ypads-hall-of-fame__bg {
    max-width: 200px;
  }
  .ypads-carousel {
    --preview-spacing: 300px;
    --preview-max-width: 120px;
    --preview-height: 55%;
    --preview-opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .ypads-hall-of-fame {
    padding: 1.5rem 16px 0;
    margin-bottom: -2rem;
    margin-top: 1.5rem;
  }
  .ypads-hall-of-fame__bg {
    max-width: 150px;
  }
  .ypads-carousel {
    --preview-spacing: 280px;
    --preview-max-width: 100px;
    --preview-height: 50%;
    --preview-opacity: 0.5;
  }
}

@media (max-width: 600px) {
  .ypads-hall-of-fame {
    padding: 2rem 16px 0;
    margin-bottom: -1rem;
  }
  .ypads-hall-of-fame__bg {
    display: none;
  }
  .ypads-carousel {
    margin-top: -1rem;
    padding-top: 1rem;
    --preview-spacing: 260px;
    --preview-max-width: 80px;
    --preview-height: 45%;
  }
  .ypads-carousel .carousel-inner {
    height: 60vh;
  }
  .ypads-carousel .carousel-item img {
    width: 90%;
    height: auto;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .ypads-hall-of-fame {
    padding: 1rem 12px 0;
    margin-bottom: -0.5rem;
    margin-top: 0.5rem;
  }
  .ypads-carousel .carousel-side-preview {
    display: none;
  }
}

/* Latest Achievements Carousel (from news.css) */
.news-latest-section {
  padding: 4rem 20px 5rem;
  background-image: url('../elements/textured-background.png');
  background-repeat: repeat;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.news-latest-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.news-latest-title {
  font-size: 36px;
  font-weight: 700;
  color: #daae6b;
  margin: 0 0 2rem;
  font-family: "Libre Baskerville", serif;
}

.news-latest-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.news-latest-track {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 0;
  align-items: start;
  height: 400px;
  min-height: 400px;
}

@media (max-width: 1100px) {
  .news-latest-carousel {
    max-width: 95%;
  }
}

.news-latest-slide {
  position: relative;
  opacity: 0.4;
  transition: opacity 0.4s ease;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  align-self: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.news-latest-slide.is-active {
  opacity: 1;
  align-self: stretch;
  cursor: pointer;
}

.news-latest-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: none;
  opacity: 0.7;
}

.news-latest-slide:hover .news-latest-nav-btn {
  opacity: 1;
}

.news-latest-slide.is-active .news-latest-nav-btn {
  opacity: 1;
}

.news-latest-nav-btn:hover {
  background: transparent;
  transform: translateY(-50%) scale(1.1);
  box-shadow: none;
}

.news-latest-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.news-latest-nav-prev {
  left: 10px;
}

.news-latest-nav-next {
  right: 10px;
}

.news-latest-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.news-latest-slide.is-active img {
  height: 400px;
  border-radius: 8px;
}

.news-latest-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-latest-slide.is-active .news-latest-overlay {
  border-radius: 0 0 8px 8px;
}

.news-latest-slide.is-active .news-latest-overlay {
  opacity: 1;
}

.news-latest-headline {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-family: "Montserrat", sans-serif;
}

.news-latest-overview {
  font-size: 18px;
  color: #ffffff;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.news-latest-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.news-latest-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: #c0c0c0;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.news-latest-dot.is-active {
  background-color: #781c1b;
}

@media (max-width: 900px) {
  .news-latest-track {
    height: 360px;
    min-height: 360px;
  }

  .news-latest-slide img {
    height: 306px;
  }

  .news-latest-slide.is-active img {
    height: 360px;
  }

  .news-latest-title {
    font-size: 32px;
  }

  .news-latest-headline {
    font-size: 28px;
  }

  .news-latest-overview {
    font-size: 16px;
  }

  .news-latest-overlay {
    padding: 1.75rem 1.25rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .news-latest-section {
    padding: 3rem 20px 3.5rem;
  }

  .news-latest-track {
    height: 320px;
    min-height: 320px;
  }

  .news-latest-slide img {
    height: 272px;
  }

  .news-latest-slide.is-active img {
    height: 320px;
  }

  .news-latest-title {
    font-size: 28px;
    margin-bottom: 1.5rem;
  }

  .news-latest-headline {
    font-size: 24px;
  }

  .news-latest-overview {
    font-size: 14px;
  }

  .news-latest-overlay {
    padding: 1.5rem 1rem 1rem;
  }
}

@media (max-width: 600px) {
  .news-latest-section {
    padding: 2.5rem 20px 3rem;
  }

  .news-latest-track {
    height: 280px;
    min-height: 280px;
  }

  .news-latest-slide img {
    height: 238px;
  }

  .news-latest-slide.is-active img {
    height: 280px;
  }

  .news-latest-title {
    font-size: 24px;
    margin-bottom: 1.25rem;
  }

  .news-latest-headline {
    font-size: 20px;
  }

  .news-latest-overview {
    font-size: 12px;
  }

  .news-latest-overlay {
    padding: 1.25rem 0.875rem 0.875rem;
  }

  .news-latest-dots {
    margin-top: 0.75rem;
    gap: 0.4rem;
  }

  .news-latest-dot {
    width: 7px;
    height: 7px;
  }

  .news-latest-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .news-latest-nav-prev {
    left: 8px;
  }

  .news-latest-nav-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .news-latest-section {
    padding: 2rem 16px 2.5rem;
  }

  .news-latest-track {
    height: 240px;
    min-height: 240px;
  }

  .news-latest-slide img {
    height: 204px;
  }

  .news-latest-slide.is-active img {
    height: 240px;
  }

  .news-latest-title {
    font-size: 20px;
    margin-bottom: 1rem;
  }

  .news-latest-headline {
    font-size: 18px;
  }

  .news-latest-overview {
    font-size: 11px;
  }

  .news-latest-overlay {
    padding: 1rem 0.75rem 0.75rem;
  }

  .news-latest-dots {
    margin-top: 0.5rem;
  }

  .news-latest-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .news-latest-nav-prev {
    left: 5px;
  }

  .news-latest-nav-next {
    right: 5px;
  }
}

