/*
Theme Name: THE TRUTH
Theme URI: https://trooth.org/
Author: Andy Fox
Author URI: https://foxco.net
Description: A dark, terminal-style minimalist theme that flickers like the truth.
Version: 3.91
*/

/* ============================= */
/* BASE STYLES */
/* ============================= */
body {
  background: #000;
  color: #e0e0e0;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
  padding: 0;
}

.site-title {
  font-size: 3rem;
  text-align: center;
  margin: 2rem 0;
}

/* ============================= */
/* TERMINAL POST TITLE */
/* ============================= */
.terminal-post-title {
  font-family: 'IBM Plex Mono', monospace;
  color: #0f0;
  font-size: 2rem;
  border-left: 4px solid #0f0;
  padding-left: 1rem;
  margin-bottom: 2rem;
  white-space: nowrap;
  overflow: hidden;
}

/* ============================= */
/* CURSOR FOR TYPED TITLE */
/* ============================= */
.cursor {
  font-weight: bold;
  color: #0f0;
  animation: blink 1s infinite step-start;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ============================= */
/* SITE TITLE OVERRIDE */
/* ============================= */
.site-title a,
.site-title a:visited,
.site-title a:hover,
.site-title a:active {
  color: white !important;
  text-decoration: none !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-weight: bold;
  display: inline-block;
}

/* ============================= */
/* TYPING ANIMATION */
/* ============================= */
.site-title a {
  animation: flicker-glow 5s ease-in-out 1;
  animation-fill-mode: forwards;
}

@keyframes flicker-glow {
  0%, 3%, 7%, 10%, 14%, 18%, 22%, 26%, 30%, 34%, 38%, 42%, 46% {
    opacity: 0;
    color: black;
  }
  1%, 5%, 8%, 12%, 16%, 20%, 24%, 28%, 32%, 36%, 40%, 44%, 48% {
    opacity: 1;
    color: white;
  }
  50%, 100% {
    opacity: 1;
    color: white;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #0f0;
  }
}

/* ============================= */
/* ENTRY CONTENT SPACING */
/* ============================= */
.entry-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================= */
/* POST CONTENT PADDING */
/* ============================= */
.content-area {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (min-width: 768px) {
  .content-area {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* ============================= */
/* FEATURED IMAGE DISPLAY */
/* ============================= */
.featured-image img {
  width: 50%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* ============================= */
/* COMMENTS STYLING */
/* ============================= */
.comments-area {
  border: 2px dashed #00ff00;
  padding: 2rem;
  margin-top: 3rem;
  font-family: 'IBM Plex Mono', monospace;
  background-color: #111;
  color: #e0e0e0;
}

.comment-list li {
  border-top: 1px dashed #00ff00;
  padding-top: 1rem;
  margin-top: 1rem;
}

.comments-title, .comment-reply-title {
  color: #00ff00;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================= */
/* POST VIEWS STYLING */
/* ============================= */
.post-views {
  display: block;
  text-align: right;
  margin-top: 1rem;
  color: #00ff00;
  font-size: 0.95rem;
}

/* ============================= */
/* POST END DIVIDER */
/* ============================= */
.entry-content::after {
  content: "";
  display: block;
  border-bottom: 2px dashed #00ff00;
  margin-top: 2rem;
  padding-bottom: 15px;
}

/* ============================= */
/* DARK MODE + MOBILE ENHANCEMENTS */
/* ============================= */
body.alt-dark {
  background: #fff;
  color: #111;
}

body.alt-dark .site-title a {
  color: #000 !important;
}

body.alt-dark .cursor {
  color: #111;
}

body.alt-dark .entry-content::after {
  border-color: #333;
}

body.alt-dark .post-views {
  color: #333;
}

@media screen and (max-width: 600px) {
  .content-area {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-title {
    font-size: 2rem;
  }
}

.footer-links {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: #0f0;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0 1rem;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

.footer-links {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #0f0;
  background: transparent;
  border: 1px dashed #0f0;
  padding: 0.5rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.footer-links a:hover {
  background-color: #0f0;
  color: #000;
  text-decoration: none;
}

.footer-widget {
  text-align: center;
  padding: 2rem;
  background-color: #111;
  color: #fff;
}
.footer-widget a {
  color: #0f0;
  text-decoration: none;
}
.footer-widget a:hover {
  text-decoration: underline;
}

/* Animate into X */
#burger-button.open .bun.top {
  transform: rotate(45deg) translateY(10px);
  background: #f00;
}
#burger-button.open .bun.bottom {
  transform: rotate(-45deg) translateY(-10px);
  background: #f00;
}
#burger-button.open .lettuce,
#burger-button.open .patty {
  opacity: 0;
}

/* Improve visibility */
#burger-button {
  background: #000;
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 6px;
}

/* Ensure burger is always visible */
#burger-button {
  display: block !important;
  z-index: 1001;
}

/* Fix nav visibility and fallback */
#mobile-nav {
  display: block !important;
}
