/* Single Article v2 - Modern 2026 UI/UX */

:root {
    --article-accent: #0066FF;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

.single-article-v2 {
    background: var(--bg-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* === HERO SECTION === */
.article-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin-bottom: -100px;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95) 70%, #ffffff);
}

/* === CONTAINER === */
.article-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* === BREADCRUMB === */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-top: 24px;
}

.article-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: var(--article-accent);
}

.article-breadcrumb .separator {
    color: var(--text-light);
}

.article-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* === LAYOUT === */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    margin-bottom: 80px;
}

/* === MAIN CONTENT === */
.article-main {
    min-width: 0;
}

/* === HEADER === */
.article-header-v2 {
    margin-bottom: 40px;
}

.article-category-badge {
    margin-bottom: 20px;
}

.article-category-badge a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--article-accent);
    color: white;
    text-decoration: none;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.article-category-badge a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.article-title-v2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
}

/* === META INFO === */
.article-meta-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.author-info-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar-v2 {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}

.author-details-v2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name-v2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-name-v2:hover {
    color: var(--article-accent);
}

.author-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.meta-separator {
    color: var(--text-light);
}

.article-share {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--article-accent);
    color: white;
    border-color: var(--article-accent);
    transform: translateY(-2px);
}

/* === READING PROGRESS === */
.reading-progress {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-light);
    z-index: 1000;
    margin-bottom: 40px;
}

.reading-progress-bar {
    height: 100%;
    background: var(--article-accent);
    width: 0%;
    transition: width 0.2s ease;
}

/* === ARTICLE CONTENT === */
.article-content-v2 {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.article-content-v2 p {
    margin: 0 0 28px 0;
}

.article-content-v2 h2,
.article-content-v2 h3,
.article-content-v2 h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 24px 0;
    line-height: 1.3;
}

.article-content-v2 h2 {
    font-size: 36px;
    letter-spacing: -0.02em;
}

.article-content-v2 h3 {
    font-size: 28px;
}

.article-content-v2 h4 {
    font-size: 22px;
}

.article-content-v2 a {
    color: var(--article-accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.article-content-v2 a:hover {
    text-decoration-thickness: 3px;
}

.article-content-v2 img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.article-content-v2 blockquote {
    margin: 40px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--article-accent);
    background: var(--bg-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 20px;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content-v2 ul,
.article-content-v2 ol {
    margin: 24px 0;
    padding-left: 32px;
}

.article-content-v2 li {
    margin-bottom: 12px;
}

/* === TAGS === */
.article-tags-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 48px;
}

.tags-icon {
    color: var(--text-light);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item-v2 {
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-item-v2:hover {
    background: var(--article-accent);
    color: white;
    transform: translateY(-2px);
}

/* === AUTHOR CARD === */
.author-card-v2 {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.author-card-info {
    flex: 1;
}

.author-card-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.author-card-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-card-name a:hover {
    color: var(--article-accent);
}

.author-card-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.author-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--article-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.author-card-link:hover {
    gap: 10px;
}

/* === SIDEBAR === */
.article-sidebar-v2 {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.sidebar-widget-v2 {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.widget-title-v2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title-v2 svg {
    color: var(--article-accent);
}

.widget-posts-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-post-v2 {
    display: flex;
    gap: 14px;
    transition: transform 0.2s ease;
}

.widget-post-v2:hover {
    transform: translateX(4px);
}

.widget-post-thumb-v2 {
    flex-shrink: 0;
    text-decoration: none;
}

.widget-thumb-img-v2 {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}

.widget-post-content-v2 {
    flex: 1;
    min-width: 0;
}

.widget-post-title-v2 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.widget-post-title-v2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-post-title-v2 a:hover {
    color: var(--article-accent);
}

.widget-post-meta-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .article-sidebar-v2 {
        position: static;
    }

    .widget-posts-v2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-hero {
        height: 400px;
        margin-bottom: -80px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .article-container {
        padding: 0 16px;
    }

    .article-hero {
        height: 300px;
        margin-bottom: -60px;
    }

    .article-title-v2 {
        font-size: 32px;
    }

    .article-meta-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-content-v2 {
        font-size: 17px;
    }

    .article-content-v2 h2 {
        font-size: 28px;
    }

    .article-content-v2 h3 {
        font-size: 22px;
    }

    .widget-posts-v2 {
        grid-template-columns: 1fr;
    }

    .author-card-v2 {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .sidebar-widget-v2 {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .article-breadcrumb {
        font-size: 13px;
    }

    .article-title-v2 {
        font-size: 26px;
    }

    .author-avatar-v2 {
        width: 48px;
        height: 48px;
    }

    .article-content-v2 {
        font-size: 16px;
    }

    .widget-post-v2 {
        flex-direction: column;
    }

    .widget-thumb-img-v2 {
        width: 100%;
        height: 180px;
    }
}