/* Blog Styles — gorgeous reading experience */

/* ── Index Page ── */
.blog-index {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.blog-index-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-index-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.blog-index-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Featured post */
.blog-featured {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.blog-featured .blog-card-tag {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
}

.blog-featured .blog-card-title {
    font-size: 1.75rem;
    color: #f1f5f9;
}

.blog-featured .blog-card-excerpt {
    color: #94a3b8;
    font-size: 1rem;
}

.blog-featured .blog-card-meta {
    color: #64748b;
}

.blog-featured .blog-card-link {
    color: #60a5fa;
}

/* Post cards */
.blog-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    display: block;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #eff6ff;
    color: #3b82f6;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-link {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* ── Post Page ── */
.blog-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-header .blog-card-tag {
    margin-bottom: 1rem;
}

.blog-post-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0f172a;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.blog-post-meta .divider {
    color: #d1d5db;
}

/* Hero image / gradient */
.blog-post-hero {
    width: calc(100% + 3rem);
    margin: 2rem -1.5rem 3rem;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

.blog-post-hero-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-hero-gradient .hero-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* Article body */
.blog-post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.blog-post-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.blog-post-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post-body p {
    margin-bottom: 1.25rem;
}

.blog-post-body strong {
    color: #1e293b;
    font-weight: 600;
}

.blog-post-body a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: rgba(59,130,246,0.3);
    text-underline-offset: 2px;
}

.blog-post-body a:hover {
    text-decoration-color: #3b82f6;
}

.blog-post-body blockquote {
    border-left: 3px solid #3b82f6;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f0f9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.blog-post-body ul, .blog-post-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

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

.blog-post-body code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c026d3;
}

.blog-post-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Step indicators */
.blog-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.blog-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-step h2 {
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
}

/* Article CTA */
.blog-post-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-radius: 16px;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.blog-post-cta h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.blog-post-cta p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.blog-post-cta .btn-primary {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s;
}

.blog-post-cta .btn-primary:hover {
    background: #2563eb;
}

/* Author bar */
.blog-post-author {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.blog-post-author-info {
    line-height: 1.4;
}

.blog-post-author-name {
    font-weight: 600;
    color: #1e293b;
}

.blog-post-author-bio {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Related posts */
.blog-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.blog-related h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.blog-related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s;
}

.blog-related-item:hover {
    border-color: #3b82f6;
}

.blog-related-item-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.blog-related-item-date {
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .blog-index-header h1 { font-size: 1.8rem; }
    .blog-featured { padding: 1.5rem; }
    .blog-featured .blog-card-title { font-size: 1.3rem; }
    .blog-card { padding: 1.5rem; }
    .blog-post-header h1 { font-size: 1.75rem; }
    .blog-post-body { font-size: 1rem; }
    .blog-post-hero { height: 160px; margin: 1.5rem 0 2rem; width: 100%; }
    .blog-post-cta { padding: 2rem 1.25rem; }
    .blog-step { gap: 1rem; }
    .blog-step-number { width: 36px; height: 36px; font-size: 1rem; }
}
