/* ===================================
   MCB AI Style - Article Detail Page
   3-Column Layout + Skeleton Loading
   =================================== */

/* --- 3-Column Grid Layout --- */
.mcb-article-3col {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    align-items: start;
}

/* --- Left Sidebar: Trending --- */
.mcb-sidebar-left {
    position: sticky;
    top: 100px;
}

.mcb-trending-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px 20px;
}

.mcb-trending-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #facc15;
    margin-bottom: 20px;
}

.mcb-trending-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcb-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.mcb-trending-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.mcb-trending-rank {
    flex-shrink: 0;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 800;
    color: #2563EB;
    min-width: 28px;
}

.mcb-trending-info {
    flex: 1;
    min-width: 0;
}

.mcb-trending-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgb(209, 213, 219);
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.mcb-trending-more {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgb(156, 163, 175) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.15s;
}

.mcb-trending-more:hover {
    color: #fff !important;
}

/* --- Center: Content Card --- */
.mcb-content-center {
    min-width: 0;
}

.mcb-content-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
}

/* Content card inner override for WP blocks */
.mcb-content-card .wp-block-group,
.mcb-content-card .wp-block-post-content {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Back Button */
.mcb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgb(209, 213, 219) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.mcb-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.mcb-back-btn svg {
    width: 16px;
    height: 16px;
}

/* Tags Footer in content card */
.mcb-content-tags-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mcb-tags-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(156, 163, 175);
}

/* --- Right Sidebar: Premium CTA --- */
.mcb-sidebar-right {
    position: sticky;
    top: 100px;
}

.mcb-premium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.mcb-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #ec4899, #2563EB);
    background-size: 200% 100%;
    animation: mcbGradientShift 3s ease infinite;
}

@keyframes mcbGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.mcb-premium-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(124, 92, 255, 0.15);
    border: 1px solid rgba(124, 92, 255, 0.3);
    color: #60a5fa;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.mcb-premium-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.mcb-premium-desc {
    color: rgb(156, 163, 175);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.mcb-premium-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcb-premium-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(209, 213, 219);
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
}

.mcb-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.15);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.mcb-premium-btn {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563EB, #ec4899);
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.mcb-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

/* --- Article Body Styles --- */
.mcb-article-body {
    color: rgb(209, 213, 219);
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    line-height: 1.8;
}

.mcb-article-body h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 40px 0 14px;
    letter-spacing: -0.02em;
}

.mcb-article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 32px 0 12px;
}

.mcb-article-body h4 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 10px;
}

.mcb-article-body p {
    margin-bottom: 18px;
    color: rgb(209, 213, 219);
}

.mcb-article-body a {
    color: #60a5fa !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.mcb-article-body a:hover {
    color: #c4b5fd !important;
}

.mcb-article-body ul,
.mcb-article-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
    color: rgb(209, 213, 219);
}

.mcb-article-body li {
    margin-bottom: 8px;
}

.mcb-article-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #2563EB;
    border-radius: 0 12px 12px 0;
    color: rgb(209, 213, 219);
    font-style: italic;
}

.mcb-article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.mcb-article-body pre {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.mcb-article-body code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
    color: #60a5fa;
    font-family: 'JetBrains Mono', monospace;
}

.mcb-article-body pre code {
    background: none;
    padding: 0;
    color: rgb(209, 213, 219);
}

.mcb-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.mcb-article-body th {
    background: rgba(124, 92, 255, 0.1);
    color: #60a5fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mcb-article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgb(209, 213, 219);
}

/* Tag pills */
.single-post .wp-block-post-terms a,
.mcb-content-card .wp-block-post-terms a {
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgb(156, 163, 175) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block;
    margin: 2px;
    transition: all 0.15s;
}

.single-post .wp-block-post-terms a:hover,
.mcb-content-card .wp-block-post-terms a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

/* Featured image rounded */
.mcb-content-card .wp-block-post-featured-image img {
    border-radius: 12px !important;
}

/* --- Skeleton Loading --- */
.mcb-skeleton-wrapper {
    padding: 24px;
}

.mcb-skeleton-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px 20px;
}

.mcb-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: mcbShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mcb-skeleton-line.w40 {
    width: 40%;
}

.mcb-skeleton-line.w50 {
    width: 50%;
}

.mcb-skeleton-line.w60 {
    width: 60%;
}

.mcb-skeleton-line.w70 {
    width: 70%;
}

.mcb-skeleton-line.w80 {
    width: 80%;
}

.mcb-skeleton-line.w90 {
    width: 90%;
}

.mcb-skeleton-line.w95 {
    width: 95%;
}

.mcb-skeleton-line.w100 {
    width: 100%;
}

.mcb-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.mcb-skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: mcbShimmer 1.5s ease-in-out infinite;
}

.mcb-skeleton-lines {
    flex: 1;
}

@keyframes mcbShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .mcb-article-3col {
        grid-template-columns: 1fr 300px;
    }

    .mcb-sidebar-left {
        display: none;
    }
}

@media (max-width: 900px) {
    .mcb-article-3col {
        grid-template-columns: 1fr;
    }

    .mcb-sidebar-right {
        position: static;
        order: -1;
        /* Move premium card above content on mobile */
    }

    .mcb-content-card {
        padding: 20px;
    }
}