* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font: 18px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #2d3436;
  background: #ffffff;
}

.hydejack-wrapper {
  display: flex;
  min-height: 100vh;
}
@media (max-width: 850px) {
  .hydejack-wrapper {
    flex-direction: column;
  }
}

.sidebar {
  flex: 0 0 320px;
  background: #1a0033;
  color: #ffffff;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  overflow-y: auto;
}
@media (max-width: 850px) {
  .sidebar {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    position: relative;
    padding: 40px 20px;
  }
}

.sidebar-inner {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.site-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid #6400c7;
  transition: transform 0.3s ease;
}
.site-avatar img:hover {
  transform: rotate(5deg) scale(1.05);
}

.site-name {
  margin: 20px 0 5px;
  font-size: 26px;
  font-weight: 700;
}
.site-name a {
  color: #ffffff;
  text-decoration: none;
}

.site-description {
  font-size: 14px;
  color: #a0a0c0;
  margin-bottom: 30px;
}

nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}
nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  padding: 12px 0;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
nav a:hover {
  color: #6400c7;
  padding-left: 8px;
}

.main-content {
  flex: 1;
  background: #ffffff;
  padding: 20px 20px;
}
@media (max-width: 850px) {
  .main-content {
    padding: 20px 20px;
  }
}

.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  color: #1a0033;
}

a {
  color: #6400c7;
  text-decoration: none;
}

.post {
  padding-bottom: 40px;
  border-bottom: 1px solid #f4effa;
  margin-bottom: 40px;
}
.post blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  border-left: 5px solid #6400c7;
  background: #f4effa;
  font-style: italic;
  font-size: 20px;
}

.sidebar-footer {
  margin-top: 40px;
}
.sidebar-footer .svg-icon {
  fill: #a0a0c0;
  margin-right: 15px;
}
.sidebar-footer .svg-icon:hover {
  fill: #ffffff;
}
.sidebar-footer .copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 20px;
}

@keyframes bounce-glow {
  0%, 100% {
    transform: translateX(-50%) rotate(45deg) translateY(0);
    filter: drop-shadow(0 0 5px #6400c7);
  }
  50% {
    transform: translateX(-50%) rotate(45deg) translateY(10px);
    filter: drop-shadow(0 0 15px #7e00fa);
  }
}
@media (max-width: 850px) {
  .scroll-indicator {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-right: 4px solid #6400c7;
    border-bottom: 4px solid #6400c7;
    transform: translateX(-50%) rotate(45deg);
    animation: bounce-glow 2s infinite ease-in-out;
    pointer-events: none;
  }
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6400c7;
  transition: all 0.3s ease;
}
.read-more:hover {
  color: #1a0033;
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  z-index: 1000;
  cursor: pointer;
  background: #1a0033;
  border: 1px solid #6400c7;
  box-shadow: 0 0 10px rgba(100, 0, 199, 0.5);
  padding: 10px;
  border-radius: 8px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: all 0.3s ease;
}
.menu-toggle:hover {
  box-shadow: 0 0 20px #6400c7;
  transform: scale(1.05);
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 5px 0;
  transition: 0.4s;
}
@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 850px) {
  .sidebar {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-open .menu-toggle .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .nav-open .menu-toggle .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-open .menu-toggle .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  body.nav-open {
    overflow: hidden;
  }
}
.menu-tag {
  font-size: smaller;
}

.external-links {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}
.external-links .social-link {
  display: flex;
  align-items: center;
  color: #a0a0c0;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.external-links .social-link svg {
  margin-right: 12px;
  fill: #a0a0c0;
  transition: all 0.3s ease;
}
.external-links .social-link:hover {
  color: #ffffff;
}
.external-links .social-link:hover svg {
  fill: #ffffff;
  filter: drop-shadow(0 0 5px #6400c7);
  transform: scale(1.1);
}

/* --- Homepage Post Cards Styling --- */
.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.post-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(75, 0, 130, 0.15);
  /* Soft violet shadow */
  border-color: #4B0082;
  /* Deep Violet border */
}

.post-card h2 {
  margin-top: 0;
  font-size: 1.5em;
  line-height: 1.2;
}

.post-card h2 a {
  text-decoration: none;
  color: #222;
}

.post-date {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}

.entry {
  color: #555;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  /* Pushes button to bottom */
}

.read-more {
  text-decoration: none;
  font-weight: bold;
  color: #4B0082;
  /* Deep Violet */
  border: 1px solid #4B0082;
  padding: 8px 15px;
  border-radius: 5px;
  display: inline-block;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.read-more:hover {
  background: #4B0082;
  color: #fff;
}

/* Specific styling for the tag page title only */
.tag-page-title {
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid #4B0082;
  /* Deep Violet */
  box-shadow: 0 4px 6px -1px rgba(75, 0, 130, 0.3);
  margin-bottom: 40px;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* Optional: centers the image */
}
