/* Custom Font */
@font-face {
  font-family: 'CustomFont';
  src: url('../fonts/Zelek Shadline.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #31312d;
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
}

/* Homepage Container */
.home-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Logo */
.logo {
  max-width: 60rem;
  width: 100%;
  height: auto;
  margin-bottom: 3rem;
  display: block;
}

/* Links Container */
.links-container {
  width: 100%;
  max-width: 600px;
  margin-bottom: 3rem;
}

.link-item {
  display: block;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Recent Posts Section */
.recent-posts {
  width: 100%;
  max-width: 600px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.post-list {
  list-style: none;
}

.post-item {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.post-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.post-item a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.post-item .post-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.post-item .post-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Blog Page */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.blog-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.blog-posts-list {
  list-style: none;
}

.blog-post-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.blog-post-item h2 {
  margin-bottom: 0.5rem;
}

.blog-post-item h2 a {
  color: #fff;
  text-decoration: none;
}

.blog-post-item h2 a:hover {
  text-decoration: underline;
}

.blog-post-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.blog-post-excerpt {
  color: rgba(255, 255, 255, 0.9);
}

/* Post Page */
.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.post-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.post-content code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.back-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .home-container {
    padding: 1rem;
  }

  .blog-container,
  .post-container {
    padding: 2rem 1rem;
  }
}
