/* =================================================
   BLOG STYLES - Article Template like oreateai.com
   ================================================= */

/* Blog Listing Page */
.blog-hero {
    background: var(--bg-secondary);
    padding: 120px 0 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-listing {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* =================================================
   SINGLE ARTICLE PAGE
   ================================================= */
.article-page {
    padding-top: 90px;
}

.article-header {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.article-header .container {
    max-width: 800px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb span {
    color: var(--text-muted);
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Article Content */
.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 60px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.article-content {
    max-width: 740px;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.article-content p:first-of-type {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    font-style: italic;
    color: var(--text-primary);
}

.article-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--primary);
}

.article-content img {
    width: 100%;
    border-radius: var(--card-radius);
    margin: 32px 0;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 48px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #000;
    border-color: #000;
    color: white;
}

.share-btn.reddit:hover {
    background: #ff4500;
    border-color: #ff4500;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.share-btn.copy:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.related-article {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-article h5 {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.related-article:hover h5 {
    color: var(--primary-light);
}

.related-article span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ad Widget */
.ad-widget {
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: var(--card-radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Comment Section */
.comments-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.comment-form {
    margin-bottom: 40px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 16px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.comment-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form .btn {
    margin-top: 8px;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-share {
        flex-wrap: wrap;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}