
/* VetOnIt CE Blog Styles */
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --paper: #fefdf8;
  --paper-dark: #f8f5f0;
  --text: #1f2937;
  --text-light: #6b7280;
  --orange: #f97316;
  --yellow: #fef3c7;
}

* {
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Domine', serif;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: 'Domine', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.nav-active {
  color: var(--teal);
}

/* Hero Section */
.hero {
  background: var(--paper-dark);
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 0 1.5rem;
}

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

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: 'Domine', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0;
  color: var(--text);
}

/* Recalls & Alerts Box */
.recalls-alerts {
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  width: 280px;
  flex-shrink: 0;
}

.recalls-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.recalls-icon {
  width: 14px;
  height: 14px;
  color: #92400E;
  flex-shrink: 0;
}

.recalls-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #92400E;
  letter-spacing: 0.03em;
  margin: 0;
  flex: 1;
}

.recalls-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recall-item {
  padding: 0.15rem 0;
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  line-height: 1.25;
}

.recall-item:first-child {
  border-top: none;
}

.recall-item a {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: block;
}

.recall-item a:hover {
  color: var(--teal);
}

.recall-date {
  font-size: 0.6rem;
  color: #92400E;
  font-weight: 600;
}

.recalls-view-all {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}

.recalls-view-all:hover {
  color: var(--teal-dark);
}

/* Topic Filter */
.topic-filter {
  padding: 1.25rem 0 0.5rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.4rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.825rem;
  font-weight: 500;
  background: white;
  color: var(--text-light);
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.filter-see-all {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.filter-see-all a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}

.filter-see-all a:hover {
  color: var(--teal-dark);
}

/* Posts Section */
.posts-section {
  padding: 1rem 0 3rem;
}

/* Post Grid */
.posts-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Post Card */
.post-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Post Card Image */
.post-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--paper-dark);
  flex-shrink: 0;
}

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

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

/* Post Card Body */
.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card .post-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.post-card .post-title {
  font-family: 'Domine', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
}

.post-card .post-title a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.post-card .post-title a:hover {
  color: var(--teal);
}

.post-card .post-summary {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.tag:hover {
  background: rgba(13, 148, 136, 0.16);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

.pagination-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.05);
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Tag Filter Section */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--paper-dark);
  border-radius: 8px;
}

.filter-tag {
  background: white;
  color: var(--text);
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 0.85rem;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* Article Content */
.article-header {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 3rem;
}

.article-title {
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--text-light);
  font-size: 1.1rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  line-height: 1.8;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.article-content th {
  background: var(--paper-dark);
  font-weight: 600;
}

/* Citations */
.citations {
  background: var(--paper-dark);
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.citations h3 {
  margin-top: 0;
  color: var(--teal);
}

.citations ol {
  padding-left: 1.5rem;
}

.citations li {
  margin-bottom: 0.75rem;
}

.citations .verified {
  color: #059669;
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  background: var(--teal);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 3rem 0;
}

.cta-section a {
  background: white;
  color: var(--teal);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-section a:hover {
  background: var(--paper);
  transform: translateY(-1px);
}

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

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

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

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: white;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .recalls-alerts {
    width: 100%;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card-image {
    height: 160px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}
