/* Blog Details Page Styles - Responsive & Large, Readable Fonts */

/* Variables for scaling */
:root {
    --font-base: 1.125rem;    /* 18px */
    --font-lg: 1.4rem;        /* 22px */
    --font-xl: 2rem;          /* 32px */
    --font-xxl: 2.75rem;      /* 44px */
    --font-xxxl: 3.5rem;      /* 56px */
    --font-title: 3rem;       /* 48px */
    --content-max-width: 1400px;
    --primary-color: #4f46e5;
    --text-color: #111827;
    --border-color: #e5e7eb;
    --light-gray: #6b7280;
}

/* General body style */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    font-size: var(--font-base);
    line-height: 2;
    color: var(--text-color);
    background: #f8fafc;
    margin: 0;
    padding: 0;
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    margin-top: 40px;
    margin-bottom: 0;
}
.breadcrumb1 {
    background: none;
    padding: 0;
    margin: 0;
}
.breadcrumb-item1 a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb-item1.active {
    color: var(--text-color);
}

/* Article Container */
.article-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 48px 24px;
    background: none;
}

/* Article Main */
.article-main {
    padding: 64px 48px;
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* Article Header */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    font-size: var(--font-lg);
}
.article-category {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: var(--font-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.article-date,
.article-author,
.reading-time {
    color: var(--light-gray);
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}
.article-date i,
.article-author i,
.reading-time i {
    color: var(--primary-color);
}
.article-title {
    font-size: var(--font-title);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.article-image {
    margin-bottom: 3rem;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.article-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-image:hover img {
    transform: scale(1.03);
}

/* Article Content */
.content-body {
    font-size: var(--font-lg);
    line-height: 2.2;
    color: #2e2e2e;
    text-align: left;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-weight: 400;
    background: none;
}

/* Headings */
.content-body h1 { font-size: var(--font-xxxl); }
.content-body h2 { font-size: var(--font-xxl); }
.content-body h3 { font-size: var(--font-xl); }
.content-body h4 { font-size: var(--font-lg); }
.content-body h5 { font-size: 1.3rem; }
.content-body h6 { font-size: 1.1rem; }
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    font-weight: 800;
    line-height: 1.4;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* Paragraphs */
.content-body p {
    margin-bottom: 2.25rem;
    font-size: var(--font-lg);
    color: #374151;
}

/* Lists */
.content-body ul,
.content-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    font-size: var(--font-base);
}
.content-body li {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: var(--font-base);
}
.content-body ul li {
    position: relative;
}
.content-body ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.75rem;
    width: 7px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Links */
.content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}
.content-body a:hover {
    color: #4338ca;
}

/* Images in Content */
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.content-image {
    margin: 3rem 0;
    text-align: center;
}
.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.content-image figcaption {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--light-gray);
    font-style: italic;
    text-align: center;
}

/* Blockquote */
.content-body blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 2rem;
    color: #6b7280;
    font-style: italic;
    margin: 2rem 0;
    font-size: 1.2rem;
}
.enhanced-quote {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: none;
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #1e293b;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Inline Code */
.content-body code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1em;
    font-weight: 500;
}

/* Code Blocks */
.code-block {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: #0f172a;
}
.code-header {
    background: #1e293b;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}
.code-lang {
    font-weight: 600;
    color: #94a3b8;
}
.copy-code {
    background: #334155;
    color: #94a3b8;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.copy-code:hover {
    background: #475569;
    color: white;
}
.code-block pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.6;
}
.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Horizontal Rule */
.content-body hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Article Footer */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

/* Article Tags */
.article-tags {
    margin-bottom: 30px;
}
.article-tags h4 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 1.2rem;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Share Buttons */
.article-share h4 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 1.2rem;
}
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.linkedin { background: #0077b5; color: white; }
.share-btn.copy { background: #6c757d; color: white; }
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sidebar */
.article-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.sidebar-widget {
    background: #fefefe;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}
.sidebar-widget h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

/* Related Articles */
.related-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.related-item a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.related-item a:hover {
    transform: translateX(5px);
}
.related-item img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5px;
}
.related-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    color: #1a1a1a;
}
.related-date {
    font-size: 0.95rem;
    color: var(--light-gray);
}

/* Categories List */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.category-item:last-child {
    border-bottom: none;
}
.category-item:hover {
    background: rgba(102, 126, 234, 0.05);
    margin: 0 -10px;
    padding: 10px;
    border-radius: 8px;
}
.category-item a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.category-item a:hover {
    color: var(--primary-color);
}
.count {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
}

/* Loading and Error States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--light-gray);
}
.error {
    text-align: center;
    color: #dc3545;
    padding: 40px;
    font-size: 1.2rem;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 3rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Table Styling */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.content-body th,
.content-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.content-body th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root { --content-max-width: 98vw; }
    .article-container { max-width: var(--content-max-width); padding: 32px 12px; }
    .content-body { max-width: 98vw; padding: 1.5rem 1rem; }
}
@media (max-width: 900px) {
    :root { --content-max-width: 100vw; }
    .article-container, .content-body { max-width: 100vw; }
    .article-sidebar { max-width: 100vw; }
    .sidebar-widget { padding: 16px; }
}
@media (max-width: 768px) {
    :root {
        --font-base: 1rem;      /* 16px */
        --font-lg: 1.18rem;
        --font-xl: 1.5rem;
        --font-xxl: 2rem;
        --font-xxxl: 2.25rem;
        --font-title: 2rem;
        --content-max-width: 100vw;
    }
    .article-container {
        margin: 8px;
        padding: 0 8px;
    }
    .article-main {
        padding: 1.5rem 0.7rem;
        border-radius: 14px;
    }
    .article-title {
        font-size: var(--font-title);
    }
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        font-size: var(--font-lg);
    }
    .content-body {
        font-size: var(--font-lg);
        max-width: 100vw;
        padding: 1rem 0.5rem;
    }
    .content-body p,
    .content-body h1,
    .content-body h2,
    .content-body h3 {
        font-size: var(--font-xl);
    }
    .enhanced-quote {
        padding: 1.2rem;
        font-size: 1rem;
    }
    .code-block {
        margin: 2rem -1rem;
        border-radius: 8px;
    }
    .share-buttons {
        flex-direction: column;
    }
    .share-btn {
        justify-content: center;
        font-size: 1rem;
    }
    .breadcrumb-section {
        margin-top: 20px;
    }
    .article-sidebar {
        grid-template-columns: 1fr;
        max-width: 100vw;
    }
    .sidebar-widget h3 {
        font-size: 1.2rem;
    }
    .related-item img {
        width: 60px;
        height: 45px;
    }
    .category-item {
        padding: 8px 0;
    }
}
