/**
 * Single Post Template Styles - Quylo Child Theme
 * Green accent: #00BFBD
 */

/* ── Single: Override sky to green (#00BFBD) ── */
.single-post-wrap .text-sky,
body.single-post .text-sky { color: #00BFBD !important; }
.single-post-wrap .bg-sky,
body.single-post .bg-sky { background-color: #00BFBD !important; }
.single-post-wrap .bg-sky\/10,
.single-post-wrap .bg-sky\/8,
body.single-post .bg-sky\/10,
body.single-post .bg-sky\/8 { background-color: rgba(0,191,189,0.1) !important; }
.single-post-wrap .border-sky\/20,
.single-post-wrap .border-sky\/15,
body.single-post .border-sky\/20,
body.single-post .border-sky\/15 { border-color: rgba(0,191,189,0.2) !important; }
.single-post-wrap .ring-sky\/20,
body.single-post .ring-sky\/20 { --tw-ring-color: rgba(0,191,189,0.2); }
.single-post-wrap .ring-sky\/10,
body.single-post .ring-sky\/10 { --tw-ring-color: rgba(0,191,189,0.1); }
.single-post-wrap .text-sky\/30,
body.single-post .text-sky\/30 { color: rgba(0,191,189,0.3) !important; }
.single-post-wrap .hover\:text-sky:hover,
.single-post-wrap .hover\:border-sky\/30:hover,
.single-post-wrap .hover\:bg-sky\/5:hover,
body.single-post .hover\:text-sky:hover,
body.single-post .hover\:border-sky\/30:hover,
body.single-post .hover\:bg-sky\/5:hover { color: #00BFBD !important; border-color: rgba(0,191,189,0.3) !important; background-color: rgba(0,191,189,0.05) !important; }
.single-post-wrap .group-hover\:text-sky:hover,
body.single-post .group:hover .group-hover\:text-sky { color: #00BFBD !important; }
.single-post-wrap .shadow-sky\/5 { box-shadow: 0 0 0 1px rgba(0,191,189,0.05); }
.single-post-wrap .border-sky,
body.single-post .border-sky { border-color: #00BFBD !important; }

/* CTA button gradient */
.single-cta-btn {
    background: linear-gradient(to right, #00BFBD, #009a9a) !important;
}
.single-cta-btn:hover {
    box-shadow: 0 20px 50px -12px rgba(0,191,189,.5) !important;
}

/* ── Particle effect for banner ── */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 191, 189, 0.15);
    pointer-events: none;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ── Blog Content Typography (Gutenberg) – matches main template ── */
.blog-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

/* Headings – template standard */
.blog-content h1,
.blog-content h2,
.blog-content h2.wp-block-heading,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #0A0D23;
    line-height: 1.25;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content h1:first-child,
.blog-content h2:first-child,
.blog-content h3:first-child,
.blog-content h4:first-child,
.blog-content h5:first-child,
.blog-content h6:first-child {
    margin-top: 0;
}

/* H2 – matches home page: text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-normal */
.blog-content h2,
.blog-content h2.wp-block-heading {
    font-size: 1.5rem;
    font-weight: 400;
}

@media (min-width: 640px) {
    .blog-content h2,
    .blog-content h2.wp-block-heading { font-size: 1.875rem; }
}

@media (min-width: 768px) {
    .blog-content h2,
    .blog-content h2.wp-block-heading { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .blog-content h2,
    .blog-content h2.wp-block-heading { font-size: 3rem; }
}

/* H1 – slightly larger than H2 */
.blog-content h1 {
    font-size: 1.75rem;
    font-weight: 400;
}

@media (min-width: 640px) {
    .blog-content h1 { font-size: 2rem; }
}

@media (min-width: 768px) {
    .blog-content h1 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
    .blog-content h1 { font-size: 3.25rem; }
}

/* H3 – sub-section */
.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .blog-content h3 { font-size: 1.5rem; }
}

/* H4, H5, H6 */
.blog-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .blog-content h4 { font-size: 1.25rem; }
}

.blog-content h5 {
    font-size: 1rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .blog-content h5 { font-size: 1.125rem; }
}

.blog-content h6 {
    font-size: 0.9375rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .blog-content h6 { font-size: 1rem; }
}

/* Paragraphs – template body style */
.blog-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .blog-content p {
        font-size: 1.0625rem;
    }
}

.blog-content a {
    color: #00BFBD;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.blog-content a:hover { color: #009a9a; }

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

.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 0.5rem; }

.blog-content blockquote {
    border-left: 4px solid #00BFBD;
    background: rgba(0, 191, 189, .05);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #0A0D23;
}

.blog-content img {
    border-radius: 1rem;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

.blog-content pre {
    background: #0A0D23;
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.blog-content code {
    background: rgba(0, 191, 189, .08);
    color: #0A0D23;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.9em;
}

.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-content th {
    background: #0A0D23;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(10, 13, 35, .06);
    font-size: 0.95rem;
}

.blog-content tr:hover td {
    background: rgba(0, 191, 189, .03);
}

.blog-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 189, .3), transparent);
    margin: 3rem 0;
}

/* ── Related Blog Card ── */
.related-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(10, 13, 35, .06);
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 191, 189, .2);
    box-shadow: 0 20px 50px -12px rgba(0, 191, 189, .15);
}

.related-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

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

/* ── Progress Bar ── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00BFBD, #009a9a);
    z-index: 9999;
    transition: width 0.1s linear;
    width: 0%;
}

/* ── TOC ── */
.toc-link {
    display: block;
    padding: 0.4rem 0 0.4rem 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    border-left: 2px solid rgba(10, 13, 35, .08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.toc-link:hover,
.toc-link.active {
    color: #00BFBD;
    border-left-color: #00BFBD;
}

/* ── Share Button ── */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 1px solid rgba(10, 13, 35, .08);
    background: #fff;
    color: #6b7280;
    transition: all 0.3s ease;
}

.share-btn:hover {
    border-color: rgba(0, 191, 189, .3);
    color: #00BFBD;
    background: rgba(0, 191, 189, .05);
}

/* ── Floating CTA (scroll-triggered) ── */
.single-float-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    transform: translateY(120%);
    z-index: 9998;
    max-width: min(calc(100% - 2rem), 480px);
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease,
                visibility 0.3s ease;
}

.single-float-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.single-float-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem 1rem 1.5rem;
    /* background: linear-gradient(135deg, #0A0D23 0%, #1a1f3a 100%);
    border-radius: 1rem;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 191, 189, 0.15); */
}

.single-float-cta-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s, color 0.2s;
}

.single-float-cta-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.single-float-cta-content {
    flex: 1;
    min-width: 0;
}

.single-float-cta-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.single-float-cta-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

.single-float-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0A0D23;
    background: #00BFBD;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-float-cta-btn:hover {
    background: #00d4d2;
    box-shadow: 0 8px 25px -5px rgba(0, 191, 189, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .single-float-cta-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .single-float-cta-btn {
        justify-content: center;
    }
}
