/* ================================================
   Article Detail Page Styles
   Ultima Markets - Article Template
   ================================================ */

/* ------------------------------------------------
   Breadcrumb Section
   ------------------------------------------------ */
.breadcrumb-section {
    padding: 120px 0 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666666;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #C6FF00;
}

.breadcrumb .separator {
    color: #999999;
    font-size: 10px;
}

.breadcrumb .current {
    color: #333333;
    font-weight: 500;
}

/* ------------------------------------------------
   Article Layout
   ------------------------------------------------ */
.article-detail-section {
    padding: 40px 0 80px;
    background-color: #f8f9fa;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* ------------------------------------------------
   Article Main Content
   ------------------------------------------------ */
.article-main {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-category {
    margin-bottom: 15px;
}

.article-category a {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #C6FF00 0%, #a8e600 100%);
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.article-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 255, 0, 0.4);
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888888;
    font-size: 14px;
}

.meta-item i {
    color: #C6FF00;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

/* Article Content */
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444444;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #C6FF00;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    margin: 30px 0 15px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 25px 0 12px;
}

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

.article-content a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #004499;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.article-content li {
    margin-bottom: 10px;
    position: relative;
}

.article-content ul li::marker {
    color: #C6FF00;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #C6FF00;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555555;
}

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

.article-content pre,
.article-content code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-radius: 8px;
}

.article-content code {
    padding: 2px 8px;
    font-size: 14px;
}

.article-content pre {
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    padding: 0;
    background: none;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-content table th,
.article-content table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.article-content table th {
    background-color: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
}

.article-content table tr:hover {
    background-color: #f8f9fa;
}

.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C6FF00, transparent);
    margin: 40px 0;
}

/* Article Tags */
.article-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
}

.tags-label i {
    color: #C6FF00;
    margin-right: 5px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f0f0f0;
    color: #666666;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: #C6FF00;
    color: #000000;
    transform: translateY(-2px);
}

/* Article Share */
.article-share {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-label {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

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

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.share-weibo {
    background: linear-gradient(135deg, #e6162d 0%, #c41023 100%);
}

.share-wechat {
    background: linear-gradient(135deg, #07c160 0%, #06a84f 100%);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005e93 100%);
}

.share-copy {
    background: linear-gradient(135deg, #666666 0%, #444444 100%);
}

/* Article Navigation */
.article-navigation {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #1a1a1a;
    transform: translateY(-3px);
}

.nav-item:hover .nav-label,
.nav-item:hover .nav-title {
    color: #ffffff;
}

.nav-item:hover .nav-label i {
    color: #C6FF00;
}

.nav-prev {
    align-items: flex-start;
}

.nav-next {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: #888888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-label i {
    transition: color 0.3s ease;
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------------------------------------------------
   Sidebar
   ------------------------------------------------ */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #C6FF00;
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.author-avatar img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.author-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Related Articles */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background-color: #1a1a1a;
    transform: translateX(5px);
}

.related-item:hover .related-title,
.related-item:hover .related-date {
    color: #ffffff;
}

.related-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-date {
    font-size: 12px;
    color: #888888;
    transition: color 0.3s ease;
}

/* Hot Articles */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hot-item:hover {
    background-color: #1a1a1a;
    transform: translateX(5px);
}

.hot-item:hover .hot-title {
    color: #ffffff;
}

.hot-item:hover .hot-rank {
    background: #C6FF00;
    color: #000000;
}

.hot-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hot-item:nth-child(1) .hot-rank {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
}

.hot-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    color: #000000;
}

.hot-item:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: #ffffff;
}

.hot-title {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
}

.cta-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.cta-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.btn-block:last-child {
    margin-bottom: 0;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* ------------------------------------------------
   More Articles Section
   ------------------------------------------------ */
.more-articles-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #C6FF00;
}

.view-all i {
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(5px);
}

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

.article-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.article-card .article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-card .article-info {
    padding: 25px;
}

.article-card .article-date {
    font-size: 13px;
    color: #888888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card .article-date i {
    color: #C6FF00;
}

.article-card .article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #333333;
}

.article-card .article-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-card .article-link:hover {
    color: #C6FF00;
}

.article-card .article-link i {
    transition: transform 0.3s ease;
}

.article-card .article-link:hover i {
    transform: translateX(5px);
}

/* ------------------------------------------------
   Join CTA Section
   ------------------------------------------------ */
.join-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.join-cta-content {
    text-align: center;
}

.join-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.join-cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ------------------------------------------------
   Responsive Design
   ------------------------------------------------ */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }
    
    .article-main {
        padding: 40px;
    }
    
    .article-title {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .author-card {
        grid-column: span 2;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 100px 0 15px;
    }
    
    .article-detail-section {
        padding: 30px 0 60px;
    }
    
    .article-main {
        padding: 25px;
        border-radius: 16px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .author-card {
        grid-column: span 1;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .join-cta-content h2 {
        font-size: 28px;
    }
    
    .join-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .join-cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .article-main {
        padding: 20px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .related-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-thumb {
        width: 100%;
        height: 120px;
    }
}

/* ------------------------------------------------
   Print Styles
   ------------------------------------------------ */
@media print {
    .header,
    .mobile-menu,
    .breadcrumb-section,
    .article-sidebar,
    .article-share,
    .article-navigation,
    .more-articles-section,
    .join-cta-section,
    .footer {
        display: none !important;
    }
    
    .article-detail-section {
        padding: 0;
        background: none;
    }
    
    .article-main {
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .article-layout {
        display: block;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .article-content a {
        color: #000;
        text-decoration: none;
    }
    
    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
