/* Reset and Base Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #222;
  text-align: center;
}

ul {
  list-style: none;
  padding: 0;
}

/* Layout Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Post List */
.post-list li {
  background-color: white;
  margin: 20px 0;
  padding: 20px;
  border-left: 4px solid #54a7ff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.post-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-list a {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.post-list a:hover {
  color: #54a7ff;
}

.post-list small {
  display: block;
  margin-top: 6px;
  color: #888;
}

/* Navigation */
.blog-nav {
  text-align: center;
  margin: 30px 0;
}

.blog-nav a {
  margin: 0 10px;
  color: #54a7ff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.blog-nav a:hover::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #54a7ff;
  position: absolute;
  bottom: -4px;
  left: 0;
}

/* Search Bar */
.search-container {
  text-align: center;
  margin: 30px 0;
}

#search-posts {
  padding: 12px 18px;
  width: 90%;
  max-width: 500px;
  font-size: 1em;
  border: 2px solid #ccc;
  border-radius: 6px;
  transition: 0.3s;
}

#search-posts:focus {
  border-color: #54a7ff;
  outline: none;
}

/* Back Link */
.back-link {
  display: block;
  text-align: center;
  margin: 40px 0;
}

.back-link a {
  display: inline-block;
  padding: 12px 20px;
  background: #54a7ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.back-link a:hover {
  background: #3c90e5;
}

/* Responsive */
@media (max-width: 600px) {
  .post-list li {
    padding: 15px;
  }

  .blog-nav {
    font-size: 0.9em;
  }
}

body.dark {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

body.dark a {
  color: #90c2ff;
}

body.dark .post-list li {
  background-color: #2b2b2b;
  border-left-color: #90c2ff;
  box-shadow: none;
}

.dark-toggle {
  
  text-align: center;
  margin-bottom: 20px;
}


body.dark small {
  color: #aaa;
}

body.dark h1, 
body.dark h2, 
body.dark h3 {
  color: #f2f2f2;
}

body.dark .blog-nav {
  background: #2b2b2b;
  border: 1px solid #444;
}

body.dark .blog-nav a {
  color: #90c2ff;
}

body.dark .blog-nav a:hover {
  color: #c0d8ff;
}

body.dark .blog-nav a:hover::after {
  background: #c0d8ff;
}
