/* 
  PREMIUM ARTICLE STYLING 
  Theme: Cyber Geek High-Readability
*/

.article-view {
    background-color: var(--bg-base);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    padding-top: 3rem;
}

.article-body {
    max-width: 850px;
}

/* Header */
.article-header {
    margin-bottom: 3rem;
}

.article-header .category-badge {
    position: relative;
    top: 0; left: 0;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    align-items: center;
}

.article-hero-img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 4rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Content Typography */
.article-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.article-content p {
    margin-bottom: 2rem;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #fff;
    margin: 4rem 0 1.5rem;
    border-left: 5px solid var(--accent-2);
    padding-left: 1.5rem;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-2);
    margin: 3rem 0 1rem;
}

/* Components */
.tldr-box {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid var(--accent-2);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.tldr-box h4 {
    color: var(--accent-2);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-insight {
    background: rgba(139, 92, 246, 0.05);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1.5;
}

/* Sidebar Styling */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.affiliate-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.promo-badge {
    background: var(--accent-3);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: inline-block;
}

.sidebar-sticky-note {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 2rem;
    border-radius: 16px;
}

.sidebar-link {
    color: var(--accent-2);
    font-weight: 700;
    margin-top: 1rem;
    display: block;
}

/* Reading Progress */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
    background: transparent;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    box-shadow: 0 0 10px var(--accent-2);
}

/* Author Header Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--accent-2) !important;
}

.author-info div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.author-info strong {
    color: #fff;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Author Card at the bottom */
.article-author-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 5rem;
}

.article-author-card img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid var(--accent-2) !important;
    flex-shrink: 0 !important;
}

.author-details h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.author-details p {
    font-size: 1rem !important;
    color: #b0b0b0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: 2rem; }
    .article-sidebar { display: none; }
}


/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.related-card a { display: block; }
.related-card h3 a { color: var(--text-primary); }
.related-card h3 a:hover { color: var(--accent-2); }

/* Breadcrumb nav */
.breadcrumb-nav {
    padding: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.breadcrumb-nav a:hover { color: var(--accent-2); }

@media (max-width: 768px) {
    .article-author-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .related-grid { grid-template-columns: 1fr; }
}
