﻿/* --- BLOG DETAIL STYLING --- */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.post-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.02);
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

.bg-soft-pink {
    background: #fff0f3;
}

.text-pink {
    color: #ff477e;
}

/* TOC Styling */
.toc-wrapper {
    background: #fdfdfd;
    border: 1px dashed #ffd1dc;
    border-radius: 20px;
    padding: 20px;
}

.toc-header {
    font-weight: 800;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

    .toc-list li {
        margin-bottom: 8px;
    }

    .toc-list a {
        text-decoration: none;
        color: #666;
        font-size: 0.9rem;
        transition: 0.3s;
        display: block;
        padding: 2px 10px;
        border-left: 2px solid transparent;
    }

        .toc-list a:hover, .toc-list a.active {
            color: var(--primary);
            border-left-color: var(--primary);
            padding-left: 15px;
        }

/* Post Content (Rendered HTML) */
.post-content h2 {
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.post-content p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.post-content img {
    border-radius: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cute-quote {
    border-left: 5px solid var(--primary);
    background: var(--soft-pink);
    padding: 25px;
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-weight: 600;
    color: var(--primary);
}

/* Comments */
.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.comment-content {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 20px;
    flex-grow: 1;
}

.btn-send-comment {
    background: var(--primary);
    color: white;
    transition: 0.3s;
}

    .btn-send-comment:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255, 71, 126, 0.2);
        color: white;
    }

@media (max-width: 768px) {
    .post-card {
        padding: 20px;
        border-radius: 25px;
    }

    .post-title {
        font-size: 1.8rem;
    }
}
