/* 
Override default h1 style for better visibility 
*/
header h1 {
  margin: 0 0 0 0;
}
/* Avatar Styles */
.avatar-section {
  text-align: center;
  margin-bottom: 20px;
}

.avatar-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: inline-block;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #b5e853;
  box-shadow: 0 0 15px rgba(181, 232, 83, 0.3), 0 0 25px rgba(181, 232, 83, 0.1);
  transition: all 0.3s ease;
}

.avatar-image:hover {
  box-shadow: 0 0 20px rgba(181, 232, 83, 0.5), 0 0 35px rgba(181, 232, 83, 0.2);
  transform: scale(1.05);
}

/* Responsive design for avatar */
@media (max-width: 768px) {
  .avatar-section {
    margin-bottom: 15px;
  }

  .avatar-container {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .avatar-section {
    margin-bottom: 10px;
  }

  .avatar-container {
    width: 50px;
    height: 50px;
  }
}

/* Custom styles for filter buttons and list styling */

/* Filter button container */
#tag-filter-container {
  margin: 20px 0;
  padding: 10px 0;
}

/* Filter button styling to match dark theme */
.filter-btn {
  background: rgba(40, 40, 40, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid rgba(0, 0, 0, 0.7);
  border-top: 2px solid black;
  color: rgba(255, 255, 255, 0.8);
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal,
    monospace;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 18px;
  margin: 5px;
  border-radius: 50px;
  cursor: pointer;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(40, 40, 40, 0.6);
  color: #b5e853;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(181, 232, 83, 0.1),
    0 0 10px rgba(181, 232, 83, 0.1);
}

.filter-btn.active {
  background: rgba(181, 232, 83, 0.2);
  color: #b5e853;
  border-color: #b5e853;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(181, 232, 83, 0.3),
    0 0 10px rgba(181, 232, 83, 0.3);
}

/* Preserve list styling for posts */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post {
  margin: 20px 0;
  padding: 0;
  position: relative;
}

/* Ensure the green arrows (>>) are always visible */
.post::before {
  content: ">>";
  color: #b5e853;
  font-weight: bold;
  margin-right: 10px;
  display: inline-block;
}

/* Post meta styling */
.post-meta {
  color: #b5e853;
  font-size: 14px;
  margin-right: 10px;
}

/* Post title styling */
.post h3 {
  display: inline;
  margin: 0;
  font-size: 18px;
}

.post-link {
  color: #63c0f5;
  text-shadow: 0 0 5px rgba(104, 182, 255, 0.5);
  text-decoration: none;
}

.post-link:hover {
  text-decoration: underline;
}

/* Post excerpt styling */
.post p {
  color: #eaeaea;
  margin: 10px 0;
  line-height: 1.5;
}

/* Post tags styling */
.post-tags {
  color: #b5e853;
  font-size: 14px;
  margin-top: 10px;
}

.post-tags .tag {
  color: #b5e853;
}

/* Ensure proper spacing */
.post br {
  line-height: 1.5;
}

/* Enhanced styling for individual blog posts */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #b5e853;
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(181, 232, 83, 0.3);
}

.post-content h1 {
  font-size: 2.2em;
  border-bottom: 2px solid #b5e853;
  padding-bottom: 10px;
}

.post-content h2 {
  font-size: 1.8em;
  border-bottom: 1px solid rgba(181, 232, 83, 0.5);
  padding-bottom: 8px;
}

.post-content h3 {
  font-size: 1.4em;
}

.post-content p {
  color: #eaeaea;
  margin-bottom: 20px;
  text-align: justify;
}

.post-content a {
  color: #63c0f5;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(104, 182, 255, 0.5);
  transition: all 0.3s ease;
}

.post-content a:hover {
  color: #b5e853;
  text-shadow: 0 0 8px rgba(181, 232, 83, 0.6);
  text-decoration: underline;
}

.post-content code {
  background: rgba(40, 40, 40, 0.8);
  color: #b5e853;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal,
    monospace;
  font-size: 0.9em;
  border: 1px solid rgba(181, 232, 83, 0.3);
}

.post-content pre {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(181, 232, 83, 0.3);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #eaeaea;
  font-size: 0.9em;
  line-height: 1.4;
}

.post-content blockquote {
  border-left: 4px solid #b5e853;
  background: rgba(40, 40, 40, 0.3);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #eaeaea;
}

.post-content ul,
.post-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.post-content li {
  color: #eaeaea;
  margin: 8px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(40, 40, 40, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.post-content th,
.post-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(181, 232, 83, 0.2);
}

.post-content th {
  background: rgba(181, 232, 83, 0.1);
  color: #b5e853;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(181, 232, 83, 0.3);
}

.post-content td {
  color: #eaeaea;
}

.post-content tr:hover {
  background: rgba(181, 232, 83, 0.05);
}

/* Navigation improvements */
#pages a {
  color: #63c0f5;
  text-decoration: none;
  margin: 0 15px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(104, 182, 255, 0.5);
}

#pages a:hover {
  background: rgba(181, 232, 83, 0.1);
  color: #b5e853;
  text-shadow: 0 0 8px rgba(181, 232, 83, 0.6);
  transform: translateY(-2px);
}

/* Enhanced page content styling */
#main_content h1 {
  color: #b5e853;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 15px rgba(181, 232, 83, 0.4);
}

#main_content h2 {
  color: #b5e853;
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(181, 232, 83, 0.5);
  padding-bottom: 10px;
}

#main_content h3 {
  color: #b5e853;
  font-size: 1.4em;
  margin-top: 30px;
  margin-bottom: 15px;
}

#main_content p {
  color: #eaeaea;
  margin-bottom: 20px;
  line-height: 1.7;
}

#main_content ul,
#main_content ol {
  margin: 20px 0;
  padding-left: 30px;
}

#main_content li {
  color: #eaeaea;
  margin: 10px 0;
  line-height: 1.6;
}

#main_content strong {
  color: #b5e853;
}

#main_content em {
  color: #eaeaea;
  font-style: italic;
}

/* Post header styling */
.post-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(181, 232, 83, 0.3);
}

.post-header .post-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #b5e853;
  text-shadow: 0 0 15px rgba(181, 232, 83, 0.4);
}

.post-header .post-meta {
  color: #b5e853;
  font-size: 1.1em;
}

.post-header .post-tags {
  margin-top: 10px;
  font-size: 0.9em;
}

.post-header .tag {
  background: rgba(181, 232, 83, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  margin: 0 5px;
  border: 1px solid rgba(181, 232, 83, 0.3);
}

/* Smooth scrolling and animations */
html {
  scroll-behavior: smooth;
}

/* Loading animation for search */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.search-loading {
  animation: pulse 1.5s infinite;
}

/* Enhanced button hover effects */
.btn,
.filter-btn {
  position: relative;
  overflow: hidden;
}

.btn::before,
.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before,
.filter-btn:hover::before {
  left: 100%;
}

/* Improved focus states for accessibility */
#search-input:focus,
.filter-btn:focus,
#pages a:focus {
  outline: 2px solid #b5e853;
  outline-offset: 2px;
}

/* Enhanced table responsiveness */
@media (max-width: 768px) {
  .post-content table {
    font-size: 0.8em;
  }

  .post-content th,
  .post-content td {
    padding: 8px 10px;
  }
}

/* Responsive improvements for post content */
@media (max-width: 768px) {
  .post-content {
    padding: 15px;
  }

  .post-content h1 {
    font-size: 1.8em;
  }

  .post-content h2 {
    font-size: 1.5em;
  }

  .post-content pre {
    padding: 15px;
    font-size: 0.8em;
  }

  #pages a {
    margin: 0 8px;
    padding: 6px 12px;
    font-size: 0.9em;
  }

  .post-header .post-title {
    font-size: 2em;
  }

  .post-header .post-meta {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .post-content {
    padding: 10px;
  }

  .post-content h1 {
    font-size: 1.5em;
  }

  .post-content h2 {
    font-size: 1.3em;
  }

  .post-content pre {
    padding: 10px;
    font-size: 0.75em;
  }

  #pages a {
    margin: 0 5px;
    padding: 4px 8px;
    font-size: 0.8em;
  }

  .post-header .post-title {
    font-size: 1.8em;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8em;
    margin: 3px;
  }
}
