/* --- SINGLE POST PAGE STYLES --- */

/* Hero Banner */
.single-post-hero {
    background: var(--primary);
    position: relative;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.single-post-hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62, 213, 152, 0.12) 0%, rgba(11, 31, 58, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.single-post-hero__glow--one {
    top: -200px;
    right: -100px;
}

.single-post-hero__glow--two {
    bottom: -300px;
    left: -200px;
}

.single-post-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.single-post-hero__category {
    display: inline-block;
    background: rgba(62, 213, 152, 0.15);
    color: var(--accent-green);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(62, 213, 152, 0.25);
}

.single-post-hero__category a {
    color: inherit;
    text-decoration: none;
}

.single-post-hero h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.single-post-hero__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.single-post-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-hero__meta-item i {
    color: var(--accent-green);
}

/* Featured Image & Main Section Layout */
.single-post-main {
    padding: 2rem 2rem 5rem;
    background: #ffffff;
    position: relative;
}

.single-post-featured-image {
    max-width: 1000px;
    margin: -3rem auto 3rem;
    position: relative;
    z-index: 5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

.single-post-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 3rem;
    position: relative;
}

/* Sharing Sidebar */
.single-post-share {
    position: sticky;
    top: 120px;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.single-post-share__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--gray);
    writing-mode: vertical-rl;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.single-post-share__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
}

.single-post-share__btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.single-post-share__btn--facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.single-post-share__btn--linkedin:hover {
    background: #0A66C2;
    color: #fff;
    border-color: #0A66C2;
}

.single-post-share__btn--x:hover {
    background: #000000;
    color: #fff;
    border-color: #000000;
}

.single-post-share__btn--copylink:hover {
    background: var(--accent-green);
    color: var(--primary);
    border-color: var(--accent-green);
}

.single-post-share__btn--copylink.copied {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Copy Link Pop-up Notification */
.share-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--accent-green);
}

.share-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Post Content & Typography */
.single-post-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--dark-gray);
}

.single-post-content p {
    margin-bottom: 1.8rem;
}

.single-post-content p.lead {
    font-size: 1.3rem;
    line-height: 1.75;
    color: #4a5568;
    font-weight: 500;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 2.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.single-post-content h2 {
    font-size: 1.9rem;
    position: relative;
    padding-left: 1.2rem;
}

.single-post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

.single-post-content h3 {
    font-size: 1.5rem;
}

.single-post-content h4 {
    font-size: 1.25rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.single-post-content figcaption {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.single-post-content blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    background: #f2faf6;
    border-left: 4px solid var(--accent-green);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #1a4d36;
}

.single-post-content blockquote::before {
    content: "\201C";
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 6rem;
    color: rgba(62, 213, 152, 0.15);
    font-family: serif;
    line-height: 1;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.8rem;
}

.single-post-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.single-post-content ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 0.9rem;
    top: -1px;
}

.single-post-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-blue);
    transition: all 0.2s ease;
    font-weight: 500;
}

.single-post-content a:hover {
    color: var(--primary);
    border-bottom-style: solid;
}

/* Post Tags */
.single-post-tags {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.single-post-tags__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.single-post-tags a {
    background: var(--light);
    color: var(--dark-gray);
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #eef0f2;
}

.single-post-tags a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Post Navigation (Prev/Next) */
.single-post-nav {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.single-post-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 48%;
}

.single-post-nav__link--prev {
    align-items: flex-start;
    text-align: left;
}

.single-post-nav__link--next {
    align-items: flex-end;
    text-align: right;
}

.single-post-nav__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.single-post-nav__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.single-post-nav__link:hover .single-post-nav__title {
    color: var(--accent-green);
}

/* CTA Banner */
.single-post-cta {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #17365c 100%);
    padding: 3.5rem 3rem;
    border-radius: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(11,31,58,0.15);
}

.single-post-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(62, 213, 152, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.single-post-cta__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.single-post-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.single-post-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.single-post-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--accent-green);
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(62, 213, 152, 0.3);
}

.single-post-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(62, 213, 152, 0.4);
    background: #4de0a3;
}

/* Related Posts Section */
.related-posts {
    padding: 5rem 0 3rem;
    background: #fafbfc;
    border-top: 1px solid var(--border);
}

.related-posts__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.related-posts__title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-green);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .single-post-hero h1 {
        font-size: 2.2rem;
    }
    .single-post-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .single-post-share {
        position: static;
        flex-direction: row;
        justify-content: flex-start;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: 1rem;
        width: 100%;
    }
    .single-post-share__label {
        writing-mode: horizontal-tb;
        margin-bottom: 0;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .single-post-hero {
        padding: 4rem 1.5rem 3rem;
    }
    .single-post-hero h1 {
        font-size: 1.8rem;
    }
    .single-post-featured-image {
        margin-top: -1.5rem;
        border-radius: 10px;
        margin-bottom: 2rem;
    }
    .single-post-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .single-post-content {
        font-size: 1.05rem;
    }
    .single-post-content h2 {
        font-size: 1.5rem;
    }
    .single-post-content blockquote {
        padding: 1.5rem;
        font-size: 1.1rem;
        margin: 2rem 0;
    }
    .single-post-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    .single-post-nav__link {
        max-width: 100%;
    }
    .single-post-nav__link--next {
        align-items: flex-start;
        text-align: left;
    }
    .single-post-cta {
        padding: 2.5rem 2rem;
    }
    .single-post-cta h3 {
        font-size: 1.5rem;
    }
}
