/* ================================================
   LINK AI AGENCY - BLOG STYLES
   Matches main site design: Outfit font, dark purple theme
   ================================================ */

/* ---- BLOG LAYOUT ---- */
.blog-body {
    overflow-y: auto;
    background: var(--bg-white);
    min-height: 100vh;
}

/* ---- BLOG HERO (Index Page) ---- */
.blog-hero {
    background: radial-gradient(900px 520px at 50% 0%, rgba(167,139,250,.18), rgba(43,15,68,1) 55%);
    padding: 140px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 16% 22%, rgba(255,255,255,.3), transparent 60%),
        radial-gradient(2px 2px at 62% 26%, rgba(255,255,255,.2), transparent 60%),
        radial-gradient(2px 2px at 78% 58%, rgba(124,58,237,.3), transparent 60%);
    opacity: .5;
    pointer-events: none;
}

.blog-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #f8f6ff;
    text-shadow: 0 10px 30px rgba(0,0,0,.22);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.blog-hero p {
    color: rgba(255,255,255,.75);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ---- BLOG GRID (Index Page) ---- */
.blog-grid-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 2rem 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(124,58,237,.12);
    border-color: rgba(124,58,237,.2);
}

.blog-card-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-visual .card-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
}

.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: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7c3aed;
    background: rgba(124,58,237,.08);
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e0b24;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

.blog-card-body p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-date {
    font-size: 0.78rem;
    color: #999;
}

.blog-card-read {
    font-size: 0.82rem;
    font-weight: 600;
    color: #7c3aed;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- ARTICLE PAGE ---- */
.article-header {
    background: radial-gradient(900px 520px at 50% 0%, rgba(167,139,250,.18), rgba(43,15,68,1) 55%);
    padding: 140px 2rem 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.25), transparent 60%),
        radial-gradient(2px 2px at 70% 40%, rgba(124,58,237,.3), transparent 60%);
    opacity: .4;
    pointer-events: none;
}

.article-header .article-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a78bfa;
    background: rgba(167,139,250,.15);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.article-header h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    color: #f8f6ff;
    text-shadow: 0 8px 24px rgba(0,0,0,.2);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-transform: none;
    letter-spacing: -0.01em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: rgba(255,255,255,.6);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- ARTICLE CONTENT ---- */
.article-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 50px 2rem 80px;
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e0b24;
    margin: 2.5rem 0 1rem;
    text-transform: none;
    letter-spacing: 0;
    display: block;
}

.article-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e0b24;
    margin: 2rem 0 0.8rem;
    text-transform: none;
    letter-spacing: 0;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.2rem;
}

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

.article-content li {
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
    color: #444;
}

.article-content li::marker {
    color: #7c3aed;
}

.article-content strong {
    color: #1e0b24;
    font-weight: 700;
}

.article-content a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.article-content a:hover {
    color: #5b21b6;
}

.article-content blockquote {
    border-left: 4px solid #7c3aed;
    background: rgba(124,58,237,.04);
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
    background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(167,139,250,.04));
    border: 1px solid rgba(124,58,237,.12);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: #7c3aed;
    margin-top: 0;
    font-size: 1.1rem;
}

/* ---- ARTICLE CTA ---- */
.article-cta {
    background: radial-gradient(600px 300px at 50% 0%, rgba(167,139,250,.15), #2b0f44 55%);
    padding: 60px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #f8f6ff;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0;
    display: block;
}

.article-cta p {
    color: rgba(255,255,255,.75);
    max-width: 550px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---- BACK TO BLOG LINK ---- */
.blog-back {
    position: fixed;
    top: 100px;
    left: 2rem;
    text-decoration: none;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 100;
    background: rgba(0,0,0,.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    transition: all .3s ease;
}

.blog-back:hover {
    background: rgba(0,0,0,.5);
    color: #fff;
    border-color: rgba(167,139,250,.3);
}

/* ---- BLOG NAVBAR ---- */
.blog-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    background: rgba(10,10,10,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

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

.blog-nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.blog-nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all .3s ease;
    border: 1px solid transparent;
}

.blog-nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.1);
}

.blog-nav-links .nav-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    font-weight: 700;
    border: none;
}

.blog-nav-links .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,.3);
}

/* ---- BLOG FOOTER ---- */
.blog-footer {
    background: #0a0a0a;
    padding: 40px 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.06);
}

.blog-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.blog-footer-logo {
    height: 35px;
    width: auto;
    opacity: .6;
}

.blog-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-footer-links a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .2s ease;
}

.blog-footer-links a:hover {
    color: #a78bfa;
}

.blog-footer-copy {
    color: rgba(255,255,255,.3);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ---- RELATED POSTS ---- */
.related-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 60px;
}

.related-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e0b24;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ---- COLOR VARIANTS FOR CARD VISUALS ---- */
.bg-purple {
    background: linear-gradient(135deg, #2b0f44, #5b21b6);
}

.bg-green {
    background: linear-gradient(135deg, #064e3b, #059669);
}

.bg-blue {
    background: linear-gradient(135deg, #1e1b4b, #3730a3);
}

.bg-orange {
    background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.bg-teal {
    background: linear-gradient(135deg, #134e4a, #14b8a6);
}

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 1.5rem 60px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

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

    .blog-nav {
        padding: 0.5rem 1rem;
    }

    .blog-nav .nav-logo-img {
        height: 32px;
    }

    .blog-nav-links a {
        font-size: 0.78rem;
        padding: 0.5rem 0.8rem;
    }

    .blog-back {
        top: 70px;
        left: 1rem;
        font-size: 0.8rem;
    }

    .article-header {
        padding: 120px 1.5rem 50px;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-content {
        padding: 30px 1.5rem 60px;
    }

    .article-content h2 {
        font-size: 1.35rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

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

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 1rem 50px;
    }

    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .blog-nav-links a:not(.nav-cta) {
        display: none;
    }

    .article-header {
        padding: 100px 1rem 40px;
    }

    .article-content {
        padding: 24px 1rem 50px;
    }
}
