/**
 * Article News Styles
 * Specific styling for single news posts
 *
 * @package MobLand_Pro
 * @since 1.0.0
 */

/* ============================================
   ARTICLE HERO
   ============================================ */

.article-hero {
    position: relative;
    padding: 120px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.article-hero-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0.04;
    pointer-events: none;
}

.article-hero-decor svg {
    width: 100%;
    height: 100%;
    color: var(--color-primary);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.article-breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-breadcrumb a:hover {
    color: var(--color-primary);
}

.article-breadcrumb svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-text-tertiary);
}

.article-breadcrumb span {
    color: var(--color-text-primary);
}

/* Category Badge */
.article-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Category variants */
.article-category.tag-season-2,
.article-category.tag-season-2-news {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.article-category.tag-casting {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

.article-category.tag-production {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.article-category.tag-breaking {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.article-category.tag-interview {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Title */
.article-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    text-wrap: balance;
}

/* Excerpt */
.article-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), rgba(139, 92, 246, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-author-avatar svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

.article-author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-author-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 15px;
}

.article-author-role {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* ============================================
   FEATURED IMAGE
   ============================================ */

.article-featured-image {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.article-featured-image img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.article-image-caption {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: 12px;
    font-style: italic;
}

/* ============================================
   ARTICLE CONTAINER (Main + Sidebar)
   ============================================ */

.article-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Article Main */
.article-main {
    min-width: 0;
}

/* Content */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--color-text-primary);
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 36px 0 16px;
    color: var(--color-text-primary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Highlight Box */
.article-content .highlight-box,
.article-content .wp-block-quote.is-style-highlight,
.article-highlight {
    background: rgba(139, 92, 246, 0.08);
    border-left: 4px solid var(--color-primary);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
}

.article-content .highlight-box h4,
.article-content .wp-block-quote.is-style-highlight cite {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content .highlight-box svg {
    width: 20px;
    height: 20px;
}

.article-content .highlight-box ul {
    margin: 0;
    padding-left: 20px;
}

.article-content .highlight-box li {
    color: var(--color-text-secondary);
}

/* Blockquote */
.article-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 16px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    margin-bottom: 12px;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ============================================
   TAGS
   ============================================ */

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 48px 0 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.article-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.article-tag:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--color-primary);
}

/* ============================================
   SHARE
   ============================================ */

.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.article-share-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 15px;
}

.article-share-buttons {
    display: flex;
    gap: 12px;
}

.article-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.article-share-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--color-primary);
}

.article-share-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.article-share-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Table of Contents */
.sidebar-toc {
    background: #0d0d0d;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom scrollbar for TOC */
.sidebar-toc::-webkit-scrollbar {
    width: 4px;
}

.sidebar-toc::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-toc::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.sidebar-toc::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.sidebar-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-toc-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
}

.sidebar-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc-list li {
    margin-bottom: 10px;
}

.sidebar-toc-list li:last-child {
    margin-bottom: 0;
}

.sidebar-toc-list a {
    display: block;
    padding: 8px 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.sidebar-toc-list a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-primary);
}

.sidebar-toc-list a.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-primary);
    font-weight: 500;
}

/* H3 indentation in TOC */
.sidebar-toc-list li.toc-h3 {
    margin-left: 16px;
}

.sidebar-toc-list li.toc-h3 a {
    font-size: 13px;
    padding: 6px 12px;
}

/* Related News */
.sidebar-related {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
}

.sidebar-related-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-related-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
}

.sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-related-item {
    display: block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.sidebar-related-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
}

.sidebar-related-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-primary);
}

/* Related category variants */
.sidebar-related-category.tag-season-2,
.sidebar-related-category.tag-season-2-news {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.sidebar-related-category.tag-casting {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.sidebar-related-category.tag-production {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.sidebar-related-category.tag-breaking {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.sidebar-related-category.tag-interview {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.sidebar-related-headline {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-related-date {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* ============================================
   MORE NEWS SECTION
   ============================================ */

.article-more-news {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 60px 24px;
}

.article-more-news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.article-more-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.article-more-news-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.article-more-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap var(--transition-fast);
}

.article-more-news-link:hover {
    gap: 12px;
}

.article-more-news-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* News Card Grid */
.article-more-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-news-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.article-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.article-news-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.article-news-card:hover .article-news-card-image img {
    transform: scale(1.05);
}

.article-news-card-image .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-news-card-image .placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-text-tertiary);
    opacity: 0.5;
}

.article-news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Card category variants */
.article-news-card-category.tag-season-2,
.article-news-card-category.tag-season-2-news {
    background: rgba(59, 130, 246, 0.9);
}

.article-news-card-category.tag-casting {
    background: rgba(236, 72, 153, 0.9);
}

.article-news-card-category.tag-production {
    background: rgba(34, 197, 94, 0.9);
}

.article-news-card-category.tag-breaking {
    background: rgba(239, 68, 68, 0.9);
}

.article-news-card-category.tag-interview {
    background: rgba(245, 158, 11, 0.9);
}

.article-news-card-content {
    padding: 20px;
}

.article-news-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-news-card-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-news-card-title a:hover {
    color: var(--color-primary);
}

.article-news-card-date {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .article-more-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 100px 16px 40px;
    }

    .article-hero-decor {
        width: 300px;
        height: 300px;
    }

    .article-meta {
        flex-direction: column;
        gap: 16px;
    }

    .article-featured-image {
        padding: 0 16px;
        margin-bottom: 32px;
    }

    .article-featured-image img {
        border-radius: 12px;
    }

    .article-container {
        padding: 0 16px 40px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-toc {
        display: none;
    }

    .article-more-news {
        padding: 40px 16px;
    }

    .article-more-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-more-news-title {
        font-size: 22px;
    }

    .article-more-news-grid {
        grid-template-columns: 1fr;
    }

    .article-tags {
        margin: 32px 0 24px;
        padding-top: 24px;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .article-breadcrumb {
        font-size: 12px;
    }

    .article-excerpt {
        font-size: 16px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 18px;
    }
}

/* ============================================
   LIGHT THEME
   ============================================ */

[data-theme="light"] .article-hero-decor svg {
    color: var(--color-primary);
}

[data-theme="light"] .sidebar-toc {
    background: #ffffff;
}

[data-theme="light"] .article-share-btn {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .article-share-btn:hover {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .article-tag {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sidebar-related-item {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .sidebar-related-item:hover {
    background: rgba(139, 92, 246, 0.05);
}

[data-theme="light"] .article-news-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .article-news-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .article-content blockquote {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .article-news-card-image .placeholder {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.03));
}
