/* ================================
   DESIGN LOCK — FINAL (Index only)
   ================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: url("/images/bg.jpg") repeat center center fixed; /* starry background */
  background-size: auto; /* tile naturally */
  color: #e6efe9;
  font-family: "Platypi", serif;
}

/* ===== Header ===== */
.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

/* ===== Title row: sun + text + moon ===== */
.site-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.title-text {
  position: relative;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: #e6efe9;
  animation: glow 4s ease-in-out infinite; /* unified glow */
}

.title-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, #fff176, #ffecb3);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: underlineShift 6s linear infinite;
}

/* Sun + moon accents */
.sun, .moon {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: baseline;
  animation: glow 4s ease-in-out infinite; /* unified glow */
}

.sun {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  transform: translateY(-0.30rem);
}

.moon {
  color: #9fc5b5;
  text-shadow: 0 0 6px rgba(159, 197, 181, 0.6);
  font-size: 1.3rem;
  transform: translateY(-0.20rem);
}

/* ===== Nav ===== */
.site-nav a {
  margin: 0 0.7rem;
  text-decoration: none;
  color: #9fc5b5;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.site-nav a:hover {
  color: #ffd700;
  animation: glow 4s ease-in-out infinite; /* unified glow */
}

.site-nav a.active {
  color: #9fc5b5;
  font-weight: 600;
  font-size: 1.5rem;
  animation: glow 4s ease-in-out infinite; /* unified glow */
}

/* ===== Layout ===== */
.layout {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ===== Section headers ===== */
.section-header {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #9fc5b5;
  border-bottom: 1px solid #2e3a38;
  padding-bottom: 0.7rem;
  margin-bottom: 1.4rem;
}

.about-box .section-header { border-bottom-color: #2f4f45; }

/* ===== Shared text ===== */
.text-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 1.3em 0;
}

/* ===== About ===== */
.about-box {
  background: rgba(47, 63, 57, 0.85); /* semi-transparent */
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(159, 197, 181, 0.3);
  animation: breathingGlow 4s ease-in-out infinite;
}

/* breathing glow */
@keyframes breathingGlow {
  0%   { box-shadow: 0 0 8px rgba(159, 197, 181, 0.2); }
  50%  { box-shadow: 0 0 20px rgba(159, 197, 181, 0.6); }
  100% { box-shadow: 0 0 8px rgba(159, 197, 181, 0.2); }
}

/* ===== Blog box ===== */
.blog-box {
  background: rgba(28, 34, 34, 0.85); /* semi-transparent big box */
  padding: 2rem;
  border-radius: 16px;
}

/* ===== Post cards ===== */
.post {
  background: #1f2626; /* fully opaque */
  padding: 1.6rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post:hover {
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.8),
    0 0 24px rgba(255, 255, 150, 0.6),
    0 0 36px rgba(255, 255, 200, 0.4);
  transform: translateY(-4px);
}

.post h2 {
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.post time { font-size: 0.85rem; color: #9fc5b5; }

.post a {
  display: inline-block;
  margin-top: 0.8rem;
  margin-bottom: 1.9rem;
  font-size: 0.9rem;
  color: #9fc5b5;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post a:hover {
  color: #ffd700;
  animation: glow 4s ease-in-out infinite; /* unified glow */
}

/* ===== Glow animations ===== */
@keyframes glow {
  0%   { text-shadow: 0 0 6px rgba(255, 215, 0, 0.3); }
  50%  { text-shadow: 0 0 14px rgba(255, 215, 0, 0.8); }
  100% { text-shadow: 0 0 6px rgba(255, 215, 0, 0.3); }
}

@keyframes underlineShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 0 0.9rem;
  }

  .about-box, .blog-box { width: 100%; }

  .title-text { font-size: 1.8rem; }
}
