/* Individual Article/Blog Post Page Specific Styles */

/* =====================================================
   ARTICLE HEADER SECTION
   ===================================================== */

.article-header {
    background: var(--bg-primary);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-radial);
    opacity: 0.1;
    animation: subtle-float 30s ease-in-out infinite;
}

@keyframes subtle-float {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(0.3deg); }
}

.article-meta {
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.article-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.article-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.article-date i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.article-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.article-image {
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-sm);
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: var(--space-sm);
}

/* =====================================================
   ARTICLE CONTENT SECTION
   ===================================================== */

.article-content {
    background: var(--bg-secondary);
    padding: var(--space-3xl) 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.article-body {
    max-width: none;
}

.article-section {
    margin-bottom: var(--space-xl);
}

.article-section h2 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
}

.article-section h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

.article-section h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: var(--space-md);
}

.article-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: var(--space-md);
}

.article-section ul,
.article-section ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
    color: var(--text-gray);
}

.article-section li {
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.article-section a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-section a:hover {
    border-bottom-color: var(--purple);
}

.article-section blockquote {
    background: var(--bg-elevated);
    border-left: 4px solid var(--purple);
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-gray);
    position: relative;
}

.article-section blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--purple);
    position: absolute;
    top: 0;
    left: var(--space-lg);
    line-height: 1;
}

.highlight-box {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-left: 4px solid var(--orange);
}

.highlight-box h4 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.highlight-box p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* =====================================================
   SIDEBAR STYLES
   ===================================================== */

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.sidebar-section h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: var(--space-xs);
}

.toc-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: var(--space-xs) 0;
    display: block;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-links {
    list-style: none;
    padding: 0;
}

.related-links li {
    margin-bottom: var(--space-sm);
}

.related-links a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-links a:hover {
    background: var(--bg-glass);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* =====================================================
   ARTICLE NAVIGATION
   ===================================================== */

.article-navigation {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xl) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(135, 43, 151, 0.3);
}

.nav-prev {
    justify-self: start;
}

.nav-next {
    justify-self: end;
    flex-direction: row-reverse;
}

.nav-content h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.nav-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.nav-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

/* =====================================================
   RESPONSIVE DESIGN - ARTICLE SPECIFIC
   ===================================================== */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 6rem 0 3rem;
    }
    
    .article-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .article-image img {
        height: 250px;
    }
    
    .nav-container {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .nav-next {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 5rem 0 2rem;
    }
    
    .content-wrapper {
        padding: 0 var(--space-sm);
    }
    
    .sidebar-section,
    .nav-item {
        padding: var(--space-md);
    }
    
    .article-image img {
        height: 200px;
    }
}

/* Print styles for articles */
@media print {
    .article-sidebar,
    .article-navigation {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-header {
        background: white;
        color: black;
    }
    
    .article-header::before {
        display: none;
    }
    
    .article-content {
        background: white;
    }
    
    .article-section h2,
    .article-section h3,
    .article-section h4 {
        color: black;
    }
    
    .article-section p,
    .article-section li {
        color: black;
    }
}
