/* ============================================
   MANGO BUNCH - SINGLE ARTICLE PAGE STYLES
   Professional news reading experience
   ============================================ */

/* Article Container - Aligned with header */
.article-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   ARTICLE HEADER
   ============================================ */

.article-header {
    padding: 25px 0 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.article-breadcrumb a {
    color: var(--text-gray);
}

.article-breadcrumb a:hover {
    color: var(--primary-orange);
}

.article-breadcrumb .separator {
    color: var(--text-light);
    font-size: 10px;
}

/* Article Title */
.article-header .article-title {
    font-family: var(--font-headings);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

/* Meta Bar */
.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.author-info .author-name a {
    color: var(--primary-orange);
    font-weight: 600;
}

.author-info .author-name a:hover {
    text-decoration: underline;
}

.author-info .meta-separator {
    color: var(--text-light);
}

.author-info .publish-info {
    color: var(--text-gray);
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-right i {
    margin-right: 5px;
    color: var(--primary-orange);
}

/* Reading Mode Button */
.reading-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    background: #e5e5e5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.reading-mode-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.reading-mode-btn:hover i {
    color: var(--white);
}

.reading-mode-btn.active {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.reading-mode-btn.active i {
    color: var(--white);
}

.reading-mode-btn i {
    margin-right: 0;
    color: var(--text-gray);
    transition: color var(--transition);
}

/* ============================================
   ARTICLE LAYOUT
   ============================================ */

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-bottom: 40px;
}

/* Reading Mode Layout - Full Width, No Sidebar */
.article-layout.reading-mode-layout {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.article-main {
    min-width: 0;
}

/* ============================================
   FEATURED IMAGE
   ============================================ */

.article-featured-image {
    margin: 0 0 25px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-featured-image figcaption {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-style: italic;
}

/* ============================================
   SHARE BAR
   ============================================ */

.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.share-bar.bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    border-bottom: none;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.telegram { background: #0088cc; }
.share-btn.email { background: var(--text-gray); }
.share-btn.copy { background: var(--dark-bg); }

.share-bar.bottom .share-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content p.lead {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-orange);
    padding-left: 20px;
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 35px 0 18px;
    padding-top: 10px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 25px 0 12px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-content li strong {
    color: var(--text-dark);
}

.article-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-orange);
    border-radius: 0 4px 4px 0;
}

.article-content blockquote p {
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.article-content blockquote p:last-of-type {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    font-size: 14px;
    font-style: normal;
    color: var(--text-gray);
    margin-top: 12px;
}

.article-content a {
    color: var(--primary-orange);
    text-decoration: underline;
    text-decoration-color: rgba(252, 176, 64, 0.3);
    text-underline-offset: 2px;
}

.article-content a:hover {
    text-decoration-color: var(--primary-orange);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 25px 0;
}

.article-content figure {
    margin: 25px 0;
}

.article-content figcaption {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}

/* ============================================
   ARTICLE TAGS
   ============================================ */

.article-tags {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    white-space: nowrap;
}

.tags-label i {
    margin-right: 5px;
    color: var(--primary-orange);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list a {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
    background: var(--bg-light);
    border-radius: 3px;
    transition: all var(--transition);
}

.tags-list a:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* ============================================
   AUTHOR BOX
   ============================================ */

.author-box {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 6px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-box .author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.author-box .author-name a {
    color: var(--text-dark);
}

.author-box .author-name a:hover {
    color: var(--primary-orange);
}

.author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    color: var(--white);
    border-radius: 4px;
    font-size: 13px;
    transition: all var(--transition);
}

.author-social a:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-articles .section-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card .card-image {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

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

.related-card .card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .card-title a:hover {
    color: var(--primary-orange);
}

.related-card .card-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar-wrapper {
    transition: opacity 0.3s ease;
}

.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 120px; /* Account for sticky header height */
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-orange);
}

/* Popular/Latest List */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 12px;
}

.popular-item .item-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
}

.popular-item .item-content {
    flex: 1;
    min-width: 0;
}

.popular-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item h4 a:hover {
    color: var(--primary-orange);
}

.popular-item .item-date {
    font-size: 11px;
    color: var(--text-light);
}

/* ============================================
   READING MODE STYLES
   ============================================ */

.single-article.reading-mode .article-header {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-article.reading-mode .article-content {
    font-size: 18px;
    line-height: 1.85;
}

.single-article.reading-mode .article-content p.lead {
    font-size: 20px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        order: 1;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 0 15px;
    }
    
    .article-header {
        padding: 20px 0 15px;
        margin-bottom: 20px;
    }
    
    .article-header .article-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .meta-left {
        width: 100%;
    }
    
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .author-info .meta-separator {
        display: none;
    }
    
    .author-info .publish-info {
        font-size: 13px;
    }
    
    .meta-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .reading-mode-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .article-content {
        font-size: 16px;
        line-height: 1.75;
    }
    
    .article-content p.lead {
        font-size: 17px;
        padding-left: 15px;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin: 25px 0 15px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-content blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }
    
    .article-content blockquote p {
        font-size: 16px;
    }
    
    .share-bar {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        width: 100%;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-card {
        display: flex;
        gap: 12px;
    }
    
    .related-card .card-image {
        flex-shrink: 0;
        width: 120px;
        margin-bottom: 0;
    }
    
    .related-card .card-image img {
        height: 80px;
    }
    
    .related-card .card-content {
        flex: 1;
    }
    
    .related-card .card-title {
        font-size: 14px;
    }
    
    /* Hide author box on mobile */
    .author-box {
        display: none;
    }
    
    .article-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tags-list a {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .article-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    /* Sidebar on mobile */
    .sidebar-widget {
        padding: 15px;
    }
    
    .widget-title {
        font-size: 15px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .popular-item .item-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .popular-item h4 {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .article-container {
        padding: 0 12px;
    }
    
    .article-header .article-title {
        font-size: 20px;
        line-height: 1.35;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-content p.lead {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    .article-content h3 {
        font-size: 16px;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 20px;
    }
    
    .article-content li {
        margin-bottom: 10px;
    }
    
    .share-bar {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .share-label {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .share-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .article-featured-image figcaption {
        font-size: 12px;
    }
    
    .reading-mode-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .related-card .card-image {
        width: 100px;
    }
    
    .related-card .card-image img {
        height: 70px;
    }
    
    .related-card .card-title {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
}