/* ==== BLOG SPECIFIC STYLES ==== */

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 6rem;
}

#blogs {
    padding-top: 2rem;
}

#blogs h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-text-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 215, 0, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

:root[data-theme="dark"] .blog-card {
    background: rgba(240, 147, 251, 0.05);
}

:root[data-theme="dark"] .blog-card:hover {
    border-color: #f093fb;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.1);
}

.blog-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

:root[data-theme="dark"] .blog-date {
    color: #f093fb;
}

.blog-read-time {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--heading-text-color);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-color);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--link-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.read-more:hover {
    transform: translateX(5px);
}

.read-more::after {
    content: '';
}

/* Blog Detail Page */
.blog-article {
    padding: 2rem 0;
}

.blog-header-detail {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .back-link {
    color: #f093fb;
}

.back-link:hover {
    transform: translateX(-5px);
}

.blog-header-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-text-color);
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

.separator {
    color: var(--text-color);
    opacity: 0.5;
}

/* Blog Body - Markdown Styling */
.blog-body {
    line-height: 1.8;
    color: var(--text-color);
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5,
.blog-body h6 {
    color: var(--heading-text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-body h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.blog-body h2 {
    font-size: 1.6rem;
}

.blog-body h3 {
    font-size: 1.3rem;
}

.blog-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.blog-body a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .blog-body a {
    color: #f093fb;
}

.blog-body a:hover {
    text-decoration: underline;
}

.blog-body code {
    background: var(--footer-text);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

:root[data-theme="dark"] .blog-body code {
    background: rgba(240, 147, 251, 0.1);
    color: #f093fb;
}
:root[data-theme="dark"] .blog-body pre code {
    background: rgb(17 17 17);
}

.blog-body pre {
    background: rgb(17 17 17);
    /* padding: 1rem; */
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid #f093fb;
    border-left: 4px solid #e400ff;
}

:root[data-theme="dark"] .blog-body pre {
    background: rgba(255, 255, 255, 0.05);
}

.blog-body pre code {
    background: none;
    color: #e0e0e0;
    padding: 0;
    border-radius: 0;
}

.blog-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
}

:root[data-theme="dark"] .blog-body blockquote {
    border-left-color: #f093fb;
}

.blog-body ul,
.blog-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-body li {
    margin-bottom: 0.5rem;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.blog-body table th {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    color: var(--heading-text-color);
}

.blog-body table td {
    padding: 0.8rem;
    border-top: 1px solid var(--border);
}

.blog-body table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Loading State */
.loading {
    text-align: center;
    color: var(--text-color);
    padding: 2rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem;
        padding-top: 6rem;
    }

    #blogs h1 {
        font-size: 1.8rem;
    }

    .blog-header-detail h1 {
        font-size: 1.8rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .blog-body {
        font-size: 0.95rem;
    }

    .blog-body h1 {
        font-size: 1.5rem;
    }

    .blog-body h2 {
        font-size: 1.3rem;
    }

    .blog-body h3 {
        font-size: 1.1rem;
    }

    /* Blog Content Styles */
    .blog-article {
        padding: 2rem 1.5rem;
    }
}
