/* style.css */
/* Global/reset, layout, and site-wide variables for dark mode */

:root {
  /* Dark‐mode base colors */
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --link-color: #81a1c1;
  --link-hover-color: #88c0d0;
  --accent-color: #5e81ac;
  --max-content-width: 90%;
}

* {
  box-sizing: border-box;
}
html {
  height: 100%;
}

body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: #e0e0e0;
}


/*//////////////////////////////*/
/*///// Header & Navbar ////////*/
/*//////////////////////////////*/

.main-nav{
  background-color: #333;
  overflow: hidden;
}

.main-nav a{
  float:left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
}

.main-nav a:hover{
  background-color: #ddd;
  border-radius: 20%;
  color: black;
}

/*//////////////////////////////*/
/*///// Footer & Copywrite /////*/
/*//////////////////////////////*/

/* footer.css */
/* Sticky footer with dark background, small centered text */

.site-footer {
  background-color: #1f1f1f;
  color: var(--text-color);
  padding: 1.5rem 0;
  margin-top: auto; /* push to bottom if content is short */
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-logo {
  width: auto;
  height: 120px;
  margin-right: 1rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.footer-nav li + li {
  margin-left: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.15s ease;
}
.footer-nav a:hover {
  color: var(--link-hover-color);
}

.footer-copy {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
}

.main-nav {
  background-color: #333;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  flex-wrap: wrap;
}

.nav-left a, .nav-right a {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
}

.nav-left {
  display: flex;
  flex-wrap: wrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hover style */
.main-nav a:hover {
  background-color: #ddd;
  border-radius: 8px;
  color: black;
}

/* Right-side Buttons */
.right-button {
  position: relative;
  display: inline-block;
}

/* Login button override */
.login-btn {
  background-color: var(--accent-color);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: var(--link-hover-color);
  color: black;
}

.sub-site-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  font-size: 0.85em;
}

.sub-nav {
  display: flex;
  justify-content: space-between;
  padding: 5px 20px;
}

.sub-nav a {
  margin-right: 10px;
  text-decoration: none;
  color: #333;
}

.sub-nav a:hover {
  text-decoration: underline;
}


.blogpost {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem; /* space between posts */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}


.blogpost:hover {
  background-color: #1e1e1e;
  transform: translateY(-4px);
}

.blogpost .blog-header h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.blogpost .blog-header h2 a {
  text-decoration: none;
  color: var(--accent-color);
}

.blogpost .blog-header h2 a:hover {
  color: var(--link-hover-color);
  border-bottom: 1px solid var(--link-hover-color);
}

.blogpost .blog-post {
  margin-top: 1rem;
}


.content{
  padding: 2rem 1rem;
}


.wiki-layout {
  display: flex;
  max-width: var(--max-content-width);
  margin: 2rem auto;
  padding: 0 1rem;
  gap: 2rem;
}

.wiki-sidebar {
  flex: 0 0 250px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  height: fit-content;
}

.wiki-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Enhance nested category indentation */
.wiki-categories ul {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #444; /* visual hierarchy line */
}

.wiki-categories li {
  margin-bottom: 0.5rem; /* tightened up slightly for better nesting appearance */
}

/* Optional visual marker for subcategories */
.wiki-categories li::marker {
  color: var(--accent-color);
}


.wiki-categories a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.wiki-categories a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.wiki-content {
  flex: 1;
}
