/* ═══════════════════════════════════════
   BLOG STYLES — justincase.vip
   Matches main site dark premium aesthetic
   ═══════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050510;
    color: #e2e8f0;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
}

a { color: #818cf8; text-decoration: none; transition: color 0.3s; }
a:hover { color: #a5b4fc; }

/* ── HEADER NAV ── */
.blog-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blog-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.blog-header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.blog-header-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.blog-header nav a {
    margin-left: 1.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
}

.blog-header nav a:hover { color: #fff; }

/* ── BLOG INDEX ── */
.blog-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, #050510 0%, #0c1027 100%);
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #e2e8f0, #818cf8, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.blog-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card-body h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-card-body h2 a {
    color: #fff;
}

.blog-card-body h2 a:hover {
    color: #a5b4fc;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.read-more {
    color: #818cf8;
    font-weight: 500;
}

/* ── ARTICLE PAGE ── */
.article-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, #050510 0%, #0c1027 60%, #050510 100%);
}

.article-hero .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
}

.article-hero .meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.article-hero .meta span { margin: 0 0.5rem; }

/* ── ARTICLE CONTENT ── */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: #a5b4fc;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: #cbd5e1;
    font-size: 1.02rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #cbd5e1;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.article-content em {
    color: #a5b4fc;
    font-style: italic;
}

.article-content blockquote {
    border-left: 3px solid #818cf8;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #a5b4fc;
}

.article-content code {
    background: rgba(255,255,255,0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #f59e0b;
}

/* Key Stats Box */
.stat-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-family: 'Space Grotesk', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #818cf8;
}

.stat-item .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

/* CTA Box in article */
.article-cta {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    text-align: center;
}

.article-cta h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.article-cta p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* Table of Contents */
.toc {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.toc h4 {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.toc a {
    color: #818cf8;
}

/* ── FOOTER ── */
.blog-footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.blog-footer a { color: rgba(255,255,255,0.5); }

/* ── Checklist style ── */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checklist li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: #cbd5e1;
}

.checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
    color: #818cf8;
    font-size: 1.1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .blog-header { padding: 0.75rem 1rem; }
    .blog-header nav a { margin-left: 1rem; font-size: 0.75rem; }
    .blog-grid { grid-template-columns: 1fr; padding: 2rem 1rem; }
    .article-content { padding: 2rem 1.25rem 4rem; }
    .blog-hero { padding: 6rem 1.5rem 3rem; }
    .article-hero { padding: 6rem 1.5rem 2rem; }
    .stat-box { grid-template-columns: repeat(2, 1fr); }
}
