/* ============================================================
   Blog · Compact Magazine (din design Anthropic — Direcția A)
   ============================================================ */
:root {
    --bm-brand-50: #eff6ff;
    --bm-brand-100: #dbeafe;
    --bm-brand-300: #93c5fd;
    --bm-brand-500: #3b82f6;
    --bm-brand-600: #2563eb;
    --bm-brand-700: #1d4ed8;
    --bm-violet: #8b5cf6;
    --bm-accent: #06b6d4;
    --bm-text: #0f172a;
    --bm-muted: #64748b;
    --bm-border: #e6e8f0;
    --bm-radius-xl: 20px;
    --bm-radius-lg: 14px;
    --bm-ease-out: cubic-bezier(.22, 1, .36, 1);
    --bm-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --bm-halo-op: .22;
    --bm-aurora-op: .35;
}

.bm-page { background: #f8f7fc; min-height: 100vh; position: relative; }
.bm-page * { box-sizing: border-box; }

/* ============== Aurora background (subtle) ============== */
.bm-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bm-aurora .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--bm-aurora-op); will-change: transform; }
.bm-aurora .b1 { width: 560px; height: 560px; background: radial-gradient(circle, #dbeafe 0%, transparent 70%); top: -180px; left: -120px; animation: bm-aurora1 26s ease-in-out infinite; }
.bm-aurora .b2 { width: 680px; height: 680px; background: radial-gradient(circle, #ede9fe 0%, transparent 70%); top: 300px; right: -200px; animation: bm-aurora2 32s ease-in-out infinite; }
.bm-aurora .b3 { width: 520px; height: 520px; background: radial-gradient(circle, #cffafe 0%, transparent 70%); top: 1400px; left: 30%; animation: bm-aurora3 34s ease-in-out infinite; }
.bm-aurora .b4 { width: 600px; height: 600px; background: radial-gradient(circle, #fce7f3 0%, transparent 70%); top: 2400px; right: 10%; animation: bm-aurora1 30s ease-in-out infinite; }
@keyframes bm-aurora1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, 40px) scale(1.05); } 66% { transform: translate(-40px, 80px) scale(.95); } }
@keyframes bm-aurora2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-100px, 60px) scale(1.06); } }
@keyframes bm-aurora3 { 0%, 100% { transform: translate(-30px, -20px) scale(1); } 50% { transform: translate(60px, 40px) scale(1.05); } }
.bm-aurora .mesh { position: absolute; inset: 0; background-image: linear-gradient(rgba(37, 99, 235, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .03) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%); }

.bm-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ============== Hero ============== */
.bm-hero { padding: 56px 0 24px; }
.bm-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--bm-brand-600); font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; letter-spacing: .02em; margin-bottom: 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 10px -2px rgba(37, 99, 235, .12); }
.bm-hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--bm-brand-600); border-radius: 50%; box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); animation: bm-pulse 2.4s ease-in-out infinite; }
@keyframes bm-pulse { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.bm-hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -.026em; max-width: 780px; margin: 0; color: var(--bm-text); }
.bm-hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--bm-brand-600) 0%, var(--bm-violet) 60%, var(--bm-accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bm-hero-lead { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--bm-muted); max-width: 560px; }

/* Filter tags — scroll orizontal single row, compact */
.bm-filter { position: relative; margin-top: 22px; }
.bm-filter-scroll { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 2px 32px 6px 0; scroll-behavior: smooth; mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 32px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 32px), transparent 100%); }
.bm-filter-scroll::-webkit-scrollbar { display: none; }
.bm-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(10px); border: 1px solid rgba(226, 232, 240, .85); border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--bm-muted); text-decoration: none; white-space: nowrap; transition: all .2s var(--bm-ease-out); cursor: pointer; line-height: 1.4; }
.bm-tag:hover { border-color: rgba(37, 99, 235, .35); color: var(--bm-brand-600); background: rgba(255, 255, 255, .85); }
.bm-tag.is-on { background: linear-gradient(135deg, var(--bm-brand-600), var(--bm-violet)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px -3px rgba(37, 99, 235, .4); padding-right: 8px; }
.bm-tag .cnt { font-size: 9.5px; font-weight: 600; padding: 1px 6px; background: rgba(37, 99, 235, .08); color: var(--bm-brand-600); border-radius: 99px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.bm-tag.is-on .cnt { background: rgba(255, 255, 255, .22); color: #fff; }
.bm-filter-fade { position: absolute; right: 0; top: 0; bottom: 8px; width: 36px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bm-bg, #f8f7fc) 75%); }

/* Cover placeholder */
.bm-cover-ph { background: repeating-linear-gradient(135deg, rgba(37, 99, 235, .045) 0 14px, rgba(139, 92, 246, .055) 14px 28px), linear-gradient(135deg, #eef2ff, #faf5ff); display: flex; align-items: center; justify-content: center; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 11px; color: rgba(37, 99, 235, .5); letter-spacing: .06em; text-transform: uppercase; }

/* ============== Featured article ============== */
.bm-section { padding-bottom: 72px; position: relative; }
.bm-feat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-top: 28px; position: relative; perspective: 1600px; }
.bm-feat-link { display: contents; color: inherit; }
.bm-feat-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .88); border-radius: var(--bm-radius-xl); overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--bm-ease-out), box-shadow .5s var(--bm-ease-out); box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 8px 24px -12px rgba(37, 99, 235, .14), 0 20px 50px -28px rgba(15, 23, 42, .14); }
.bm-feat-inner:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 14px 36px -14px rgba(37, 99, 235, .2), 0 36px 80px -36px rgba(15, 23, 42, .18); }
.bm-feat-glow { position: absolute; inset: -30px; background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, .18), transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, .12), transparent 60%); opacity: 0; transition: opacity .5s var(--bm-ease-out); pointer-events: none; border-radius: 30px; filter: blur(8px); z-index: -1; }
.bm-feat:hover .bm-feat-glow { opacity: var(--bm-halo-op); }
.bm-feat-img { position: relative; min-height: 360px; overflow: hidden; transform: translateZ(12px); }
.bm-feat-img .bm-cover-ph { position: absolute; inset: 0; }
.bm-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-feat-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 65%, rgba(255, 255, 255, .35)); pointer-events: none; }
.bm-feat-cat { position: absolute; top: 18px; left: 18px; padding: 6px 12px; background: rgba(15, 23, 42, .9); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 99px; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; backdrop-filter: blur(8px); box-shadow: 0 6px 16px -4px rgba(15, 23, 42, .32); transform: translateZ(24px); }
.bm-feat-badge { position: absolute; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--bm-brand-600), var(--bm-violet)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; line-height: 1; box-shadow: 0 10px 24px -6px rgba(37, 99, 235, .45), 0 0 0 4px rgba(255, 255, 255, .85); transform: translateZ(36px); font-weight: 600; }
.bm-feat-badge .n { font-size: 20px; letter-spacing: -.02em; }
.bm-feat-badge .l { font-size: 7.5px; letter-spacing: .08em; opacity: .85; margin-top: 2px; text-transform: uppercase; }

.bm-feat-body { padding: 34px 32px 30px; display: flex; flex-direction: column; gap: 12px; justify-content: center; transform: translateZ(18px); }
.bm-feat-meta { font-size: 11px; color: var(--bm-muted); font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; letter-spacing: .05em; display: flex; align-items: center; gap: 10px; text-transform: uppercase; flex-wrap: wrap; }
.bm-feat-meta b { color: var(--bm-brand-600); font-weight: 600; }
.bm-feat-meta .dot { width: 3px; height: 3px; background: var(--bm-muted); border-radius: 50%; opacity: .5; }
.bm-feat h2 { font-size: 28px; font-weight: 700; line-height: 1.14; letter-spacing: -.022em; color: var(--bm-text); margin: 0; }
.bm-feat p { font-size: 14.5px; line-height: 1.58; color: var(--bm-muted); margin: 0; }
.bm-feat-cta { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; background: linear-gradient(135deg, var(--bm-brand-600), var(--bm-violet)); color: #fff; border-radius: 99px; font-size: 13px; font-weight: 600; width: fit-content; margin-top: 6px; box-shadow: 0 6px 16px -4px rgba(37, 99, 235, .35); transition: all .3s var(--bm-ease-out); text-decoration: none; }
.bm-feat-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -4px rgba(37, 99, 235, .5); color: #fff; }
.bm-feat-cta svg { width: 13px; height: 13px; transition: transform .3s var(--bm-ease-out); }
.bm-feat-cta:hover svg { transform: translateX(3px); }

/* ============== Grid cards ============== */
.bm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; perspective: 1400px; }
.bm-card { position: relative; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .88); border-radius: var(--bm-radius-lg); overflow: hidden; transition: transform .4s var(--bm-ease-out), box-shadow .4s var(--bm-ease-out), border-color .25s; display: flex; flex-direction: column; transform-style: preserve-3d; box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 2px 10px -4px rgba(37, 99, 235, .08), 0 12px 28px -18px rgba(15, 23, 42, .1); will-change: transform; text-decoration: none; color: inherit; }
.bm-card-halo { position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, var(--bm-brand-600), var(--bm-violet), var(--bm-accent)); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: -1; filter: blur(14px); }
.bm-card:hover .bm-card-halo { opacity: var(--bm-halo-op); }
.bm-card:hover { border-color: rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 6px 20px -6px rgba(37, 99, 235, .18), 0 22px 48px -22px rgba(37, 99, 235, .18); }
.bm-card-img { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.bm-card-img .bm-cover-ph { position: absolute; inset: 0; font-size: 9px; }
.bm-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, .25)); pointer-events: none; }
.bm-card-num { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .96); color: var(--bm-brand-600); font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 10.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); box-shadow: 0 2px 8px -2px rgba(37, 99, 235, .18); transform: translateZ(18px); z-index: 1; }
.bm-card-body { padding: 14px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; transform: translateZ(10px); }
.bm-card-tag { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--bm-brand-600); font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; }
.bm-card h3 { font-size: 14px; font-weight: 600; line-height: 1.36; letter-spacing: -.005em; color: var(--bm-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.bm-card-meta { margin-top: auto; font-size: 11px; color: var(--bm-muted); display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--bm-border); font-variant-numeric: tabular-nums; }
.bm-card-meta b { color: var(--bm-text); font-weight: 600; }
.bm-card-arrow { width: 24px; height: 24px; border-radius: 50%; background: rgba(37, 99, 235, .07); color: var(--bm-brand-600); display: flex; align-items: center; justify-content: center; transition: all .3s var(--bm-ease-out); transform: translateZ(24px); }
.bm-card:hover .bm-card-arrow { background: linear-gradient(135deg, var(--bm-brand-600), var(--bm-violet)); color: #fff; transform: translateX(2px) translateZ(24px); box-shadow: 0 3px 10px -2px rgba(37, 99, 235, .4); }

/* ============== Reveal on scroll ============== */
.bm-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--bm-ease-out), transform .7s var(--bm-ease-out); }
.bm-reveal.in { opacity: 1; transform: translateY(0); }

/* Empty state */
.bm-empty { text-align: center; padding: 80px 24px; }
.bm-empty h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--bm-text); }
.bm-empty p { color: var(--bm-muted); margin: 0; }

/* ============== Responsive ============== */
@media (max-width: 1080px) {
    .bm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
    .bm-feat, .bm-feat-inner { grid-template-columns: 1fr; }
    .bm-feat-img { min-height: 0; aspect-ratio: 16/9; }
    .bm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .bm-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01s !important; transition-duration: .01s !important; }
}
