/* -------------------- General Body & Font -------------------- */
body {
  font-family: Georgia, serif;
  margin: 0;
  padding: 0;
  background: #fdfdf9;
  color: #333;
  line-height: 1.6;
}

/* -------------------- Header & Navigation -------------------- */
header {
  background: #e6f0ea;
  padding: 1rem;
  text-align: center;
  border-bottom: 2px solid #ccc;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #007f5f;
}

/* -------------------- Main Content -------------------- */
main {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

/* -------------------- Blog Post Styling -------------------- */
article.post {
  background: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

article.post h2 {
  margin-top: 0;
}

.date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

/* -------------------- Back to Top Link -------------------- */
.back-top {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.back-top a {
  text-decoration: none;
  color: #2e8b57;          /* soft forest green */
  font-weight: 500;
  position: relative;
  padding-right: 1.2em;
  transition: color 0.3s ease;
}

.back-top a::after {
  content: "🍃";            /* little leaf icon */
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.back-top a:hover {
  color: #1f5a3c;
}

.back-top a:hover::after {
  transform: translateY(-3px);
  opacity: 1;
}

/* -------------------- Footer Styling -------------------- */
footer {
  text-align: center;
  padding: 1rem;
  background: #e6f0ea;
  border-top: 2px solid #ccc;
  margin-top: 2rem;
}

/* -------------------- Transcendent Connection Chat -------------------- */
.chat-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.chat-input {
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.send-btn {
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  background: #2e8b57;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.send-btn:hover {
  background: #1f5a3c;
}

/* -------------------- Chat Response Styling -------------------- */
.response {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #e6f0ea;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.8s forwards, rippleGlow 1.2s ease-out;
}

/* -------------------- User Message Styling -------------------- */
.user-message {
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: #f0f9f5;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.8s forwards, userRipple 1.2s ease-out;
}

/* -------------------- Animations -------------------- */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes rippleGlow {
  0% { box-shadow: 0 0 0 rgba(46, 139, 87, 0.3); }
  50% { box-shadow: 0 0 15px rgba(46, 139, 87, 0.4); }
  100% { box-shadow: 0 0 0 rgba(46, 139, 87, 0); }
}

@keyframes userRipple {
  0% { box-shadow: 0 0 0 rgba(46, 139, 87, 0.2); }
  50% { box-shadow: 0 0 12px rgba(46, 139, 87, 0.25); }
  100% { box-shadow: 0 0 0 rgba(46, 139, 87, 0); }
}
