/* ===== POST ENHANCEMENTS STYLES ===== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #b8941f 100%);
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #d4af37;
    transform: rotate(90deg);
}

/* Copy Code Button */
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    background: #d4af37;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-code-btn:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

.copy-code-btn i {
    margin-right: 5px;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid #d4af37;
    padding: 25px 30px;
    margin-bottom: 40px;
    border-radius: 10px;
}

.table-of-contents h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0 0 15px 0 !important;
    font-weight: 700;
}

.table-of-contents ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.table-of-contents li {
    margin-bottom: 10px !important;
}

.table-of-contents li.h2 {
    margin-left: 0;
}

.table-of-contents li.h3 {
    margin-left: 20px;
}

.table-of-contents a {
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.table-of-contents a:hover {
    color: #d4af37;
    transform: translateX(5px);
}

/* Print Button */
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #6c757d;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.print-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.print-btn i {
    font-size: 16px;
}

/* Code blocks styling */
.post-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
}

.post-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-close {
        top: -35px;
        font-size: 35px;
    }

    .table-of-contents {
        padding: 20px;
    }

    .table-of-contents h3 {
        font-size: 18px;
    }

    .table-of-contents li.h3 {
        margin-left: 15px;
    }

    .print-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }

    .copy-code-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .reading-progress {
        height: 3px;
    }

    .table-of-contents {
        padding: 15px;
    }

    .table-of-contents h3 {
        font-size: 16px;
    }

    .table-of-contents a {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .reading-progress,
    .copy-code-btn,
    .print-btn,
    .share-buttons {
        display: none !important;
    }

    .table-of-contents {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
