@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Noto_Serif:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --forest: #163526;
    --earth: #77574d;
    --gold: #402c00;
    --paper: #fafaf5;
    --white: #ffffff;
    --forest-light: rgba(22, 53, 38, 0.05);
    --gold-light: rgba(64, 44, 0, 0.1);
    --gold: #bd9b51;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--paper);
  color: var(--forest);
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Noto Serif', serif;
}

.max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(250, 250, 245, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 53, 38, 0.05);
}

.navbar-container {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-box {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--forest);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.logo-text {
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: 'Noto Serif', serif;
  font-weight: bold;
  font-size: 1.125rem;
  color: rgba(22, 53, 38, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link.active {
  color: var(--forest);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.25rem;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-actions {
    display: flex;
  }
}

.btn-primary {
  background-color: var(--forest);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: rgba(22, 53, 38, 0.9);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--forest);
  cursor: pointer;
  transition: color 0.3s;
}

.btn-icon:hover {
  color: var(--gold);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  overflow: hidden;
  margin-top: 5rem;
}

.hero-text {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    overflow: hidden;
    margin-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.hero-content {
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-column: span 6;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
  background-color: var(--gold-light);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 9999px;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: bold;
  color: var(--forest);
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 5rem;
  }
}

.hero-title .italic {
  font-style: italic;
  font-weight: normal;
  color: var(--earth);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(22, 53, 38, 0.7);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.btn-hero {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

.btn-hero:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest);
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.btn-text:hover {
  color: var(--gold);
}

.hero-image-container {
  position: relative;
  height: 31.25rem;
}

@media (min-width: 768px) {
  .hero-image-container {
    height: 37.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-image-container {
    grid-column: span 6;
  }
}

.hero-image-box {
  position: absolute;
  inset: 0;
  background-color: var(--forest-light);
  border-radius: 2rem;
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter 1s;
}

.hero-image:hover {
  filter: grayscale(0);
}

.hero-floating-card {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background-color: var(--gold);
  padding: 2rem;
  color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.floating-year {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Noto Serif', serif;
  margin-bottom: 0.25rem;
}

.floating-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.map-texture {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 100%;
  background-color: rgba(22, 53, 38, 0.02);
  z-index: -10;
  background-image: radial-gradient(#c2c8c1 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* Map Section */
.section-map {
  padding: 6rem 1.5rem;
  background-color: var(--white);
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
  }
}

.header-content {
  max-width: 42rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--forest);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-icon {
  padding: 0.5rem;
  background-color: var(--gold-light);
  border-radius: 0.5rem;
  color: var(--gold);
}

.section-description {
  color: rgba(22, 53, 38, 0.6);
  font-size: 1.125rem;
}

.filter-group {
  display: flex;
  background-color: var(--paper);
  padding: 0.375rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 53, 38, 0.05);
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  background: none;
  color: rgba(22, 53, 38, 0.4);
  transition: all 0.3s;
}

.filter-btn.active {
  background-color: var(--white);
  color: var(--forest);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.map-container {
  position: relative;
  width: 100%;
  height: 37.5rem;
  background-color: var(--paper);
  border-radius: 2.5rem;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(1);
}

.map-controls {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-btn {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  color: var(--forest);
  transition: background-color 0.3s;
}

.control-btn:hover {
  background-color: var(--paper);
}

.marker {
  position: absolute;
  cursor: pointer;
}

.marker-icon {
  color: var(--forest);
}

.marker-icon.alt {
  color: var(--earth);
}

.marker-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  margin-bottom: 1rem;
  width: 12rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

.marker:hover .marker-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.tooltip-title {
  font-weight: bold;
  color: var(--forest);
}

.tooltip-subtitle {
  font-size: 0.75rem;
  color: rgba(22, 53, 38, 0.5);
}

/* Trails Section */
.section-trails {
  padding: 6rem 1.5rem;
  background-color: var(--paper);
}

.trails-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .trails-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

@media (min-width: 1024px) {
  .trails-list-container {
    grid-column: span 7;
  }
}

.trails-table-box {
  background-color: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(22, 53, 38, 0.05);
}

.trails-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-head {
  border-bottom: 1px solid rgba(22, 53, 38, 0.05);
  background-color: rgba(22, 53, 38, 0.02);
}

.table-th {
  padding: 1.5rem 2rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: rgba(22, 53, 38, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-row {
  border-bottom: 1px solid rgba(22, 53, 38, 0.05);
  transition: background-color 0.3s;
  cursor: pointer;
}

.table-row:hover {
  background-color: rgba(22, 53, 38, 0.01);
}

.table-td {
  padding: 1.5rem 2rem;
}

.trail-name {
  font-weight: bold;
  color: var(--forest);
}

.trail-loc {
  color: rgba(22, 53, 38, 0.6);
}

.badge-diff {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.badge-medium { background-color: rgba(22, 53, 38, 0.1); color: var(--forest); }
.badge-easy { background-color: rgba(119, 87, 77, 0.1); color: var(--earth); }
.badge-hard { background-color: #fef2f2; color: #dc2626; }

/* Leaderboard */
@media (min-width: 1024px) {
  .leaderboard-container {
    grid-column: span 5;
  }
}

.leaderboard-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(22, 53, 38, 0.05);
}

.leaderboard-header {
  background-color: var(--forest);
  color: var(--white);
  padding: 2rem;
}

.leaderboard-title {
  font-weight: bold;
  font-size: 1.25rem;
  font-family: 'Noto Serif', serif;
}

.leaderboard-subtitle {
  font-size: 0.875rem;
  opacity: 0.6;
}

.leaderboard-item {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(22, 53, 38, 0.05);
}

.leaderboard-item.highlight {
  background-color: rgba(64, 44, 0, 0.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.rank-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.rank-1 { background-color: var(--gold); color: var(--white); }
.rank-other { background-color: rgba(22, 53, 38, 0.05); color: var(--forest); }

.user-name {
  font-weight: bold;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.club-label {
  font-size: 0.625rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(64, 44, 0, 0.6);
}

.user-stats {
  text-align: right;
}

.stat-kp {
  font-weight: bold;
  color: var(--forest);
}

.stat-trails {
  font-size: 0.75rem;
  color: rgba(22, 53, 38, 0.4);
}

.leaderboard-footer {
  padding: 1.5rem;
  background-color: rgba(22, 53, 38, 0.02);
  text-align: center;
}

/* Timeline */
.section-timeline {
  padding: 8rem 1.5rem;
  border-top: 1px solid rgba(22, 53, 38, 0.05);
}

.timeline-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--forest);
  margin-bottom: 5rem;
  text-align: center;
}

.timeline-container {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(22, 53, 38, 0.1);
  transform: translateY(-50%);
}

.timeline-items {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.timeline-node {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.node-active {
  background-color: var(--gold);
  box-shadow: 0 0 0 8px rgba(64, 44, 0, 0.1);
}

.node-inactive {
  background-color: rgba(22, 53, 38, 0.1);
}

.timeline-item:hover .node-inactive {
  background-color: rgba(64, 44, 0, 0.5);
}

.timeline-year {
  font-family: 'Noto Serif', serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 0.25rem;
}

.timeline-event {
  font-size: 0.625rem;
  color: rgba(22, 53, 38, 0.4);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Footer */
.footer {
  background-color: var(--forest);
  color: var(--white);
  padding: 6rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.footer-brand {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 4;
  }
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  background-color: var(--gold);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  max-width: 24rem;
}

.footer-links-container {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-links-container {
    grid-column: span 5;
  }
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-link-title {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-social {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-social {
    grid-column: span 3;
    align-items: flex-end;
  }
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.3s;
}

.social-icon:hover {
  color: var(--gold);
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .copyright {
    margin-top: 0;
  }
}
