/* ===== Blog Layout ===== */
.blog-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-main {
    flex: 1;
    padding-top: 80px;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.blog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.blog-nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.blog-nav-logo .accent {
    color: var(--primary);
}

.blog-nav-links {
    display: flex;
    gap: 1.5rem;
}

.blog-nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.blog-nav-links a:hover,
.blog-nav-links a.active {
    color: var(--primary);
}

/* ===== Blog Index ===== */
.blog-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}

.blog-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.blog-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 3rem;
}

/* ===== Post Card ===== */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.post-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.post-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.post-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.post-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== Single Post ===== */
.blog-back {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: opacity var(--transition);
}

.blog-back:hover {
    opacity: 0.7;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 0.8rem;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-tags {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.3rem;
    flex-basis: 100%;
}

.tag {
    background: var(--primary-light);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ===== Post Content Typography ===== */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 0.8rem;
    color: var(--text);
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.6rem;
    color: var(--text);
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content ul,
.post-content ol {
    margin: 0.8rem 0 1.2rem 1.5rem;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content strong {
    color: var(--primary-dark);
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 0.8rem 1.2rem;
    margin: 1.2rem 0;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-light);
    font-style: italic;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

/* ===== Blog Highlight Box ===== */
.blog-highlight {
    background: rgba(108, 92, 231, 0.07);
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.4rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.8rem 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.blog-highlight strong {
    color: var(--primary-dark);
}

/* ===== Blog Motive Cards Grid ===== */
.blog-motive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.8rem 0 2rem;
}

.blog-motive-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.3rem;
    border-top: 4px solid var(--card-accent, var(--primary));
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-motive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.blog-motive-card .blog-motive-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.blog-motive-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--card-accent, var(--text));
    margin: 0 0 0.4rem;
}

.blog-motive-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ===== Inline CTA ===== */
.blog-cta {
    text-align: center;
    margin: 2.5rem 0 1rem;
}

.blog-cta-button {
    display: inline-block;
    background: var(--primary);
    color: white !important;
    padding: 0.95rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none !important;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.blog-cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Post Footer ===== */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

.post-footer .btn-primary,
.post-footer .btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
}

.post-footer .btn-primary {
    background: var(--primary);
    color: white;
}

.post-footer .btn-primary:hover {
    background: var(--primary-dark);
}

.post-footer .btn-secondary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.post-footer .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ===== Blog Footer ===== */
.blog-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.blog-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.blog-footer a {
    color: var(--primary);
    text-decoration: none;
}

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

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-footer {
        flex-direction: column;
    }

    .blog-nav-links {
        gap: 1rem;
    }

    .blog-motive-grid {
        grid-template-columns: 1fr;
    }
}
