/* ═══════════════════════════════════════════════════
   PetGearLab — Article content + component styles
   (Supplements Tailwind — typography, tables, FAQ, CTAs)
   ═══════════════════════════════════════════════════ */

/* ─── Article Typography ─── */
.prose-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #292524;
}

.prose-content > p:first-child {
    font-size: 1.25rem;
    color: #44403c;
    line-height: 1.7;
}

.prose-content p {
    margin-bottom: 1.5em;
}

.prose-content h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #1c1917;
    letter-spacing: -0.02em;
}

.prose-content h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5em 0 0.8em;
    color: #1c1917;
    letter-spacing: -0.01em;
    padding-top: 0.5em;
    border-top: 1px solid #e7e5e4;
}

.prose-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.prose-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2em 0 0.6em;
    color: #1c1917;
}

.prose-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    color: #44403c;
}

.prose-content ul, .prose-content ol {
    margin: 0 0 1.5em 0;
    padding-left: 0;
    list-style: none;
}

.prose-content ul li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.6em;
}

.prose-content ul li::before {
    content: '';
    position: absolute;
    left: 0.25em;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

.prose-content ol {
    counter-reset: item;
}

.prose-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.6em;
}

.prose-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.8em;
    font-weight: 700;
}

.prose-content strong {
    font-weight: 700;
    color: #1c1917;
}

.prose-content em {
    font-style: italic;
}

.prose-content a {
    color: #16a34a;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

/* ─── Comparison / Spec Tables ─── */
.prose-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e7e5e4;
}

.prose-content thead {
    background: #1c1917;
}

.prose-content thead th {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: left;
}

.prose-content tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f4;
    color: #44403c;
}

.prose-content tbody tr:last-child td {
    border-bottom: none;
}

.prose-content tbody tr:nth-child(even) {
    background: #fafaf9;
}

.prose-content tbody tr:hover {
    background: #f5f5f4;
}

.prose-content td strong {
    color: #16a34a;
}

/* ─── Amazon CTA Buttons ─── */
.prose-content a[href*="amazon"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f97316;
    color: white !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(249,115,22,0.3);
    margin: 4px 0;
}

.prose-content a[href*="amazon"]:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

.prose-content a[href*="amazon"]::before {
    content: '🛒';
    font-size: 1.1em;
}

/* ─── FAQ / Details ─── */
.prose-content details {
    margin: 1em 0;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s ease;
}

.prose-content details:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.prose-content details summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 48px;
    color: #1c1917;
    transition: background 0.15s ease;
}

.prose-content details summary:hover {
    background: #fafaf9;
}

.prose-content details summary::-webkit-details-marker {
    display: none;
}

.prose-content details summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #16a34a;
    line-height: 1;
}

.prose-content details[open] summary::after {
    content: '−';
}

.prose-content details[open] summary {
    border-bottom: 1px solid #e7e5e4;
}

.prose-content details[open] > p,
.prose-content details[open] > *:not(summary) {
    padding: 16px 20px;
    margin: 0;
}

/* ─── Blockquotes ─── */
.prose-content blockquote {
    border-left: 4px solid #16a34a;
    padding: 16px 24px;
    margin: 2em 0;
    background: #f0fdf4;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #44403c;
}

/* ─── Images ─── */
.prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

/* ─── Key Takeaways styling ─── */
.prose-content h2:first-of-type + ul,
.prose-content h2:first-of-type + p + ul {
    background: #f0fdf4;
    padding: 20px 20px 20px 40px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

/* ─── Reading Progress Bar ─── */
.reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    z-index: 100;
    transition: width 0.1s ease;
    border-radius: 0 3px 3px 0;
}

/* ─── Line clamp utility ─── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .prose-content {
        font-size: 1rem;
    }
    .prose-content > p:first-child {
        font-size: 1.1rem;
    }
    .prose-content h1 { font-size: 1.75rem; }
    .prose-content h2 { font-size: 1.4rem; }
    .prose-content h3 { font-size: 1.15rem; }
    .prose-content table { font-size: 0.85rem; }
    .prose-content thead th, .prose-content tbody td { padding: 8px 10px; }
}
