
/* 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-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 50px;
}

.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 {
  color: var(--teal);
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
  min-height: calc(100vh - 300px);
}

@media (min-width: 1400px) {
  .main-layout {
    grid-template-columns: 250px 1fr;
  }
}

/* Sidebar */
.sidebar {
  display: none;
}

@media (min-width: 1400px) {
  .sidebar {
    display: block;
    background: var(--yellow);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 2rem;
  }

  .sidebar h3 {
    color: var(--orange);
    margin-top: 0;
    font-size: 1.1rem;
  }

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

  .sidebar li {
    margin-bottom: 0.5rem;
  }

  .sidebar a {
    color: var(--orange);
    text-decoration: none;
    font-size: 0.9rem;
  }

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

/* Content */
.content {
  max-width: 800px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: var(--paper-dark);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero h1 {
  margin-top: 0;
  color: var(--teal);
}

/* Featured Post */
.featured-post {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-left: 4px solid var(--teal);
}

.featured-post h2 {
  margin-top: 0;
  color: var(--teal);
}

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

@media (min-width: 768px) {
  .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-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--teal);
}

.post-card h3 a {
  text-decoration: none;
  color: inherit;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--teal);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.3s;
}

.tag:hover {
  background: var(--teal-dark);
}

/* 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;
}

/* Tag Filter */
.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;
}

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

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--teal);
  margin-top: 0;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

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

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

  .hero h1 {
    font-size: 2rem;
  }

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

  .container {
    padding: 0 0.5rem;
  }
}

/* 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;
}
