/* ZooSpace SEO Blog Generator - Frontend Styles */

/* Smooth scrolling & anchors */
html { scroll-behavior: smooth; }
h2[id], h3[id] { scroll-margin-top: 90px; }

/* Article typography — subtle improvements only */
.post-each-single .entry-content {
    line-height: 1.85;
    word-break: break-word;
}
.post-each-single .entry-content p {
    margin-bottom: 1.3em;
}

/* H2 — just a subtle left accent, stays native */
.post-each-single .entry-content h2 {
    margin: 2em 0 0.8em;
    padding: 0 0 0 14px;
    border-left: 4px solid var(--petslist-primary-color, #02c5bd);
    font-size: 22px;
    line-height: 1.4;
}

/* H3 — very light bottom line */
.post-each-single .entry-content h3 {
    margin: 1.6em 0 0.5em;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    line-height: 1.4;
}

/* Links — theme-colored, subtle underline on hover */
.post-each-single .entry-content a {
    color: var(--petslist-primary-color, #02c5bd);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.post-each-single .entry-content a:hover {
    border-bottom-color: var(--petslist-primary-color, #02c5bd);
}

/* UL — small teal dot instead of default */
.post-each-single .entry-content ul {
    padding-left: 20px;
    list-style: none;
}
.post-each-single .entry-content ul > li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}
.post-each-single .entry-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--petslist-primary-color, #02c5bd);
}

/* OL — keep native, just tighten spacing */
.post-each-single .entry-content ol {
    padding-left: 24px;
}
.post-each-single .entry-content ol > li {
    margin-bottom: 8px;
}

/* Blockquotes — light left border with teal */
.post-each-single .entry-content blockquote {
    margin: 1.5em 0;
    padding: 14px 20px;
    border-left: 3px solid var(--petslist-primary-color, #02c5bd);
    background: #f9fafa;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}

/* Images */
.post-each-single .entry-content img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* =========================================
   TABLE OF CONTENTS
   ========================================= */
.zsbg-toc {
    background: #f8fafa;
    border: 1px solid #e8eded;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 0 0 28px;
}
.zsbg-toc h2 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888 !important;
}
.zsbg-toc ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.zsbg-toc ul li {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}
.zsbg-toc ul li::before {
    display: none !important;
}
.zsbg-toc li {
    margin: 0 !important;
    padding: 4px 0 !important;
    line-height: 1.5;
}
.zsbg-toc a {
    color: var(--petslist-heading-color, #070C3E) !important;
    text-decoration: none !important;
    font-size: 14px;
    border-bottom: none !important;
}
.zsbg-toc a:hover {
    color: var(--petslist-primary-color, #02c5bd) !important;
}

/* =========================================
   FAQ SECTION — lightly distinct, not alien
   ========================================= */
.zsbg-faq-section {
    margin: 2em 0 1.5em;
}

/* FAQ heading — use theme primary bg */
.zsbg-faq-section > h2,
.zsbg-faq-section h2 {
    margin: 0 0 16px !important;
    padding: 12px 18px !important;
    border-left: none !important;
    border-radius: 6px !important;
    background: var(--petslist-primary-color, #02c5bd) !important;
    color: #fff !important;
    font-size: 20px !important;
    text-align: center;
}

/* Individual Q&A */
.zsbg-faq-item {
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid #e8eded;
    border-radius: 6px;
    background: #fff;
}

/* Question */
.zsbg-faq-item h3 {
    margin: 0 !important;
    padding: 12px 16px 4px !important;
    border: none !important;
    border-bottom: none !important;
    font-size: 16px !important;
    font-weight: 600;
    color: var(--petslist-heading-color, #070C3E) !important;
    background: transparent;
}

/* Answer */
.zsbg-faq-item p {
    margin: 0 !important;
    padding: 2px 16px 12px !important;
    font-size: 15px;
    line-height: 1.7;
    color: var(--petslist-body-color, #515167);
}

/* =========================================
   READING TIME + LAST UPDATED
   ========================================= */
.zsbg-reading-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 8px 0;
    font-size: 13px;
    color: #888;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.zsbg-reading-time,
.zsbg-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.zsbg-separator {
    color: #ccc;
    font-size: 10px;
}

/* =========================================
   AUTHOR BOX
   ========================================= */
.zsbg-author-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 30px 0 0;
    padding: 16px 20px;
    background: #f8fafa;
    border: 1px solid #e8eded;
    border-radius: 8px;
}
.zsbg-author-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
}
.zsbg-author-info {
    flex: 1;
    min-width: 0;
}
.zsbg-author-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--petslist-heading-color, #070C3E);
    margin-bottom: 4px;
}
.zsbg-author-bio {
    font-size: 13px;
    line-height: 1.6;
    color: var(--petslist-body-color, #515167);
    margin: 0;
}
.zsbg-author-bio a {
    color: var(--petslist-primary-color, #02c5bd);
    text-decoration: none;
}
.zsbg-author-bio a:hover {
    text-decoration: underline;
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 768px) {
    .post-each-single .entry-content h2 { font-size: 20px; }
    .post-each-single .entry-content h3 { font-size: 17px; }
    .zsbg-toc { padding: 14px 16px; }
    .zsbg-reading-meta { font-size: 12px; gap: 6px; }
    .zsbg-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Print */
@media print {
    .zsbg-toc, .zsbg-reading-meta, .zsbg-author-box { display: none; }
}
