/* Article Page Styles */

/* Article Main Content */
.article-main {
    padding: 2rem 0 4rem;
    background: #ffffff;
    min-height: 80vh;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #636e72;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #5a67d8;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #95a5a6;
}

/* Article Layout */
.article-layout {
    display: flex;
    justify-content: center;
    max-width: 1450px;
    margin: 0 auto;
    gap: 3rem;
}

.article-main-content {
    max-width: 950px;
    flex: 1;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: #f0f2ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.article-meta {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #666;
}

.article-author {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.article-date {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

.article-meta::before {
    content: '';
    width: 40px;
    height: 1px;
    background: #ddd;
}

/* Article Image */
.article-image {
    margin-bottom: 3rem;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 850px;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Article Content */
.article-content {
    background: transparent;
    padding: 0;
    line-height: 1.8;
    font-size: 1.125rem;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.article-content p {
    margin-bottom: 1.8rem;
    color: #444;
    line-height: 1.8;
}

.article-content p:first-child {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.article-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.article-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.article-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

.article-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.article-content ul {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.article-content ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    color: #444;
}

.article-content ul li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.article-content ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
    counter-reset: item;
}

.article-content ol li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
    counter-increment: item;
    padding-left: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 2rem;
    margin: 3rem 0;
    background: #f8f9ff;
    border-radius: 12px;
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Rich Image Content Styles */
.article-content .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.article-content .image-gallery img {
    margin: 0;
    height: 250px;
    object-fit: cover;
}

.article-content .image-full-width {
    width: 100%;
    margin: 3rem 0;
}

.article-content .image-full-width img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 0;
}

.article-content .image-left {
    float: left;
    width: 45%;
    margin: 0 2rem 2rem 0;
}

.article-content .image-left img {
    margin: 0;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-content .image-right {
    float: right;
    width: 45%;
    margin: 0 0 2rem 2rem;
}

.article-content .image-right img {
    margin: 0;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-content .image-center {
    text-align: center;
    margin: 3rem 0;
}

.article-content .image-center img {
    max-width: 600px;
    width: 100%;
    margin: 0;
}

.article-content .image-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.article-content .image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.article-content .image-grid-2 img {
    margin: 0;
    height: 300px;
    object-fit: cover;
}

.article-content .image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 3rem 0;
}

.article-content .image-grid-3 img {
    margin: 0;
    height: 200px;
    object-fit: cover;
}

.article-content .image-hero {
    margin: 3rem 0;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
}

.article-content .image-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.article-content .image-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem;
    color: white;
}

.article-content .image-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-content .image-hero-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* Product/Item Cards */
.article-content .product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-content .product-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-content .product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.article-content .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.article-content .product-features {
    margin: 1.5rem 0;
}

.article-content .product-specs {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Sidebar */
.article-sidebar {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    width: 420px;
    flex-shrink: 0;
}

.sidebar-section h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.recent-post:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #667eea;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.recent-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.recent-post-author {
    color: #667eea;
    font-weight: 500;
}

.recent-post-date {
    color: #636e72;
}

.recent-post-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 0.5rem;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.related-articles h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.related-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-tag {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-card-tag.report {
    background: #ff6b35;
}

.related-card-tag.guide {
    background: #8e44ad;
}

.related-card-tag.blog {
    background: #3498db;
}

.related-card-content {
    padding: 1.5rem;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.related-card-author {
    font-size: 0.8rem;
    color: #636e72;
    font-weight: 500;
}

.related-card-date {
    font-size: 0.75rem;
    color: #95a5a6;
}

/* Loading State */
.article-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #636e72;
}

.article-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2d3436;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.article-loading p {
    color: #636e72;
    font-size: 1rem;
}

/* Error State */
.article-error {
    text-align: center;
    padding: 4rem 2rem;
    color: #636e72;
}

.article-error-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.article-error h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.article-error p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1500px) {
    .article-layout {
        flex-direction: column;
        gap: 3rem;
    }
    
    .article-sidebar {
        order: -1;
        position: static;
        width: 100%;
        max-width: 950px;
        margin: 0 auto;
    }
    
    .recent-posts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 1rem 0 2rem;
    }
    
    .article-layout {
        gap: 2rem;
    }
    
    .article-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-content p:first-child {
        font-size: 1.125rem;
    }
    
    .article-content h2 {
        font-size: 1.875rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .article-image img {
        height: 300px;
    }
    
    /* Rich Image Content - Mobile */
    .article-content .image-left,
    .article-content .image-right {
        float: none;
        width: 100%;
        margin: 2rem 0;
    }
    
    .article-content .image-grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-content .image-grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-content .image-grid-3 img {
        height: 250px;
    }
    
    .article-content .image-hero {
        height: 350px;
    }
    
    .article-content .image-hero-overlay {
        padding: 1.5rem;
    }
    
    .article-content .image-hero-title {
        font-size: 1.25rem;
    }
    
    .article-sidebar {
        padding: 2rem;
    }
    
    .sidebar-section h3 {
        font-size: 1.5rem;
    }
    
    .recent-posts {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .recent-post {
        padding: 1.25rem;
    }
    
    .recent-post-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.625rem;
    }
    
    .article-content h3 {
        font-size: 1.375rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    /* Rich Image Content - Small Mobile */
    .article-content .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .article-content .image-gallery img {
        height: 200px;
    }
    
    .article-content .image-grid-2 img,
    .article-content .image-grid-3 img {
        height: 200px;
    }
    
    .article-content .image-hero {
        height: 300px;
    }
    
    .article-content .image-hero-overlay {
        padding: 1rem;
    }
    
    .article-sidebar {
        padding: 1.5rem;
    }
    
    .sidebar-section h3 {
        font-size: 1.375rem;
    }
    
    .recent-posts {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .recent-post {
        padding: 1.25rem;
    }
    
    .recent-post-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation for content loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-header,
.article-image,
.article-content,
.related-articles {
    animation: fadeInUp 0.6s ease-out;
}

.article-header { animation-delay: 0.1s; }
.article-image { animation-delay: 0.2s; }
.article-content { animation-delay: 0.3s; }
.related-articles { animation-delay: 0.4s; }
