/* TOC and Share Buttons Styles */

/* Article Header Simple */
.article-header-simple {
    padding: 3rem 0 2rem;
    text-align: center;
}

.article-header-simple h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--color-primary);
}

.article-header-simple .article-meta {
    justify-content: center;
    color: #666;
}

/* Article Container */
.article-wrapper {
    margin-bottom: 4rem;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

/* Table of Contents - Collapsible */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.toc-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.toc-toggle:hover {
    background: rgba(0, 0, 0, 0.02);
}

.toc-toggle h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.toc-icon {
    transition: transform 0.3s ease;
    color: #2c3e50;
}

.toc-toggle[aria-expanded="true"] .toc-icon {
    transform: rotate(180deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.toc-content.open {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.table-of-contents nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents nav li {
    margin-bottom: 0.75rem;
}

.table-of-contents nav a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.table-of-contents nav a:hover {
    color: #ff6b6b;
}

.table-of-contents .toc-level-2 {
    font-weight: 600;
}

.table-of-contents .toc-level-3 {
    padding-left: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.pinterest {
    background: #e60023;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
