/* ========================================= */
/* ===== GLOBAL BLOG STYLE ================= */
/* ========================================= */

body {
  background-image: url("../background Stars.png");
  background-repeat: repeat;
  color: #eaeaea;
  text-align: center;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* ========================================= */
/* ===== MENU BAR (Horizontal Top) ========= */
/* ========================================= */

.menu {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 15px auto 25px;
  flex-wrap: wrap;
  padding: 0 12px;
  box-sizing: border-box;
}

.menu a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  background: linear-gradient(black, black) padding-box,
              linear-gradient(135deg, #b266ff, #00ccff) border-box;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.menu a:visited { color: white; }

.menu a:hover {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #b266ff, #00ccff) border-box;
  color: black;
  box-shadow: 0 0 10px rgba(178, 102, 255, 0.5),
              0 0 14px rgba(0, 204, 255, 0.5);
}

/* ========================================= */
/* ===== MARQUEE BAR ======================= */
/* ========================================= */

.marquee-bar {
  background: #6a3cff;
  border: 2px solid cyan;
  border-radius: 14px;
  max-width: 700px;
  margin: 10px auto 20px;
  padding: 6px 12px;
  box-shadow: 0 0 12px rgba(106, 60, 255, 0.6),
              0 0 18px rgba(0, 204, 255, 0.35);
  box-sizing: border-box;
}

.marquee-bar marquee {
  color: white;
  font-weight: bold;
  font-size: 1.05em;
  text-shadow: 0 0 6px cyan;
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .marquee-bar marquee { display: none; }
  .marquee-bar::after {
    content: attr(data-marquee);
    display: block;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 6px cyan;
  }
}

/* ========================================= */
/* ===== BLOG POST BOX ===================== */
/* ========================================= */

.post-box {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #b266ff, #00ccff) border-box;
  border: 3px solid transparent;
  border-radius: 16px;
  color: black;
  padding: 26px 30px;
  margin: 0 auto 18px;
  max-width: 600px; /* Slightly wider for better reading */
  text-align: left;
  box-shadow: 0 0 14px rgba(178, 102, 255, 0.35),
              0 0 18px rgba(0, 204, 255, 0.35);
  box-sizing: border-box;
}

.post-box h1 { text-align: center; margin-top: 0; }
.post-date { display: block; text-align: center; font-size: 0.95em; opacity: 0.7; margin-bottom: 18px; }
.post-box p { line-height: 1.6; margin-bottom: 14px; }

/* ========================================= */
/* ===== POST NAVIGATION BUTTONS =========== */
/* ========================================= */

.post-nav {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto 40px;
  gap: 12px;
  padding: 0 12px;
  box-sizing: border-box;
}

.post-nav a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  background: linear-gradient(black, black) padding-box,
              linear-gradient(135deg, #b266ff, #00ccff) border-box;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.post-nav a:visited { color: white; }

.post-nav a:hover {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #b266ff, #00ccff) border-box;
  color: black;
  box-shadow: 0 0 10px rgba(178, 102, 255, 0.5),
              0 0 14px rgba(0, 204, 255, 0.5);
}

@media (max-width: 420px) {
  .post-nav { flex-direction: column; }
}