/* Global Article Styles for Download Force */

/* Consistent Styling for Article Hero */
.article-hero {
    padding: 1rem 0;
    background: transparent;
}

.hero-image {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    min-height: 340px; /* Desktop height */
    contain: layout style;
}

@media (max-width: 768px) {
    .hero-image {
        min-height: 180px; /* Responsive mobile height (~16:9 for phone width) */
    }
}

.article-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: #e5e7eb;
    max-height: 400px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    object-position: center;
    contain-intrinsic-size: auto 340px;
}

@media (max-width: 768px) {
    .article-thumbnail {
        contain-intrinsic-size: auto 180px;
    }
}

.article-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Article Header - Vibrant Brand Gradient */
.article-header {
    background: linear-gradient(135deg, #4338ca 0%, #7e22ce 100%);
    color: white;
    padding: 3rem 0 3.5rem 0; /* Standard padding, offset handled by main */
    position: relative;
}

.article-header p,
.article-header .article-excerpt,
.article-header .article-meta span,
.article-header .breadcrumb,
.article-header .breadcrumb a,
.article-header .breadcrumb span {
    color: rgba(255, 255, 255, 0.98) !important;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb a::after {
    content: '›';
    margin-left: 0.5rem;
    opacity: 0.6;
    font-size: 1.1rem;
}

.breadcrumb span {
    opacity: 0.95;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.95;
}

.publish-date::before { content: '📅'; font-size: 0.9rem; }
.read-time::before { content: '⏱️'; font-size: 0.9rem; }

.category {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.article-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-excerpt {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 900px;
    opacity: 0.95;
}

/* Content Layout */
.article-content {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    line-height: 1.7;
}

.main-content h2 {
    color: #1f2937;
    margin: 2.5rem 0 1.25rem 0;
    font-size: 1.85rem;
    font-weight: 700;
}

.main-content h3 {
    color: #374151;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.main-content p {
    margin-bottom: 1.25rem;
    color: #4b5563;
}

.main-content ul, .main-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.main-content li {
    margin-bottom: 0.75rem;
    color: #4b5563;
}

/* Components */
.step-guide {
    background: #f8f9fa;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    background: #6366f1;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.step-content h3 {
    margin: 0 0 0.75rem 0 !important;
    color: #1f2937;
    font-size: 1.25rem;
}

.info-box, .tip-box, .feature-box, .success-story {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.tip-box {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
}

.success-story {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.trend-card, .tool-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #6366f1;
}

.tool-comparison, .mistakes-grid, .editing-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.editing-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.25rem;
    border-bottom: 1px dashed #e5e7eb;
}

.editing-checklist i {
    color: #10b981;
}

.mistake-item {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 8px;
}

.structure-timeline {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timeline-item .time {
    background: #4338ca;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

.industry-trends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.industry-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #6366f1;
}

.quality-table, .transition-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.quality-table th, .transition-table th {
    background: #f3f4f6;
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    color: #1f2937;
}

.quality-table td, .transition-table td {
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cta-box {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 4rem 0;
}

.cta-box h3 { color: white !important; margin-bottom: 1rem; }
.cta-box p { color: rgba(255, 255, 255, 0.9) !important; margin-bottom: 2rem; }

/* Sidebar */
.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid #f3f4f6;
}

.sidebar-widget h3 {
    color: #1f2937;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li { margin-bottom: 0.75rem; }
.sidebar-widget a { color: #4338ca; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.sidebar-widget a:hover { color: #312e81; text-decoration: underline; }

.social-share {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.share-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.share-btn.facebook { background: #0657c7; } /* Consistent Darker Blue */
.share-btn.twitter { background: #005d9a; } /* Further Darkened for 4.5:1 contrast ratio */
.share-btn.linkedin { background: #005a8a; } /* Darker LinkedIn Blue */

/* Responsive */
@media (max-width: 768px) {
    .article-header { padding: 2.5rem 0; }
    .article-header h1 { font-size: 2.15rem; }
    .content-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .sidebar { position: static; }
}
