/**
 * Patel Enterprise - Blog & Engineering Publications Stylesheet
 * Integrates seamlessly with existing style.css and Classic Quality font.
 */

:root {
  --blog-ink: #14181C;
  --blog-slate: #5A626A;
  --blog-bronze: #CDA77F;
  --blog-bronze-deep: #9B7853;
  --blog-parchment: #F4EFEB;
  --blog-border: rgba(20, 24, 28, 0.12);
}

.font-classic {
  font-family: "Classic Quality", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.max-w-600 { max-width: 600px; }
.max-w-750 { max-width: 750px; }
.max-w-900 { max-width: 900px; }
.max-w-950 { max-width: 950px; }
.max-w-300 { max-width: 300px; }

.bg-ink { background-color: var(--blog-ink) !important; }
.bg-parchment { background-color: var(--blog-parchment) !important; }
.bg-bronze { background-color: var(--blog-bronze) !important; }
.text-ink { color: var(--blog-ink) !important; }

/* Eyebrow & Badges */
.blog-eyebrow-pill {
  background-color: var(--blog-parchment);
  border: 1px solid var(--blog-border);
  color: var(--blog-bron-deep, #785A3A);
}

.blog-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--blog-bronze);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.blog-verified-badge {
  color: #15803d;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Blog Cards */
.blog-card {
  background-color: #FFFFFF;
  border-color: var(--blog-border) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blog-card-media {
  height: 220px;
  overflow: hidden;
  background-color: #F8F9FA;
}

.blog-card-img {
  height: 100%;
  transition: transform 0.5s ease;
}

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

.blog-category-badge {
  background: rgba(20, 24, 28, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.blog-card-title a {
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--blog-bronze-deep) !important;
}

.blog-read-link {
  color: var(--blog-ink);
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover .blog-read-link {
  color: var(--blog-bronze-deep);
  transform: translateX(3px);
}

/* Article Page Typography */
.blog-article-content {
  font-size: 1.06rem;
  line-height: 1.75;
  color: #2D3748;
}

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

.blog-article-content h2 {
  font-family: "Classic Quality", Georgia, serif;
  font-size: 1.85rem;
  color: var(--blog-ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--blog-border);
}

.blog-article-content h3 {
  font-family: "Classic Quality", Georgia, serif;
  font-size: 1.4rem;
  color: var(--blog-ink);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

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

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

.blog-article-content blockquote {
  border-left: 3px solid var(--blog-bronze);
  background-color: var(--blog-parchment);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--blog-ink);
}

.blog-article-content table {
  width: 100%;
  margin: 1.75rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-article-content th, .blog-article-content td {
  border: 1px solid var(--blog-border);
  padding: 10px 14px;
}

.blog-article-content th {
  background-color: var(--blog-parchment);
  font-weight: 600;
  color: var(--blog-ink);
}

.max-h-500 {
  max-height: 500px;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Consistent editorial cards across the three Patel blog archives. */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #f0eadc;
  border: 1px solid #d9d3c7 !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 2px rgb(28 30 29 / 5%);
  color: #101820;
}
.blog-card .blog-card-media { flex: none; height: 200px; position: relative; background: #dedbd3; }
.blog-card .blog-card-img { display: block; height: 100%; width: 100%; object-fit: cover; }
.blog-card .blog-category-badge {
  position: absolute;
  top: 16px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 94%);
  color: #1f2529;
  font: 600 12px/1.5 system-ui, sans-serif;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.blog-card .blog-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 16px; }
.blog-card .blog-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: #596c7c; font-size: 13px; line-height: 1.5; }
.blog-card .blog-reading-time { display: inline-flex; align-items: center; gap: 5px; }
.blog-card .blog-reading-time svg { color: #88613d; flex: none; }
.blog-card .blog-card-title { margin: 0 0 10px; color: #101820; font-family: inherit; font-size: 20px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.blog-card .blog-card-title a { color: inherit; text-decoration: none; }
.blog-card .blog-card-excerpt { margin: 0 0 16px; color: #617589; font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.blog-card .blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #d9d3c7; }
.blog-card .blog-card-author { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.blog-card .blog-author-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #e5d9c6; color: #88613d; font-size: 13px; font-weight: 600; }
.blog-card .blog-author-name { color: #617589; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-card .blog-read-link { display: inline-flex; align-items: center; gap: 8px; flex: none; color: #101820; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.blog-card a:focus-visible { outline: 2px solid #88613d; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .blog-card, .blog-card-img, .blog-read-link { transition: none !important; } .blog-card:hover, .blog-card:hover .blog-card-img { transform: none; } }
