/* ══════════════════════════════════════════════════════
   Sofia Loren Salon - Blog Engagement Elements CSS
   NOTE: Theme sets html{font-size:10px} so ALL sizes must
   use px values, NOT rem. Body text = 15px.
   ══════════════════════════════════════════════════════ */

/* ── Post Meta Bar ── */
body.single-post .sls-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}
body.single-post .sls-meta-left {
    display: flex;
    align-items: center;
}
body.single-post .sls-author-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}
body.single-post .sls-author-badge strong {
    color: #333;
    font-size: 14px !important;
}
/* Fix: wpautop inserts <p> tags inside our flex containers */
body.single-post .sls-post-meta p,
body.single-post .sls-share-bar p,
body.single-post .sls-meta-left p,
body.single-post .sls-author-badge p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}
body.single-post .sls-author-avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c41a00, #e91e8c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    flex-shrink: 0;
}
body.single-post .sls-meta-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
body.single-post .sls-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
}
body.single-post .sls-meta-item svg {
    width: 14px;
    height: 14px;
    stroke: #aaa;
    fill: none;
    flex-shrink: 0;
}
body.single-post .sls-meta-category {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
body.single-post .sls-meta-category:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ── Share Buttons ── */
body.single-post .sls-share-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    margin: 0 0 20px;
    flex-wrap: wrap;
}
body.single-post .sls-share-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}
body.single-post .sls-share-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
body.single-post .sls-share-buttons {
    display: flex;
    gap: 8px;
}
body.single-post .sls-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #555;
    text-decoration: none;
    transition: all 0.25s ease;
}
body.single-post .sls-share-btn svg {
    width: 18px;
    height: 18px;
}
body.single-post .sls-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
body.single-post .sls-share-pinterest:hover {
    background: #e60023;
    color: #fff;
}
body.single-post .sls-share-facebook:hover {
    background: #1877f2;
    color: #fff;
}
body.single-post .sls-share-twitter:hover {
    background: #000;
    color: #fff;
}
body.single-post .sls-share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}
body.single-post .sls-share-email:hover {
    background: #c41a00;
    color: #fff;
}

/* ── Table of Contents ── */
body.single-post .sls-toc {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #c41a00;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 0 0 32px;
}
body.single-post .sls-toc-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.single-post .sls-toc ol {
    margin: 0;
    padding-left: 20px;
}
body.single-post .sls-toc li {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.5;
}
body.single-post .sls-toc a {
    color: #c41a00;
    text-decoration: none;
    border-bottom: 1px dotted rgba(196, 26, 0, 0.35);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
body.single-post .sls-toc a:hover {
    color: #a01500;
    border-bottom-style: solid;
}

/* ── Author Box ── */
body.single-post .sls-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fdf2f2 0%, #fff5f5 100%);
    border: 1px solid #f0d0d0;
    border-radius: 12px;
    padding: 24px;
    margin: 36px 0 24px;
}
body.single-post .sls-author-box .sls-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c41a00, #e91e8c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    flex-shrink: 0;
}
body.single-post .sls-author-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
body.single-post .sls-author-info p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.65;
}
body.single-post .sls-author-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c41a00;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}
body.single-post .sls-author-link:hover {
    gap: 8px;
    text-decoration: none;
}
body.single-post .sls-author-link svg {
    width: 14px;
    height: 14px;
    stroke: #c41a00;
    fill: none;
}

/* ── Related Posts ── */
body.single-post .sls-related {
    margin: 32px 0 10px;
}
body.single-post .sls-related-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41a00;
    display: inline-block;
}
body.single-post .sls-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
body.single-post .sls-related-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
body.single-post .sls-related-card:hover {
    border-color: #c41a00;
    box-shadow: 0 4px 16px rgba(196, 26, 0, 0.1);
    transform: translateY(-3px);
}
body.single-post .sls-related-cat {
    font-size: 11px;
    font-weight: 700;
    color: #c41a00;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
body.single-post .sls-related-link,
body.single-post .sls-related-card p {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.45;
    flex: 1;
    text-decoration: none;
}
body.single-post .sls-related-link:hover,
body.single-post .sls-related-card p a:hover {
    color: #c41a00;
    text-decoration: none;
}
body.single-post .sls-related-card p a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}
body.single-post .sls-related-date {
    font-size: 12px;
    color: #999;
}

/* ── Post Navigation ── */
body.single-post .sls-post-nav {
    text-align: center;
    margin: 28px 0 10px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}
body.single-post .sls-back-blog {
    display: inline-block;
    padding: 12px 30px;
    background: #c41a00;
    color: #fff !important;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}
body.single-post .sls-back-blog:hover {
    background: #a01500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 26, 0, 0.3);
    text-decoration: none;
}

/* ── Fix: Hide redundant category banner + tighten spacing ── */
body.single-post .main-top {
    display: none !important;
}
body.single-post .site-content {
    padding-top: 20px !important;
}

/* ── Fix: Constrain hero image - full width, capped height ── */
body.single-post .post-formats-wrapper {
    border-radius: 8px;
    overflow: hidden;
}
body.single-post .post-formats-wrapper .wp-post-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    border-radius: 8px;
}

/* ── Fix: Hide broken sidebar elements ── */
body.single-post .widget_text .textwidget p:has([class*="gravityform"]),
body.single-post .widget_text .textwidget p:empty {
    display: none;
}

/* ── Services & Pricing Box ── */
body.single-post .sls-services-list {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 24px;
}
body.single-post .sls-services-list h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    color: #333;
}
body.single-post .sls-services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
body.single-post .sls-services-list li {
    font-size: 13px;
    color: #555;
    padding: 6px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}
/* Fix: wpautop inserts <p> tags inside services list */
body.single-post .sls-services-list p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

/* ── Fix: Drop cap targeting ── */
body.single-post .entry-description > .sls-toc + p::first-letter,
body.single-post .entry-description > .sls-share-bar + .sls-toc + p::first-letter,
body.single-post .entry-description > .sls-share-bar + p::first-letter {
    font-size: 3.2em;
    font-weight: 700;
    color: #c41a00;
    float: left;
    line-height: 0.85;
    margin: 0.05em 0.1em 0 0;
    font-family: Georgia, 'Times New Roman', serif;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    body.single-post .sls-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    body.single-post .sls-related-grid {
        grid-template-columns: 1fr;
    }
    body.single-post .sls-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    body.single-post .sls-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    body.single-post .sls-services-list ul {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    body.single-post .sls-share-btn {
        width: 36px;
        height: 36px;
    }
    body.single-post .sls-share-btn svg {
        width: 16px;
        height: 16px;
    }
}