/* Josh Riders Blog — shared styles for listing + articles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.75;
    color: #1f2937;
    background: #f9fafb;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.container.wide {
    max-width: 1040px;
}

/* Top bar */
.blog-topbar {
    background: #0f172a;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}
.blog-topbar .brand img {
    width: 32px; height: 32px; border-radius: 7px;
}
.blog-topbar .nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 18px;
    font-size: 0.9rem;
    font-weight: 500;
}
.blog-topbar .nav-links a:hover { color: #fff; }

/* Hero */
.blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 56px 24px;
    text-align: center;
    border-radius: 14px;
    margin-bottom: 36px;
}
.blog-hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 12px; }
.blog-hero p { font-size: 1.1rem; color: #cbd5e1; max-width: 640px; margin: 0 auto; }

/* Article card grid (listing) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.post-card .thumb {
    height: 120px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.4rem;
}
.post-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card .tag {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: #2563eb; margin-bottom: 8px;
}
.post-card h2 {
    font-size: 1.15rem; color: #111827; font-weight: 700; line-height: 1.4; margin-bottom: 8px; border: none; padding: 0;
}
.post-card p { font-size: 0.9rem; color: #6b7280; margin: 0 0 14px; flex: 1; }
.post-card .read { font-size: 0.85rem; font-weight: 600; color: #f97316; }
.post-card .date { font-size: 0.78rem; color: #94a3b8; margin-top: 6px; }

/* Article body */
.article {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 40px;
}
.article .tag {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: #2563eb; margin-bottom: 10px; display: block;
}
.article h1 { font-size: 2rem; color: #0f172a; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.article .meta { color: #94a3b8; font-size: 0.88rem; margin-bottom: 28px; }
.article h2 { font-size: 1.5rem; color: #111827; font-weight: 700; margin: 32px 0 14px; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }
.article h3 { font-size: 1.2rem; color: #374151; font-weight: 600; margin: 24px 0 10px; }
.article p { margin-bottom: 16px; color: #374151; }
.article ul, .article ol { margin: 0 0 16px 24px; color: #374151; }
.article li { margin-bottom: 8px; }
.article a { color: #2563eb; }
.article .callout {
    background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 8px;
    padding: 16px 18px; margin: 20px 0; font-size: 0.95rem;
}
.article .disclaimer {
    background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px;
    padding: 14px 16px; margin: 24px 0; font-size: 0.85rem; color: #92400e;
}

/* Ad slot */
.blog-ad { margin: 28px 0; text-align: center; }
.blog-ad .label { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* CTA to app */
.app-cta {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff; border-radius: 12px; padding: 28px; text-align: center; margin: 32px 0;
}
.app-cta h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.app-cta p { color: #fff; opacity: 0.92; margin-bottom: 16px; }
.app-cta a {
    display: inline-block; background: #fff; color: #ea580c; font-weight: 700;
    padding: 12px 26px; border-radius: 8px; text-decoration: none;
}

.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #2563eb; text-decoration: none; font-weight: 600; margin-bottom: 18px; font-size: 0.92rem;
}

/* Footer */
.blog-footer {
    text-align: center; padding: 28px 20px; color: #94a3b8; font-size: 0.85rem;
}
.blog-footer a { color: #64748b; text-decoration: none; margin: 0 8px; }

@media (max-width: 640px) {
    .article { padding: 24px; }
    .blog-hero h1 { font-size: 1.7rem; }
    .article h1 { font-size: 1.5rem; }
}
