/* Individual Article/Blog Post Page Specific Styles */

/* =====================================================
   ARTICLE HEADER SECTION
   ===================================================== */

.article-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ecfdf5 50%, var(--gray-50) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(5, 150, 105, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    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: 2rem;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb i {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.article-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.article-date i {
    color: var(--primary);
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    position: relative;
    z-index: 2;
}

.article-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.article-image {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.image-caption {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* =====================================================
   ARTICLE CONTENT SECTION
   ===================================================== */

.article-content {
    background: white;
    padding: var(--section-padding);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-body {
    max-width: none;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    color: var(--gray-900);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
    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(--gray-800);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.article-section h4 {
    color: var(--gray-800);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.article-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.article-section ul,
.article-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.article-section li strong {
    color: var(--gray-900);
    font-weight: 600;
}

.article-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.article-section a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* =====================================================
   HIGHLIGHT BOXES
   ===================================================== */

.highlight-box {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.highlight-box h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-box h4 i {
    color: var(--primary);
}

.highlight-box ul {
    margin: 1rem 0;
}

.highlight-box li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.highlight-box li strong {
    color: var(--primary-dark);
}

/* =====================================================
   SIDEBAR STYLES
   ===================================================== */

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.sidebar-widget p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Related Articles Widget */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: background var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.related-article:hover {
    background: var(--gray-50);
}

.related-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
}

.related-content h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.related-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Tool Links Widget */
.tool-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.tool-link:hover {
    background: var(--primary);
    color: white;
}

.tool-link i {
    color: var(--primary);
    transition: color var(--transition-fast);
}

.tool-link:hover i {
    color: white;
}

/* Key Factors Widget */
.key-factors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.factor-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Market Stats Widget */
.market-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Checklist Widget */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.checklist-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* =====================================================
   RESPONSIVE DESIGN - ARTICLE SPECIFIC
   ===================================================== */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-sidebar {
        position: static;
        top: auto;
        order: -1;
    }
    
    .sidebar-widget {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 5rem 0 3rem;
    }
    
    .article-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .content-wrapper {
        gap: 2rem;
    }
    
    .article-section h2 {
        font-size: 1.75rem;
    }
    
    .article-section p,
    .article-section li {
        font-size: 1rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 4rem 0 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .article-section {
        margin-bottom: 2rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .article-image img {
        height: 200px;
        border-radius: 12px;
    }
    
    .related-article {
        padding: 0.75rem;
    }
    
    .related-image {
        width: 60px;
        height: 45px;
    }
}

/* Print styles for articles */
@media print {
    .article-header::before {
        display: none;
    }
    
    .article-header {
        background: white;
        padding: 2rem 0;
    }
    
    .article-sidebar {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .article-section {
        break-inside: avoid;
    }
    
    .highlight-box {
        break-inside: avoid;
        border: 1px solid var(--gray-300);
        background: var(--gray-50);
    }
    
    .article-image img {
        height: auto;
        max-height: 300px;
    }
}
