/* =========================================================
   ANAX Creative Intelligence — Premium Blog Listing
   File: assets/css/blog-premium.css
   Scoped to .anax-blog-page to avoid changing other pages.
   ========================================================= */

.anax-blog-page {
    --anax-ink: #11162b;
    --anax-muted: #697087;
    --anax-accent: #6558f5;
    --anax-accent-dark: #4638d8;
    --anax-line: #e9eaf2;
    color: var(--anax-ink);
    overflow: hidden;
    background: #fff;
}

.anax-blog-page * { box-sizing: border-box; }

.anax-blog-hero {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 10vw, 138px) 0 clamp(76px, 9vw, 120px);
    background:
        radial-gradient(ellipse at 82% 12%, rgba(101, 88, 245, .17), transparent 34%),
        radial-gradient(ellipse at 9% 95%, rgba(41, 169, 255, .10), transparent 30%),
        linear-gradient(135deg, #f8f9ff 0%, #fff 54%, #f7f6ff 100%);
    border-bottom: 1px solid #eff0f8;
}

.anax-blog-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .3;
    background-image: radial-gradient(#a4a9c8 .7px, transparent .7px);
    background-size: 23px 23px;
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
    pointer-events: none;
}

.anax-blog-hero-glow {
    position: absolute;
    z-index: -1;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .18;
    pointer-events: none;
}

.anax-blog-hero-glow-one { top: -190px; right: 12%; background: #7467ff; }
.anax-blog-hero-glow-two { bottom: -240px; left: 32%; background: #45b9ff; }

.anax-blog-hero-inner { position: relative; }

.anax-blog-eyebrow,
.anax-blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--anax-accent-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .19em;
    line-height: 1.5;
}

.anax-blog-eyebrow {
    padding: 9px 14px;
    border: 1px solid rgba(101, 88, 245, .19);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 5px 24px rgba(32, 35, 82, .04);
}

.anax-blog-eyebrow-dot,
.anax-blog-category-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6a5af9;
    box-shadow: 0 0 0 4px rgba(106, 90, 249, .10);
}

.anax-blog-hero h1 {
    max-width: 850px;
    margin: 25px 0 19px;
    color: #11162b;
    font-size: clamp(42px, 6.5vw, 78px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.065em;
}

.anax-blog-hero h1 span,
.anax-blog-section-head h2 span,
.anax-blog-cta h2 span {
    color: var(--anax-accent);
    background: red;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.anax-blog-hero p {
    max-width: 610px;
    margin: 0;
    color: #697087;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.85;
}

.anax-blog-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    margin-top: 30px;
    padding: 14px 20px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    background: linear-gradient(115deg, #5c4be9, #8270ff);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(91, 75, 233, .22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.anax-blog-hero-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 34px rgba(91, 75, 233, .29);
}

.anax-blog-hero-link span { font-size: 18px; }

.anax-blog-hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 43px;
    color: #8a8fa5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
}

.anax-blog-note-line { width: 34px; height: 1px; background: #a8a2f8; }

.anax-blog-content { padding: clamp(65px, 8vw, 105px) 0; }

.anax-blog-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 37px;
}

.anax-blog-section-head h2 {
    margin: 12px 0 8px;
    color: #151a30;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.anax-blog-section-head p {
    margin: 0;
    color: var(--anax-muted);
    font-size: 15px;
    line-height: 1.7;
}

.anax-blog-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 11px 15px;
    color: #7b8095;
    white-space: nowrap;
    background: #f8f8ff;
    border: 1px solid #ededfa;
    border-radius: 12px;
    font-size: 12px;
}

.anax-blog-count strong { color: #282d48; font-size: 20px; }

.anax-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
}

.anax-blog-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ebedf5;
    border-radius: 19px;
    box-shadow: 0 7px 26px rgba(26, 31, 67, .045);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.anax-blog-card:hover {
    transform: translateY(-7px);
    border-color: #dcd8ff;
    box-shadow: 0 22px 48px rgba(40, 36, 105, .12);
}

.anax-blog-card-image {
    position: relative;
    display: block;
    height: 235px;
    overflow: hidden;
    background: linear-gradient(135deg, #171d42, #6154e9 62%, #9b8dff);
    text-decoration: none !important;
}

.anax-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.anax-blog-card:hover .anax-blog-card-image img { transform: scale(1.07); }

.anax-blog-image-placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 72% 28%, rgba(255,255,255,.24), transparent 23%),
        radial-gradient(circle at 18% 85%, rgba(56,202,255,.25), transparent 30%),
        linear-gradient(135deg, #171d42, #6154e9 62%, #9b8dff);
}

.anax-blog-image-placeholder span {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -.08em;
}

.anax-blog-image-placeholder i {
    margin-top: 1px;
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-style: normal;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.anax-blog-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 13, 36, .08), transparent 38%, rgba(9, 13, 36, .3));
    pointer-events: none;
}

.anax-blog-image-index {
    position: absolute;
    top: 17px;
    left: 17px;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(18, 22, 53, .32);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.anax-blog-image-arrow {
    position: absolute;
    right: 17px;
    bottom: 17px;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: #28234e;
    font-size: 20px;
    background: rgba(255,255,255,.94);
    border-radius: 50%;
    transition: transform .25s ease;
}

.anax-blog-card:hover .anax-blog-image-arrow { transform: rotate(45deg); }

.anax-blog-card-body { padding: 24px 24px 25px; }

.anax-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #7d8198;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.anax-blog-category-dot { width: 6px; height: 6px; box-shadow: none; }

.anax-blog-card h3 {
    margin: 0 0 12px;
    color: #171b31;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.38;
    letter-spacing: -.025em;
}

.anax-blog-card h3 a { color: inherit; text-decoration: none; }
.anax-blog-card h3 a:hover { color: var(--anax-accent-dark); }

.anax-blog-card-body p {
    min-height: 75px;
    margin: 0 0 20px;
    color: #747a90;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.anax-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #5546e6 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.anax-blog-read-more span { transition: transform .2s ease; }
.anax-blog-read-more:hover span { transform: translateX(4px); }

.anax-blog-state {
    max-width: 650px;
    margin: 12px auto 0;
    padding: 54px 25px;
    text-align: center;
    background: linear-gradient(145deg, #fafaff, #fff);
    border: 1px solid #ecebfb;
    border-radius: 20px;
}

.anax-blog-state-icon {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #5c4be9;
    font-size: 25px;
    background: #eeecff;
    border-radius: 17px;
}

.anax-blog-state h3 { margin: 20px 0 8px; color: #171b31; font-size: 23px; }
.anax-blog-state p { max-width: 450px; margin: 0 auto; color: #747a90; font-size: 14px; line-height: 1.8; }
.anax-blog-state-error .anax-blog-state-icon { color: #b45309; background: #fff4df; }

.anax-blog-cta {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
    background:
        radial-gradient(ellipse at 88% 20%, rgba(132, 115, 255, .28), transparent 35%),
        linear-gradient(120deg, #121731, #1d2350 60%, #27215d);
}

.anax-blog-cta::after {
    content: "";
    position: absolute;
    top: -110px;
    right: 18%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02);
    pointer-events: none;
}

.anax-blog-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.anax-blog-cta .anax-blog-kicker { color: #b8b0ff; }
.anax-blog-cta h2 {
    margin: 13px 0 10px;
    color: #fff;
    font-size: clamp(31px, 4vw, 45px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.anax-blog-cta h2 span {
    background-image: linear-gradient(100deg, #b7aaff, #78c9ff);
}

.anax-blog-cta p { margin: 0; color: #c1c5dc; font-size: 14px; line-height: 1.7; }

.anax-blog-cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 25px;
    padding: 16px 20px;
    color: #211c54 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 11px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: transform .25s ease, background .25s ease;
}

.anax-blog-cta-button:hover { transform: translateY(-3px); background: #f0eeff; }
.anax-blog-cta-button span { font-size: 18px; }

@media (max-width: 991px) {
    .anax-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
    .anax-blog-card-image { height: 220px; }
    .anax-blog-card-body { padding: 21px; }
}

@media (max-width: 600px) {
    .anax-blog-hero { padding: 72px 0 66px; }
    .anax-blog-hero h1 { font-size: clamp(39px, 11vw, 56px); letter-spacing: -.055em; }
    .anax-blog-hero p { font-size: 14px; line-height: 1.8; }
    .anax-blog-hero-note { margin-top: 32px; }
    .anax-blog-content { padding: 58px 0; }
    .anax-blog-section-head { align-items: flex-start; margin-bottom: 27px; }
    .anax-blog-section-head h2 { font-size: 34px; }
    .anax-blog-section-head p { font-size: 13px; }
    .anax-blog-count { gap: 4px; padding: 8px 10px; font-size: 10px; }
    .anax-blog-count strong { font-size: 17px; }
    .anax-blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .anax-blog-card-image { height: 230px; }
    .anax-blog-card-body p { min-height: 0; }
    .anax-blog-cta { padding: 46px 0; }
    .anax-blog-cta-inner { align-items: flex-start; flex-direction: column; gap: 25px; }
    .anax-blog-cta h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .anax-blog-page *, .anax-blog-page *::before, .anax-blog-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
