/* ============================================
   SPIDrSEO Blog — Shared Styles
   Design system: #110908 bg, #ff8c42 accent, Syne+Outfit fonts
   ============================================ */

/* ---- Reset (scoped to blog) ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #110908;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: #ff8c42;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffb066;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, .section-title, .section-label {
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Navbar (shared with landing page) ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: rgba(17, 9, 8, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-links a {
    color: #c3b3b2;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: #ff8c42;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-ghost {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    border-color: #ff8c42;
    color: #ff8c42;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6a00, #ff8c42);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 106, 0, 0.45);
    color: #fff;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e0e0e0;
    margin: 5px 0;
    transition: 0.3s;
}

/* ---- Container ---- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Blog Listing ---- */
.blog-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at center top, rgba(255, 106, 0, 0.04) 0%, transparent 60%);
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #f5f5f5;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.blog-hero p {
    font-size: 18px;
    color: #999;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 40px 0 100px;
}

/* ---- Article Card ---- */
.article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 66, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.article-card a {
    color: inherit;
    text-decoration: none;
}

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

.article-card-body {
    padding: 24px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.article-card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff8c42;
    background: rgba(255, 140, 66, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.article-card-date {
    font-size: 12px;
    color: #666;
}

.article-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #f5f5f5;
    line-height: 1.35;
    margin-bottom: 10px;
}

.article-card-excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ff8c42;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-card-read:hover {
    color: #ffb066;
}

/* ---- Article Page ---- */
.article-hero {
    padding: 120px 0 0;
    text-align: center;
}

.article-hero-image {
    width: 100%;
    max-width: 960px;
    height: auto;
    border-radius: 12px;
    margin: 40px auto 0;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}

.article-breadcrumb a {
    color: #888;
}

.article-breadcrumb a:hover {
    color: #ff8c42;
}

.article-breadcrumb span {
    margin: 0 8px;
    color: #444;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-meta-bar .tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff8c42;
    background: rgba(255, 140, 66, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.article-meta-bar .date {
    font-size: 13px;
    color: #666;
}

.article-meta-bar .reading-time {
    font-size: 13px;
    color: #666;
}

.article-title {
    font-size: 44px;
    font-weight: 800;
    color: #f5f5f5;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 16px;
    letter-spacing: -0.5px;
}

.article-subtitle {
    font-size: 18px;
    color: #999;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Article Content ---- */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #f5f5f5;
    margin: 56px 0 20px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #e8e8e8;
    margin: 40px 0 16px;
    line-height: 1.35;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ddd;
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 16px;
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.article-content em {
    color: #ccc;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-content li {
    font-size: 16px;
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid #ff8c42;
    padding: 16px 24px;
    margin: 28px 0;
    background: rgba(255, 140, 66, 0.04);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 0;
}

.article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #ff8c42;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.article-content th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #bbb;
}

.article-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.article-content img {
    border-radius: 8px;
    margin: 24px 0;
}

.article-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 48px 0;
}

.article-content a {
    color: #ff8c42;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 140, 66, 0.3);
}

.article-content a:hover {
    text-decoration-color: #ff8c42;
}

/* ---- FAQ Section (in articles) ---- */
.article-content .faq-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- CTA Box ---- */
.article-cta {
    max-width: 760px;
    margin: 0 auto 80px;
    padding: 40px;
    background: rgba(255, 106, 0, 0.05);
    border: 1px solid rgba(255, 140, 66, 0.15);
    border-radius: 12px;
    text-align: center;
}

.article-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 12px;
}

.article-cta p {
    font-size: 16px;
    color: #999;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Footer (shared) ---- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f5f5f5;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #888;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ff8c42;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #555;
    font-size: 13px;
}

.footer-bottom a {
    color: #555;
    font-size: 13px;
}

.footer-bottom a:hover {
    color: #ff8c42;
}

.ainstein-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 12px;
    letter-spacing: 1px;
}

.ainstein-link:hover {
    color: #ff8c42;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

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

    .article-title {
        font-size: 30px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 19px;
    }

    .article-hero-image {
        border-radius: 0;
    }

    .article-cta {
        margin-left: 20px;
        margin-right: 20px;
        padding: 28px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
