/* Global CSS Variables */
:root {
  /* Colors */
  --abyss-blue: #0A192F;
  --antique-gold: #B08D57;
  --alabaster: #F8F0E3;
  --charcoal-grey: #333A45;
  --stone-grey: #8892B0;
  --cloud-grey: #CCD6F6;
  --vintage-rose: #C8A1A2; /* Accent */

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Nunito Sans', sans-serif;
}

/* Base Styles */
body {
  background-color: var(--alabaster);
  color: var(--charcoal-grey);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Ensures footer sticks to the bottom */
  width: 100%;
  max-width: 800px; /* Content width */
  margin: 0 auto;
  padding: 2rem 1.5rem;
  overflow-x: hidden; /* Prevents horizontal overflow */
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--abyss-blue);
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--antique-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease-in-out;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--abyss-blue);
  position: relative;
}

.logo a {
  color: var(--alabaster);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--cloud-grey);
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--alabaster);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--cloud-grey);
  transition: all 0.3s ease-in-out;
}

/* Footer */
footer {
  background-color: var(--abyss-blue);
  color: var(--cloud-grey);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

/* Content Cards for Learn Section */
.content-card {
  background-color: #fff;
  border: 1px solid var(--cloud-grey);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.content-card h2 {
  margin-top: 0;
}

.content-card .meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--stone-grey);
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 6px;
    box-sizing: border-box; /* Ensures padding is included in the element's total width and height */
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  main {
    padding: 1.5rem 1rem;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 10;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--abyss-blue);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 5;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.25rem;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  main {
    padding: 1.25rem 0.75rem;
  }
  
  .content-card {
    padding: 1.25rem;
  }
}

.content-navigation {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cloud-grey);
}

.collection-info {
  margin-bottom: 1.5rem;
}

.collection-info p {
  margin-bottom: 0.25rem;
  color: var(--stone-grey);
  font-size: 0.9rem;
}

.collection-info h3 {
  margin-top: 0;
}

.navigation-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.prev-link, .next-link {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid var(--cloud-grey);
  border-radius: 8px;
  width: calc(50% - 0.5rem);
  text-decoration: none;
}

.prev-link:hover, .next-link:hover {
  background-color: var(--alabaster);
  text-decoration: none;
}

.nav-label {
  font-size: 0.8rem;
  color: var(--stone-grey);
  margin-bottom: 0.25rem;
}

.nav-title {
  font-weight: 600;
  color: var(--abyss-blue);
}

.next-link {
  text-align: right;
}

@media (max-width: 768px) {
  .prev-link, .next-link {
    width: 100%;
  }
} 