* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #e8e8e8 0%, #f5f5f5 100%);
  padding: 20px;
  line-height: 1.5;
}

/* Top Bar - Same as main page */
.topbar {
  background: #b8b8b8;
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  margin: 0 auto 12px auto;
}

.nav-links {
  font-size: 14px;
  color: #2a2a2a;
}

.nav-links a {
  color: #2a2a2a;
  text-decoration: underline;
}

.username {
  font-size: 14px;
  color: #2a2a2a;
}

/* Main Card - Same style as profile */
.card {
  background: #bfbfbf;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.blog-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.blog-subtitle {
  font-size: 16px;
  color: #4a4a4a;
  font-weight: 400;
}

/* Blog Post Styling */
.blog-post {
  margin-bottom: 40px;
  padding: 25px;
  background: #DCE0E0;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.post-meta {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #1a1a1a;
}

.post-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.post-date {
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.post-content {
  font-size: 15px;
  line-height: 1.8;
  color: #2a2a2a;
  margin-bottom: 20px;
}

.post-content p {
  margin-bottom: 15px;
}

.post-content strong {
  font-weight: 700;
  color: #1a1a1a;
}

.post-content ul {
  margin: 15px 0 15px 25px;
  padding: 0;
}

.post-content ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Tags */
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #e0e0e0;
  color: #2a2a2a;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.back-link a {
  font-size: 15px;
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-link a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    padding: 25px 20px;
  }
  
  .blog-title {
    font-size: 36px;
  }
  
  .post-title {
    font-size: 22px;
  }
  
  .blog-post {
    padding: 20px;
  }
  
  .topbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
#rain-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 100;
}

.rain-drop {
  position: absolute;
  top: -30px;
  width: 2.2px;
  height: 18px;
  background: linear-gradient(
    to bottom,
    #7ba9ce 0%,  #466689 70%, rgba(40, 60, 80, 0.15) 100%
  );
  border-radius: 2px;
  opacity: 0.5;
  animation: rainfall linear forwards;
}

@keyframes rainfall {
  from { top: -30px; }
  to   { top: 98vh; }
}

