/* ═══════════════════════════════════════════
   SELION.AI Blog — Premium Light Editorial
   Magazine-quality design, bright & luxurious
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Light Premium Palette */
    --bg: #EFEFEF;
    --bg-white: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-body: #444444;
    --text-muted: #888888;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);

    /* Tags — neutral monochrome */
    --tag-color: #555555;
    --tag-bg: rgba(0, 0, 0, 0.05);

    /* Dark Footer */
    --footer-bg: #1C1C1C;
    --footer-border: rgba(255, 255, 255, 0.12);
    --footer-text: rgba(255, 255, 255, 0.6);
    --footer-heading: #FFFFFF;

    /* Layout */
    --container-max: 1200px;
    --article-max: 760px;

    /* Shadows */
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-featured: 0 8px 40px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--text-muted);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* ═══ SCROLL REVEAL ═══ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards */
.scroll-reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.scroll-reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.scroll-reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.scroll-reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.scroll-reveal:nth-child(6) {
    transition-delay: 0.40s;
}

/* ═══ HEADER — Light ═══ */
.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(239, 239, 239, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-logo svg {
    width: 24px;
    height: 24px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--text-primary);
}

.header-nav .header-cta {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--text-primary);
    color: var(--bg-white);
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-nav .header-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: var(--bg-white);
}

/* ═══ INDEX LAYOUT ═══ */
.blog-index-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 100px 48px 80px;
}

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.breadcrumbs a {
    color: var(--text-muted);
    font-weight: 400;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs span {
    opacity: 0.4;
}

/* ═══ INDEX HERO TITLE ═══ */
.blog-index-container h1 {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -3px;
}

.blog-index-container .blog-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
}

/* ═══ BLOG INDEX CARDS ═══ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 56px;
    align-items: stretch;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

/* Featured Card — Spans Full Width, with placeholder image area */
.blog-card.featured {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    padding: 0;
    height: 420px;
    background: var(--card-bg);
    box-shadow: var(--shadow-featured);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    cursor: default;
}

.blog-card.featured:hover {
    transform: none;
    box-shadow: var(--shadow-featured);
    border-color: var(--border);
}

.blog-card.featured .card-placeholder {
    background: #E5E5E5;
    background-size: cover;
    background-position: center;
    min-height: 100%;
    border-radius: 20px 0 0 20px;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.blog-card.featured .card-content {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card.featured h2 {
    font-size: 28px;
    letter-spacing: -1px;
}

.blog-card.featured p {
    max-width: 560px;
}

/* Card Tags — Neutral Monochrome */
.blog-card .card-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    width: fit-content;
    background: var(--tag-bg);
    color: var(--tag-color);
    border: none;
}


.blog-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.blog-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 24px;
}

.blog-card .card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.blog-card .card-link::after {
    content: '→';
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 16px;
}

.blog-card:hover .card-link {
    color: var(--text-body);
}

.blog-card:hover .card-link::after {
    transform: translateX(6px);
}

/* ═══ ARTICLE LAYOUT ═══ */
.article-container {
    max-width: var(--article-max);
    margin: 0 auto;
    padding: 80px 24px 80px;
}

/* ═══ ARTICLE META ═══ */
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-meta .tag {
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--tag-bg);
    color: var(--tag-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: none;
}

.article-meta time {
    color: var(--text-muted);
}

/* ═══ ARTICLE TYPOGRAPHY ═══ */
.article-container h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.article-container .subtitle {
    font-size: 19px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 48px;
}

.article-container h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 64px 0 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.article-container h3 {
    font-size: clamp(19px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 48px 0 14px;
    line-height: 1.3;
}

.article-container p {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-body);
}


.article-container ul,
.article-container ol {
    margin: 16px 0 28px 24px;
    font-size: 17px;
    line-height: 1.85;
}

.article-container li {
    margin-bottom: 10px;
    color: var(--text-body);
}

.article-container li strong {
    color: var(--text-primary);
}

.article-container blockquote {
    border-left: 3px solid var(--text-muted);
    padding: 24px 28px;
    margin: 36px 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text-body);
}

/* ═══ INFO BOXES ═══ */
.info-box {
    padding: 28px 32px;
    margin: 36px 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.info-box.tip {
    border-left: 4px solid var(--text-muted);
    background: rgba(0, 0, 0, 0.02);
}

.info-box.tip .info-title {
    color: var(--text-primary);
}

.info-box .info-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.info-box p {
    margin-bottom: 0;
}

/* ═══ CTA SECTION ═══ */
.article-cta {
    margin: 64px 0;
    padding: 48px;
    background: var(--text-primary);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.article-cta h3 {
    font-size: 28px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    position: relative;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    font-size: 16px;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ═══ TABLE OF CONTENTS ═══ */
.toc {
    padding: 28px 32px;
    margin: 36px 0;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.toc h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.toc ol {
    list-style-position: inside;
}

.toc li {
    margin-bottom: 10px;
    font-size: 14px;
}

.toc a {
    color: var(--text-body);
}

.toc a:hover {
    color: var(--tag-teal);
}

/* ═══ FOOTER ═══ */
.footer {
    background: var(--footer-bg);
    padding: 80px 48px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 56px;
}

.footer-headline {
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 28px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: all .2s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
    transition: color .2s;
    text-decoration: underline;
}

.footer-link:hover {
    color: #fff;
}

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

.footer-legal {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    transition: color .2s;
}

.footer-legal-link:hover {
    color: #fff;
}

/* ═══ RELATED ARTICLES ═══ */
.related-articles {
    margin: 64px 0;
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

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

.related-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.related-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══ RESPONSIVE ═══ */

/* Large Desktop */
@media (min-width: 1440px) {
    .blog-index-container {
        padding: 160px 80px 100px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .blog-card.featured .card-content {
        padding: 32px;
    }

    .blog-card.featured h2 {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-header {
        padding: 14px 20px;
    }

    .header-nav {
        display: none;
    }

    .article-container {
        padding: 100px 20px 60px;
    }

    .blog-index-container {
        padding: 100px 20px 60px;
    }

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

    .blog-card {
        padding: 24px;
        aspect-ratio: auto;
    }

    .blog-card.featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .blog-card.featured .card-placeholder {
        min-height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .blog-card.featured .card-content {
        padding: 24px;
    }

    .blog-card.featured h2 {
        font-size: 22px;
    }

    .article-cta {
        padding: 32px 24px;
    }

    .article-cta h3 {
        font-size: 22px;
    }

    .footer {
        padding: 48px 20px 20px;
    }

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

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

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

    .article-container h2 {
        margin-top: 48px;
    }


}