/* blog.css — light theme matching index.html and documents.html */

/* ── Gradient divider ── */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(50, 75, 237, 0.18), rgba(237, 50, 147, 0.18), transparent);
    border: none;
    margin: 0;
}

/* ── Blog card ── */
.blog-card {
    background-color: #ffffff;
    border: 1px solid #E2E3DE;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(50, 75, 237, 0.10);
    border-color: rgba(50, 75, 237, 0.25);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #E2E3DE;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: #324BED;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0B0A0F;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-summary {
    color: #5A5A6A;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-block;
    text-align: center;
    background-color: rgba(50, 75, 237, 0.08);
    color: #324BED;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.blog-card-link:hover {
    background-color: #324BED;
    color: #ffffff;
}

/* ── Single post view ── */
#blog-content-container {
    background-color: #ffffff;
    border: 1px solid #E2E3DE;
    border-radius: 12px;
    padding: 2rem;
}

@media (min-width: 768px) {
    #blog-content-container {
        padding: 3rem;
    }
}

.single-post-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0B0A0F;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-post-meta {
    color: #5A5A6A;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

/* ── Prose ── */
.prose {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #2D2D3A;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0B0A0F;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E2E3DE;
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0B0A0F;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: #324BED;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: #5469f0;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* ── Category filter buttons ── */
.category-filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4B5563;
    background-color: #ffffff;
    border: 1px solid #E2E3DE;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-filter-btn:hover {
    background-color: #F4F5F0;
    color: #0B0A0F;
    border-color: #9CA3AF;
}

.category-filter-btn.active {
    background-color: #324BED;
    color: #ffffff;
    border-color: #324BED;
}

/* ── JS-rendered filter buttons (dynamic Tailwind can't compile arbitrary values) ── */
.filter-btn-active {
    background-color: #324BED;
    border-color: #324BED;
    color: #ffffff;
}

.filter-btn-inactive {
    background-color: #ffffff;
    border-color: #E2E3DE;
    color: #4B5563;
}

.filter-btn-inactive:hover {
    background-color: #F4F5F0;
    border-color: #9CA3AF;
    color: #0B0A0F;
}

/* ── Timeline ── */
.timeline-line {
    position: absolute;
    left: 184px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #E2E3DE;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-date {
    position: sticky;
    top: 120px;
    width: 200px;
    text-align: right;
    padding-right: 2rem;
    font-weight: 600;
    color: #5A5A6A;
}

.timeline-date::before {
    content: '';
    position: absolute;
    right: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #324BED;
    border: 3px solid #F4F5F0;
}

.timeline-content {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(50, 75, 237, 0.12);
}
