:root {
  --primary-color: #6e56cf;
  --secondary-color: #2e2e48;
  --accent-color: #9f7aea;
  --background-color: #f8f7fc;
  --text-color: #333;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --poem-color: #9f7aea;
  --blog-color: #6e56cf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Blog Header */
.blog-header {
  background: linear-gradient(135deg, rgba(110, 86, 207, 0.1), rgba(159, 122, 234, 0.05));
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.header-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

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

/* Filter Section */
.filter-section {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-container {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-container input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: inset 0 1px 3px rgba(110, 86, 207, 0.2);
}

.search-container button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
}

.search-container button:hover {
  background-color: var(--secondary-color);
}

.filter-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

.filter-group h3 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  font-weight: 500;
}

.filter-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 3px 10px rgba(110, 86, 207, 0.3);
}

#sort-select {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e56cf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#sort-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(110, 86, 207, 0.1);
}

.reset-filters-btn {
  align-self: center;
  background-color: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
  font-weight: 500;
  margin-top: 0.5rem;
}

.reset-filters-btn:hover {
  background-color: #f0f0f0;
  color: var(--secondary-color);
  border-color: #d0d0d0;
}

/* Content Section */
.content-section {
  margin-bottom: 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem;
  position: relative;
  padding-right: 5rem;
}

.card-header.poem {
  background-color: rgba(159, 122, 234, 0.1);
  border-bottom: 2px solid var(--poem-color);
}

.card-header.blog {
  background-color: rgba(110, 86, 207, 0.1);
  border-bottom: 2px solid var(--blog-color);
}

.content-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.card-header.poem .content-type {
  background-color: var(--poem-color);
  color: white;
}

.card-header.blog .content-type {
  background-color: var(--blog-color);
  color: white;
}

.card-header h3 {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  padding-right: 1rem;
}

.content-meta {
  font-size: 0.85rem;
  color: #666;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-excerpt {
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-tags {
  display: none;
}

.card-button {
  display: inline-block;
  text-align: center;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  align-self: flex-start;
}

.poem-btn {
  background-color: var(--poem-color);
  color: white;
}

.poem-btn:hover {
  background-color: darken(var(--poem-color), 10%);
  box-shadow: 0 4px 8px rgba(159, 122, 234, 0.3);
}

.blog-btn {
  background-color: var(--blog-color);
  color: white;
}

.blog-btn:hover {
  background-color: darken(var(--blog-color), 10%);
  box-shadow: 0 4px 8px rgba(110, 86, 207, 0.3);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.no-results p {
  color: #666;
  font-size: 1.1rem;
}

/* Pagination */
.pagination-section {
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-btn:hover:not([disabled]) {
  background-color: #f0f0f0;
}

.pagination-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
}

.page-number {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.page-number:hover {
  background-color: #f0f0f0;
}

.page-number.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  .filter-container {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-header {
    padding: 3rem 1.5rem;
  }
  
  .blog-container {
    padding: 1.5rem;
  }
}

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

.blog-post {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.post-meta {
  color: #666;
  margin-bottom: 2rem;
}

.post-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--secondary-color);
}

.post-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--secondary-color);
}

.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 2rem 0;
  color: var(--secondary-color);
  font-style: italic;
}

.post-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(159, 122, 234, 0.1);
}

.tags a {
  color: var(--accent-color);
  text-decoration: none;
  margin-right: 0.5rem;
}

.tags a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .post-section {
    padding: 2rem 1rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
}

.blog-container {
  padding: 6rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-section {
  margin-bottom: 3rem;
}

.blog-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
  color: #333;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-excerpt {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.poem-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
  background-color: #f8f7fc;
  border-radius: 8px;
}

.poem-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #6e56cf;
  padding-bottom: 0.5rem;
  color: #6e56cf;
  text-align: center;
}

.poem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.poem-card {
  background-color: #fff;
  border: 1px solid #e0d7f7;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.poem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(110, 86, 207, 0.2);
}

.poem-header {
  background-color: rgba(110, 86, 207, 0.05);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(110, 86, 207, 0.1);
}

.poem-header h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #6e56cf;
  text-align: center;
}

.poem-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0 0;
  text-align: center;
}

.poem-excerpt {
  padding: 1.5rem;
  font-size: 1rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.btn-container {
  padding: 0 1.5rem 1.5rem;
}

.btn-poem {
  /* display: inline-block;
  padding: 0.75rem 1.5rem; */
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #6e56cf;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  width: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.btn-poem:hover {
  background-color: #4a3a8f;
}

.poem-card {
  position: relative;
  overflow: hidden;
}

.poem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(110, 86, 207, 0.1), rgba(159, 122, 234, 0.05));
  transition: left 0.5s ease;
  z-index: 0;
}

.poem-card:hover::before {
  left: 0;
}

@media (max-width: 768px) {
  .blog-grid, .poem-grid {
    grid-template-columns: 1fr;
  }

  .blog-card, .poem-card {
    min-width: 100%;
  }
}

.blog-header {
  background: linear-gradient(135deg, rgba(110, 86, 207, 0.1), rgba(159, 122, 234, 0.05));
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.header-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.blog-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
}

.blog-meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.blog-excerpt {
  padding: 1.5rem;
}

.blog-excerpt p {
  color: #666;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #6e56cf;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #4a3a8f;
}

