/* File: /blog/style.css */
@font-face {
  font-family: 'Unica One';
  src: url('https://images.echofyre.com/UnicaOne-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('https://images.echofyre.com/IBMPlexSerif-Regular.woff2') format('woff2');
}

body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Serif', serif;
  background: url('https://images.echofyre.com/blog_bg.jpg') center center no-repeat fixed;
  background-size: cover;
  position: relative;
  min-height: 100vh;
  z-index: 1;
  color: #f4f4f4;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.2); /* light overlay */
  backdrop-filter: brightness(1.15);
  z-index: 0;
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

main.entry-box {
  background: rgba(0, 0, 0, 0.85);
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  border: 2px solid #e0b84a;
  border-radius: 12px;
  box-shadow: 0 0 24px #000000aa;
  position: relative;
  z-index: 2;
}

h1.blog-title {
  font-family: 'Unica One', cursive;
  font-size: 3rem;
  text-align: center;
  color: #e0b84a;
  text-shadow: 0 0 6px #000;
}

h2.blog-title {
  font-family: 'Unica One', cursive;
  font-size: 2rem;
  text-align: center;
  color: #e0b84a;
  text-shadow: 0 0 6px #000;
}

.intro-quote {
  text-align: center;
  font-style: italic;
  color: #ddd;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* === Post Entries === */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-entry h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #f5e8c6;
}

.post-entry a {
  color: #f5e8c6;
  text-decoration: none;
}

.post-entry a:hover {
  color: #e0b84a;
  text-decoration: underline;
}

.post-snippet {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #cccccc;
}

.post-entry h2 a {
  color: #f5f5f5;
  text-decoration: none;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.post-entry h2 a:hover {
  color: #9e0b0f;
  text-shadow:
    0 0 4px #9e0b0f,
    0 0 10px #9e0b0faa,
    0 0 16px #480000aa;
}

.post-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #e0b84a30, #e0b84a90, #e0b84a30);
  margin: 2rem 0;
}

/* === File Code === */
.file-code {
  font-family: monospace;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: right;
  display: block;
  font-style: italic;
  opacity: 0.6;
}

/* === Return Button === */
.return-button {
  text-align: center;
  margin-top: 3rem;
}

.return-button a {
  font-family: 'Unica One', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: 2px solid #222;
  background-color: #1a1a1a;
  color: #f5f5f5;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 0 10px #00000040;
  transition: all 0.3s ease-in-out;
}

.return-button a:hover {
  background-color: #ffffff;
  color: #0c0c0c;
  border-color: #e0b84a;
  box-shadow: 0 0 12px #e0b84a80;
}

/* === Threnna Comments === */
.threnna-comment {
  color: #9c50c3;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  text-align: right;
}

.threnna-box {
  background-color: rgba(30, 0, 50, 0.6);
  border: 1.5px solid #9c50c3;
  border-left: 4px solid #9c50c3;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  color: #d2aaff;
  font-style: italic;
  font-size: 0.95rem;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px #9c50c370;
  backdrop-filter: blur(3px);
}

/* === Commentics visual overrides === */
#cmtx_form {
  background-color: rgba(0, 0, 0, 0.55);
  border: 2px solid #e0b84a;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 16px #e0b84a60;
  color: #f5f5f5;
  font-family: 'IBM Plex Serif', serif;
  margin-top: 2rem;
}

#cmtx_form input[type="text"],
#cmtx_form input[type="email"],
#cmtx_form textarea,
#cmtx_form select {
  background-color: #0c0c0c;
  color: #f5f5f5;
  border: 1px solid #555;
  border-radius: 6px;
}

#cmtx_form .cmtx_button {
  background-color: #222;
  border: 1px solid #e0b84a;
  color: #e0b84a;
  font-family: 'Unica One', sans-serif;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Force centering for Commentics buttons regardless of structure */
#cmtx_form .cmtx_buttons,
#cmtx_buttons,
.cmtx_buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

#cmtx_form form > div:last-of-type {
  display: flex !important;
  justify-content: center !important;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.custom-centered-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
