/* ============================
   Navigation & Mobile Menu Fix
============================ */

.site-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ccc;
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  z-index: 999;
  color: #000;
  transition: all 0.3s ease;
}

.site-nav a {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  color: #000;
  text-decoration: none;
}

.site-nav a:hover {
  background-color: #f2f2f2;
}

.site-nav.open {
  display: flex;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: block;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    border: none;
    background: transparent;
  }

  .site-nav a {
    border: none;
    padding: 1rem;
    color: white;
  }
}

/* ============================
   Typography & Layout
============================ */

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f2fa;
  color: #2c1d30;
  line-height: 1.6;
}

.site-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #000;
  max-height: 200px;
}

/* ============================
   Social Share Icons
============================ */

.social-share {
  margin: 1em 0;
}

.social-share a {
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.2s;
}

.social-share svg {
  vertical-align: middle;
}

.social-share a:hover svg {
  transform: scale(1.2);
}

/* ============================
   Headings
============================ */

h1, h2, h3, h4, h5, h6 {
  color: #4d1f6f;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.2;
}

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

/* ============================
   Links
============================ */

a {
  color: #6c2f8f;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  color: #4d1f6f;
  text-decoration: underline;
}

/* ============================
   Header Styles
============================ */

header {
  background: #8e5cae;
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0 0 1rem 0;
}

header .site-title-link {
  color: white;
  text-decoration: none;
}

header .site-title-link:hover {
  text-decoration: underline;
}

header nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.5rem 0.2rem;
  transition: all 0.3s ease;
}

header nav a:hover,
header nav a.active {
  text-decoration: underline;
}

/* ============================
   Main Content Layout
============================ */

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro, .blog-post, .blog-post-single {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.blog-post h3 {
  margin-top: 0;
  color: #6c2f8f;
  margin-bottom: 0.5rem;
}

/* ============================
   Buttons
============================ */

.download-button,
.support-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  margin: 0.5rem 0;
}

.download-button {
  background-color: #6c2f8f;
  color: white;
}

.download-button:hover {
  background-color: #4d1f6f;
  transform: translateY(-2px);
}

.support-link {
  background-color: #ffdd00;
  color: #000;
}

.support-link:hover {
  background-color: #ffe866;
  transform: translateY(-2px);
}

/* ============================
   Footer
============================ */

footer {
  text-align: center;
  padding: 1.5rem;
  background: #8e5cae;
  color: white;
  margin-top: 3rem;
  font-size: 0.9em;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover {
  color: #f9f9f9;
}

/* ============================
   Blog Post Content
============================ */

.post-meta {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 1.5rem;
  text-align: center;
}

.post-content {
  margin-top: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.8rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 5px solid #6c2f8f;
  padding-left: 1.2rem;
  margin: 2rem 0;
  color: #555;
  font-style: italic;
  background-color: #fcf6ff;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0 5px 5px 0;
}

.post-content pre {
  background-color: #eee;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

.post-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  background-color: rgba(0,0,0,0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid #dcdcdc;
  margin: 3rem auto;
  width: 70%;
}

.back-link {
  text-align: center;
  margin-top: 2rem;
}

/* ============================
   Mobile Adjustments
============================ */

@media (max-width: 768px) {
  header nav a {
    display: block;
    margin: 0.5rem 0;
    font-size: 1rem;
  }

  main {
    margin: 1rem;
  }

  h1 { font-size: 2em; }
  h2 { font-size: 1.7em; }
  h3 { font-size: 1.3em; }

  .download-button,
  .support-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .post-content ul,
  .post-content ol {
    margin-left: 1rem;
  }
}
