/**
 * Single Post Styles
 * Article page styling
 *
 * @package TBC_News
 */

/* ===================================
   READING PROGRESS BAR
   =================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--tbc-secondary) 0%, var(--tbc-primary) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===================================
   ARTICLE HEADER
   =================================== */

.single-post-header {
    margin-bottom: 32px;
}

.single-post-category {
    margin-bottom: 16px;
}

.single-post-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--tbc-text);
    margin: 0 0 20px;
}

.single-post-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: #5a5a5a;
    margin-bottom: 24px;
    font-weight: 400;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.single-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-meta-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.single-meta-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-meta-author-info {
    display: flex;
    flex-direction: column;
}

.single-meta-author-name {
    font-weight: 700;
    color: var(--tbc-text);
    font-size: 15px;
}

.single-meta-author-name a {
    color: var(--tbc-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-meta-author-name a:hover {
    color: var(--tbc-secondary);
}

.single-meta-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #767676;
}

.single-meta-details .separator {
    width: 3px;
    height: 3px;
    background-color: #767676;
    border-radius: 50%;
}

/* ===================================
   FEATURED IMAGE
   =================================== */

.single-featured-image {
    margin: 32px 0;
    border-radius: 8px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-featured-caption {
    padding: 12px 16px;
    background: #F4F4F5;
    font-size: 13px;
    color: #767676;
    font-style: italic;
}

/* ===================================
   ARTICLE CONTENT
   =================================== */

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #3F3F42;
}

.single-post-content > * {
    margin-bottom: 24px;
}

.single-post-content h2 {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--tbc-text);
    margin: 40px 0 24px;
}

.single-post-content h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--tbc-text);
    margin: 32px 0 20px;
}

.single-post-content h4 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--tbc-text);
    margin: 28px 0 16px;
}

.single-post-content p {
    margin-bottom: 24px;
}

.single-post-content a {
    color: var(--tbc-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content a:hover {
    color: var(--tbc-primary);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--tbc-secondary);
    padding: 20px 24px;
    margin: 32px 0;
    background: #f8f9fa;
    font-size: 20px;
    font-style: italic;
    color: #3F3F42;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 32px;
    margin: 24px 0;
}

.single-post-content li {
    margin-bottom: 12px;
}

.single-post-content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.single-post-content code {
    background: #F4F4F5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #e74c3c;
}

.single-post-content pre code {
    background: transparent;
    padding: 0;
    color: #f0f0f0;
}

/* ===================================
   POST FOOTER
   =================================== */

.single-post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e0e0e0;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.tags-label {
    font-weight: 700;
    color: var(--tbc-text);
    font-size: 14px;
}

.tag-item {
    padding: 6px 16px;
    background: #F4F4F5;
    color: var(--tbc-text);
    text-decoration: none;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--tbc-text);
    color: #ffffff;
}

/* ===================================
   SHARE BUTTONS
   =================================== */

.share-buttons {
    margin: 32px 0;
    padding-bottom: 100px;
}

.share-buttons-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tbc-text);
    margin-bottom: 16px;
}

.share-buttons-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button.facebook {
    background: #1877f2;
    color: #ffffff;
}

.share-button.twitter {
    background: #1da1f2;
    color: #ffffff;
}

.share-button.linkedin {
    background: #0077b5;
    color: #ffffff;
}

.share-button.whatsapp {
    background: #25d366;
    color: #ffffff;
}

.share-button.email {
    background: #767676;
    color: #ffffff;
}

/* ===================================
   AUTHOR BOX
   =================================== */

.author-box {
    background: #f8f9fa;
    padding: 32px;
    border-radius: 8px;
    margin: 48px 0;
}

.author-box-inner {
    display: flex;
    gap: 24px;
}

.author-box-avatar {
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-content {
    flex: 1;
}

.author-box-title {
    font-size: 14px;
    text-transform: uppercase;
    color: #767676;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.author-box-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--tbc-text);
    margin-bottom: 12px;
}

.author-box-name a {
    color: var(--tbc-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-box-name a:hover {
    color: var(--tbc-secondary);
}

.author-box-bio {
    font-size: 15px;
    line-height: 1.6;
    color: #5a5a5a;
    margin-bottom: 16px;
}

.author-box-links {
    display: flex;
    gap: 12px;
}

.author-box-link {
    color: var(--tbc-text);
    font-size: 16px;
    transition: color 0.3s ease;
}

.author-box-link:hover {
    color: var(--tbc-secondary);
}


/* ===================================
   COMMENTS SECTION
   =================================== */

.comments-area {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid #e0e0e0;
}
.comments-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 60px auto 0;
    padding: 0 20px;
    margin-bottom: 100px;
}
.comments-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--tbc-text);
    margin-bottom: 32px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .single-post-title {
        font-size: 40px;
    }
    
    .single-post-excerpt {
        font-size: 18px;
    }
    
    .single-post-content {
        font-size: 17px;
    }
}


@media (max-width: 768px) {
    .single-post-title {
        font-size: 32px;
    }

   
    
    .single-post-excerpt {
        font-size: 16px;
    }
    
    .single-post-content {
        font-size: 16px;
    }  
    
    .single-post-content h2 {
        font-size: 28px;
    }
    
    .single-post-content h3 {
        font-size: 24px;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .author-box-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box-links {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .single-post-title {
        font-size: 28px;
    }
    
    .author-box {
        padding: 24px 16px;
    }
}


/* ===================================
   IMAGE LIGHTBOX
   =================================== */

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--tbc-text);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}



/* ===================================
   PAGE CONTENT
   =================================== */

.page-content {
    background: #ffffff;
    padding: 48px;
    border-radius: 8px;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--tbc-text);
    margin: 0;
}

.page-featured-image {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content-inner {
    font-size: 17px;
    line-height: 1.8;
    color: #3F3F42;
}

.page-content-inner > * {
    margin-bottom: 24px;
}

.page-content-inner h2 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--tbc-text);
    margin: 40px 0 20px;
}

.page-content-inner h3 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--tbc-text);
    margin: 32px 0 16px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 32px 24px;
    }
    
    .page-title {
        font-size: 32px;
    }
}
