/* Blog Post Layout */
.blog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: 3fr 1fr;
  }
}

/* Search Bar */
.search-section {
  background-color: var(--pet-cream-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.search-section .search-container,
.breadcrumbs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-section .search-wrapper {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-section .search-input {
  width: 100%;
  padding: 12px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
}

.search-section .search-input:focus {
  border-color: var(--pet-orange);
}

.search-section .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pet-gray);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  min-width: 0;
}

.breadcrumbs-item a {
  color: var(--pet-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.breadcrumbs-item a:hover {
  color: var(--foreground);
}

.breadcrumbs-separator {
  color: var(--pet-gray);
  font-size: 14px;
  flex-shrink: 0;
  margin: 0 0.25rem;
}

.breadcrumbs-current {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.breadcrumbs-title {
  font-size: 14px;
  color: var(--foreground);
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
  .breadcrumbs-list {
    gap: 0.25rem;
  }

  .breadcrumbs-item a,
  .breadcrumbs-separator,
  .breadcrumbs-title {
    font-size: 12px;
  }

  .breadcrumbs-title {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .breadcrumbs-title {
    max-width: 150px;
  }
}

/* Featured Image */
.featured-image {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .featured-image {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .featured-image {
    aspect-ratio: 16/9;
  }
}

.category-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: var(--pet-orange);
  color: var(--background);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Article Meta */
.article-meta {
  margin-bottom: 2rem;
}

.article-excerpt {
  color: var(--pet-gray);
  margin-bottom: 1.5rem;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--pet-gray);
  font-size: 12px;
  margin-top: 1rem;
}

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

.meta-item a {
  color: var(--pet-gray);
  font-weight: 600;
  text-decoration: none;
}

.meta-item a:hover {
  color: var(--pet-orange);
}

.meta-item i,
.meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--pet-gray);
  margin-right: 0.5rem;
}

/* Disclaimer Section */
.disclaimer-section {
  margin: 1.5rem 0px;
  padding: 1.5rem 0px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.disclaimer-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--pet-gray);
  transition: color 0.2s;
}

.disclaimer-trigger:hover {
  color: var(--foreground);
}

.disclaimer-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

.disclaimer-title {
  font-weight: 500;
}

.disclaimer-content {
  margin-top: 0.75rem;
  animation: fadeIn 0.3s ease-in-out;
}

.disclaimer-text {
  background-color: var(--pet-cream-light);
  padding: 1rem;
  border-radius: 8px;
  font-size: 14px;
  color: var(--pet-gray);
  line-height: 1.5;
}

.disclaimer-text p {
  margin: 0 0 0.5rem 0;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background-color: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s;
}

.share-button i,
.share-button svg {
  width: 0.875rem;
  height: 0.875rem;
}

.share-button:hover {
  background-color: var(--pet-green);
  color: var(--background);
}

/* Content Cards */
.content-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .content-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.content-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: white;
}

.card-header {
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.card-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 !important;
}

.card-header i,
.card-header svg {
  width: 1rem;
  height: 1rem;
}

.card-content {
  padding: 1.5rem;
  padding-top: 0 !important;
  display: none;
}

.card-content ul {
  padding-left: 0.05rem;
  list-style: none;
}

.card-content ul li {
  position: relative;
  list-style: none;
  margin: 0.35rem 0;
}

.card-content ul li a {
  color: var(--pet-gray);
  text-decoration: none;
}

.card-content#tocContent ul li a:hover {
  color: var(--pet-orange);
}

.card-content#tocContent ul:first-child li::before {
  content: ">";
  font-family: "Lucide";
  margin-right: 0.5rem;
  color: var(--pet-gray);
}

.card-content#takeawaysContent ul {
  padding-left: 1rem;
}

.card-content#takeawaysContent ul li {
  list-style-type: disc;
  color: black;
}

.card-content#takeawaysContent ul li::marker {
  color: var(--pet-orange);
}

.card-content ol {
  padding-left: 1.15rem;
  list-style: decimal;
}

/* Article Content */
.article-content {
  margin-bottom: 3rem;
}

.article-content h3 {
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.article-content img {
  width: 100% !important;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.article-content img:hover {
  transform: scale(1.01);
}

/* Ensure 16:9 aspect ratio for article images */
.article-content img[src*="720x405"] {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-quote {
  border-left: 4px solid var(--pet-orange);
  background-color: var(--pet-cream-light);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.article-quote p {
  font-style: italic;
  color: var(--foreground);
  font-weight: 400;
  margin: 0 !important;
}

/* Feedback Section */
.feedback-section {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.feedback-section h3 {
  margin: 0 !important;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* Tags */
.tags-section {
  margin-bottom: 2rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: var(--pet-cream);
  color: var(--pet-brown);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Comments Section */
.comments-section {
  margin-bottom: 3rem;
}

.comments-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.comment-form h4 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem !important;
}

.comment-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  resize: none;
  color: var(--pet-gray);
}

.comment-form button {
  background-color: var(--pet-orange);
  color: var(--background);
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.comment-form button:hover {
  background-color: var(--pet-orange);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  display: flex;
  gap: 1rem;
}

.comment-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
}

.comment-content {
  flex: 1;
}

.comment-content p {
  margin-bottom: 0 !important;
  color: var(--pet-gray);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 500;
}

.comment-date {
  color: var(--pet-gray);
}

/* Related Posts */
.related-posts {
  margin-bottom: 3rem;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-post-card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.related-post-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.related-post-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 1rem;
}

.related-post-title {
  transition: color 0.2s;
  margin: 0 0 0.25rem !important;
  cursor: pointer;
}

.related-post-title a {
  text-decoration: none;
  color: var(--foreground);
}

.related-post-card:hover .related-post-title a {
  color: var(--pet-orange);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
  margin-bottom: 2rem;
}

.sidebar-card p {
  margin-bottom: 0 !important;
  color: var(--pet-gray);
  margin-top: 0.25rem;
}

.sidebar-card-header {
  padding: 1.5rem;
}

.sidebar-card-title {
  margin: 0 !important;
}

.sidebar-card-content {
  padding: 1.5rem;
  padding-top: 0 !important;
}

/* Popular Posts */
.popular-post {
  padding-bottom: 1rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
}

.popular-post:first-child {
  margin-top: 0;
}

.popular-post:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.popular-post-title {
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: color 0.2s;
  margin: 0 0 0.25rem !important;
}

.popular-post-title a {
  text-decoration: none;
  color: var(--foreground);
}

.popular-post-title:hover {
  color: var(--pet-orange);
}

.popular-post-meta {
  color: var(--pet-gray);
  margin: 0 !important;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.newsletter-button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--pet-orange);
  color: var(--background);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-button i,
.newsletter-button svg {
  width: 1rem;
  height: 1rem;
}

.newsletter-button:hover {
  background-color: var(--pet-orange);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--pet-orange);
  color: var(--background);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll-top:hover {
  background-color: var(--pet-orange);
}

/* FAQ Section - Styles moved to main style.css for reusability */

/* Utility Classes */
.separator {
  height: 1px;
  background-color: var(--border);
  margin: 2rem 0;
}
