/*
Theme Name: Antarvasna Child Theme
Template: astra
Version: 1.1
*/

body {
  background-color: #fdf1e4;
  font-family: 'Poppins', sans-serif;
  color: #222;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  background: #1e1c2c;
  padding: 20px 0;
  text-align: center;
}

.site-title {
  color: white;
  font-size: 26px;
  font-weight: bold;
}

.custom-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 0;
  background: #1e1c2c;
  flex-wrap: wrap;
}

.custom-nav a {
  color: #fff;
  background: #2a273a;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(255, 174, 0, 0.3);
  transition: all 0.3s ease;
}

.custom-nav a:hover {
  background-color: #ff9f1c;
  color: #000;
}

.story-list {
  max-width: 900px;
  margin: 40px auto;
  background: #fff3e5;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.story-section-title {
  font-size: 24px;
  color: red;
  font-weight: bold;
  border-bottom: 3px solid red;
  margin-bottom: 25px;
  display: inline-block;
}

.story-box {
  border-bottom: 1px dashed #ccc;
  padding: 20px 0;
}

.story-box h2 {
  color: #c40000;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.story-box h2 a {
  color: #c40000;
}

.story-meta {
  color: #555;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-meta i {
  margin-right: 3px;
}

.story-excerpt {
  color: #333;
  font-size: 15px;
  margin-bottom: 12px;
}

.vote-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vote-buttons button {
  background-color: #007bff;
  border: none;
  padding: 6px 14px;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.vote-buttons button:hover {
  background-color: #0056b3;
}

.site-footer {
  background-color: #1e1c2c;
  color: #fff;
  padding: 25px 15px;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  background: #2a273a;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background: #ff9f1c;
  color: #000;
}

/* Fix content alignment */
.custom-home-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* Ensure images dont overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive layout improvement */
@media (max-width: 768px) {
  .story-list {
    padding: 25px 20px;
  }

  .custom-nav {
    flex-direction: column;
    align-items: center;
  }

  .story-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .vote-buttons {
    flex-direction: column;
    gap: 8px;
  }
}

.custom-home-wrapper {
  padding: 30px;
  background: #fff3e6;
  min-height: 100vh;
}

.custom-post-section {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff3e6;
}

.section-title {
  color: #c00;
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid red;
  padding-bottom: 10px;
}

.custom-post-box {
  background-color: #fff;
  border-left: 3px solid #ff4d4d;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post-title {
  font-size: 20px;
  color: #d70000;
  margin: 0 0 10px;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 15px;
  color: #222;
  margin-bottom: 15px;
}

.post-vote {
  display: flex;
  gap: 10px;
}

.like-btn,
.dislike-btn {
  background-color: #ffe6cc;
  color: #333;
  border: 1px solid #ffcc99;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.like-btn:hover {
  background-color: #ffcc99;
}

.dislike-btn:hover {
  background-color: #ffc2b3;
}

