/* Reading Progress Bar */
#custom-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.05);
    z-index: 9999;
}

#custom-reading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: width 0.1s linear;
}

/* Main Container */
#custom-single-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.custom-post-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

/* Featured Image */
.custom-post-hero {
    margin-bottom: 40px;
}

.custom-post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    display: block;
}

/* Post Header */
.custom-post-header {
    margin-bottom: 40px;
}

.custom-post-category {
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    background: #f0f4f8;
    color: #0073aa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.category-badge:hover {
    background: #e1e8ef;
    color: #0073aa;
}

.custom-post-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    color: #111;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.custom-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: #666;
    font-size: 15px;
}

.custom-post-meta span {
    display: flex;
    align-items: center;
}

.custom-post-meta .meta-author a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.custom-post-meta .meta-author a:hover {
    text-decoration: underline;
}

.custom-post-meta .meta-date::before,
.custom-post-meta .meta-reading-time::before {
    content: "•";
    margin-right: 10px;
    color: #ccc;
}

/* Content */
.custom-post-content {
    font-size: 19px;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.custom-post-content p {
    margin-bottom: 28px;
}

.custom-post-content h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    color: #111;
}

.custom-post-content h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #111;
}

.custom-post-content h4 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 14px;
    color: #111;
}

.custom-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.custom-post-content blockquote {
    margin: 36px 0;
    padding: 24px 32px;
    border-left: 4px solid #0073aa;
    background: #f8fafc;
    border-radius: 8px;
    font-style: italic;
    font-size: 20px;
    color: #333;
}

.custom-post-content blockquote p {
    margin-bottom: 0;
}

/* Share Buttons */
.custom-post-share {
    padding: 32px 0;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
    margin-bottom: 32px;
}

.share-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f0f4f8;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn.twitter:hover {
    background: #000;
    color: #fff;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-btn.linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.share-btn.email:hover {
    background: #ea4335;
    color: #fff;
}

.share-btn.copy-link:hover {
    background: #34a853;
    color: #fff;
}

/* Back to Blog */
.custom-post-back {
    margin: 32px 0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.back-to-blog:hover {
    color: #005a87;
}

.back-to-blog svg {
    transition: transform 0.2s;
}

.back-to-blog:hover svg {
    transform: translateX(-4px);
}

/* Navigation */
.custom-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
}

.nav-link {
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    grid-column: 2;
}

.nav-label {
    display: block;
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

/* Related Posts */
.custom-related-posts {
    margin-top: 48px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.related-card {
    text-decoration: none;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.related-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-content {
    padding: 16px 20px 20px;
}

.related-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.related-date {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    #custom-single-post {
        padding: 20px 16px 40px;
    }

    .custom-post-title {
        font-size: 28px;
    }

    .custom-post-content {
        font-size: 17px;
    }

    .custom-post-content h2 {
        font-size: 26px;
    }

    .custom-post-content h3 {
        font-size: 22px;
    }

    .custom-post-content blockquote {
        padding: 16px 20px;
        font-size: 17px;
    }

    .custom-post-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nav-link.next {
        grid-column: 1;
        text-align: left;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .custom-post-title {
        font-size: 24px;
    }

    .custom-post-content {
        font-size: 16px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }
}