/* =====================================================
   IMPORT GOOGLE FONT
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans&display=swap');


/* =====================================================
   GLOBAL RESET + BASE STYLES
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}

body {
  font-family: 'Google Sans', Arial, Helvetica, sans-serif;
  font-size: 20px; /* base font */
  line-height: 1.5;
  background-color: #4b3f36; /* dark rich mocha */
  color: #0f1c2c;
  display: flex;
  justify-content: center;
  padding: 0 10%;
}

.container {
  max-width: 900px;
  width: 100%;
}


/* =====================================================
   GLOBAL LINK STYLING
   ===================================================== */
a {
  color: #708090; /* slate gray */
  text-decoration: underline;;
}

a:hover {
  color: #2f4f4f; /* dark slate on hover */
  text-decoration: underline;
}

a:visited {
  color: #6b5b95; /* muted purple for visited links */
  text-decoration: underline;
}

/* Prevent visited styling for header links */
header a:visited {
  color: #708090;
  text-decoration: none;
}


/* =====================================================
   NAVIGATION BAR + HAMBURGER MENU
   ===================================================== */
nav {
  background-color: #f5fde9; /* offwhite nav bar */
  padding: 1em;
  text-align: center;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Push nav down slightly on desktop */
@media (min-width: 769px) {
  nav {
    margin-top: 20px;
  }
}

/* Push nav down slightly on mobile */
@media (max-width: 768px) {
  nav {
    margin-top: 12px;
  }
}

nav a {
  color: #708090;
  margin: 0 1em;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
}

/* Prevent visited styling for nav links */
nav a:visited {
  color: #708090;
  text-decoration: none;
}

/* Ensure visited links still change color on hover */
nav a:visited:hover,
nav a:hover {
  color: #2f4f4f;
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #708090;
}

/* Mobile nav behaviour */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 1em;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 0.5em 0;
  }

  /* Add space between nav and header on mobile */
  header {
    margin-top: 20px;
  }
}

/* Desktop horizontal nav */
@media (min-width: 901px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
  }
}


/* =====================================================
   HEADER STYLING
   ===================================================== */
header {
  padding: 2em;
  text-align: center;
  background-color: #102c46; /* dark navy */
  color: #f5fde9; /* offwhite text */
  border-radius: 12px;
  margin: 2em 0;
  box-shadow: 0 4px 8px rgba(111, 77, 56, 0.15);
}

header h1 {
  font-size: 44px;
  margin-bottom: 0.5em;
}


/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
main {
  background-color: #f5fde9; /* offwhite container */
  color: #0f1c2c;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(111, 77, 56, 0.15);
  margin: 2em 0;
}

h2 {
  font-size: 36px;
  margin-bottom: 1em;
}

h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 1em;
}

p {
  margin-bottom: 1em;
}

/* Lists inside main */
ul {
  list-style-type: disc;
  list-style-position: inside;
  margin-left: 2px;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.5em;
  font-size: 1em;
  line-height: 1.5;
}

ul li::marker {
  font-size: 1em;
}
/* =====================================================
  BUTTON STYLING
  ===================================================== */
button,
.button {
  font-family: 'Google Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background-color: #102c46; /* dark navy */
  color: #f5fde9; /* offwhite text */
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.4em;
  margin: 0.5em 0;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(111, 77, 56, 0.10);
  transition: background 0.2s, color 0.2s;
}

/* Prevent visited styling for buttons */
button:visited,
.button:visited {
  color: #f5fde9;
}

button:hover,
.button:hover {
  background-color: #2f4f4f; /* dark slate on hover */
  color: #f5fde9;
}

/* =====================================================
   FOOTER STYLING
   ===================================================== */
footer {
  text-align: center;
  padding: 1em;
  background-color: #102c46; /* dark navy */
  color: #f5fde9;
  margin: 2em 0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(111, 77, 56, 0.15);
}

/* =====================================================
   GARDEN STYLING
   ===================================================== */

/* Garden nav (Return button only) */
.garden-nav {
  margin: 1em 0;
  text-align: left; /* align to top-left */
}

.garden-nav a {
  color: #708090; /* slate gray (same as nav) */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.5em 1em;
  background-color: #f5fde9; /* offwhite */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(111, 77, 56, 0.15);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.garden-nav a:hover {
  color: #2f4f4f; /* dark slate */
  background-color: #eaf3da; /* subtle green tint on hover */
}

/* Card container */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em; /* space between cards */
  margin-top: 2em;
}

/* Post cards */
.card {
  display: block;
  background-color: #102c46;
  color: #f5fde9; /* offwhite text */
  padding: 1.5em;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 0.75em; /* reduced space between cards */
  transition: background-color 0.3s ease, border 0.3s ease;
}

/* Prevent visited styling for card links */
.card:visited {
  color: #f5fde9;
}

/* Card hover */
.card:hover {
  background-color: #001f3f; /* navy */
  color: #f5fde9; /* offwhite text */
}

/* Inside the cards */
.card h3 {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.card h4 {
  margin: 0.3em 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.card p {
  margin: 0.5em 0 0;
  font-size: 1rem;
}

/* =====================================================
   GARDEN PLANT STYLING
   ===================================================== */

/* Back to Garden link (top left, same style as nav) */
.nav-links.single-link {
  display: flex;
  justify-content: flex-start;
  padding: 0.5em;
}
.nav-links.single-link a {
  color: var(--offwhite);
  text-decoration: none;
  font-weight: bold;
}
.nav-links.single-link a:hover {
  text-decoration: underline;
}

/* Post footer navigation */
.post-footer {
  margin-top: 2em;
  text-align: center;
}
.post-nav {
  display: flex;
  justify-content: center;
  gap: 1em;
}

/* Prevent visited styling for footer links */
footer a:visited {
  color: #f5fde9;
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVE TYPOGRAPHY
   ===================================================== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    padding: 0 5%;
  }

  header h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 22px;
  }
}
