/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.6;
  color: #fff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('/assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #fff;
  opacity: 1;
}

/* Header and navigation */
header {
  padding: 0.5rem 0;
  position: relative;
  margin-top: 1rem;
  z-index: 1000;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

h1 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 3.5rem;
  margin: 0;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
              0 0 20px rgba(255, 255, 255, 0.5),
              0 0 30px rgba(255, 255, 255, 0.3);
  cursor: default;
}

/* Remove the main padding since we're not using fixed header anymore */
main {
  padding-top: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

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

/* Main content */
main {
  flex: 1;
  padding: 1rem;
}

.post {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.post-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-direction: column;
}

.post-header .post-author {
  flex: 0 0 auto;
  margin-top: 0.5rem;
  text-align: center;
}

.post-header .post-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

.post-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  text-align: center;
  line-height: 1.4;
}

.post-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #666;
  font-size: 0.8rem;
  margin-top: 1rem;
  text-align: center;
}

.post-info .post-author-name {
  margin: 0;
  color: #2c3e50;
  font-weight: 500;
}

.post-info .post-date {
  margin-top: 0.2rem;
  color: #666;
  font-size: 0.8rem;
}

/* Responsive styles */
@media (min-width: 768px) {
  main {
    padding: 2rem;
  }

  .post {
    max-width: 800px;
    padding: 2rem;
  }

  .post-header .post-author img {
    width: 60px;
    height: 60px;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-info {
    font-size: 0.9rem;
  }
}

/* Posts */
.posts-list {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post-preview {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.post-preview::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 7px;
  filter: blur(8px);
  z-index: -1;
}

.post-preview::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  filter: blur(12px);
  z-index: -2;
}

.post-preview:hover {
  transform: translateY(-10px);
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5);
}

.post-preview:hover::before {
  border: 2px solid rgba(255, 255, 255, 1);
}

.post-preview:hover::after {
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.post-preview::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: 0.5s;
}

.post-preview:hover::before {
  left: 100%;
}

.post-preview:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.post-preview.welcome-post {
  border: 2px solid #fff;
  margin-bottom: 3rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-link:hover .post-preview {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.post-link:hover .post-preview::before {
  left: 100%;
}

.post-preview.welcome-post::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  filter: blur(5px);
}

.post-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-preview .post-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.post-preview:hover .post-author img {
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.post-author img:hover {
  transform: rotate(5deg);
}

.post-author {
  float: left;
  margin-right: 1.5rem;
}

.post-preview .post-content-wrapper {
  flex: 1;
}

.post-preview .post-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #fff;
  transition: color 0.3s ease;
  text-align: center;
}

.post-preview:hover .post-title {
  color: rgba(255, 255, 255, 0.8);
}

.post-preview .post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  color: #666;
  font-size: 0.75rem;
}

.post-preview .post-meta .post-author-name {
  margin: 0;
  color: #fff;
  font-weight: 500;
  font-family: 'UnifrakturCook', cursive;
}

.post-preview .post-meta .post-date {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
}

.post-preview:hover {
  transform: translateY(-1px);
}

.post-preview .post-excerpt {
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: justify;
}

.post-preview:hover {
  transform: translateY(-1px);
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #2c3e50;
}

.post-date {
  color: #666;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
  display: block;
}

.post-excerpt {
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #007bff;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  color: #666;
  font-size: 0.9rem;
}

/* Markdown styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'UnifrakturCook', cursive;
  color: #fff;
  margin-bottom: 1rem;
}

p {
  margin: 1rem 0;
}

ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

a {
  color: #303030;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}
