HTML
<div class="stage-19">
<div class="card-mag">
<div class="mag-img"><div class="mag-img-inner">🌌</div></div>
<div class="mag-body">
<div class="mag-category">Design</div>
<h4>The Future of CSS in 2025</h4>
<div class="mag-footer">
<span class="mag-author">Alex Morgan</span>
<span class="mag-read">Read →</span>
</div>
<div class="mag-read-bar"><div class="mag-read-fill"></div></div>
</div>
</div>
</div> CSS
.card-mag {
width: 210px;
border-radius: 16px;
overflow: hidden;
border: 1px solid var(--ccg-border2);
cursor: pointer;
transition: transform 0.35s;
}
.card-mag:hover {
transform: translateY(-4px);
}
.mag-img {
height: 110px;
background: linear-gradient(135deg, #1a0533 0%, #0a1535 50%, #0d1a33 100%);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.mag-img::before {
content: "";
position: absolute;
inset: 0;
background:
radial-gradient(ellipse at 30% 50%, rgba(124, 108, 255, 0.4), transparent 60%),
radial-gradient(ellipse at 80% 30%, rgba(61, 232, 245, 0.25), transparent 50%);
}
.mag-img-inner {
position: relative;
z-index: 1;
font-size: 36px;
}
.mag-body {
padding: 14px 16px;
background: var(--ccg-surface);
}
.mag-category {
font-family: var(--ccg-mono);
font-size: 9px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--ccg-accent);
margin-bottom: 5px;
}
.card-mag h4 {
font-size: 13px;
font-weight: 700;
color: #fff;
line-height: 1.3;
margin-bottom: 6px;
}
.mag-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 10px;
}
.mag-author {
font-size: 10px;
color: var(--ccg-muted);
}
.mag-read {
font-size: 10px;
color: var(--ccg-accent);
}
.mag-read-bar {
height: 2px;
background: rgba(124, 108, 255, 0.2);
margin-top: 8px;
border-radius: 1px;
overflow: hidden;
}
.mag-read-fill {
height: 100%;
width: 0;
background: var(--ccg-accent);
transition: width 0.4s ease;
}
.card-mag:hover .mag-read-fill {
width: 60%;
}
/* parent stage backdrop (so the demo renders standalone) */
[class^="stage-"] {
width: 100%;
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 2.5rem 1.5rem;
box-sizing: border-box;
}
.stage-19 {
background: #0a080e;
}
/* gallery vars + keyframes (so the demo renders standalone) */
:root {
--ccg-bg: #0a0a0f;
--ccg-surface: #111118;
--ccg-surface2: #17171f;
--ccg-surface3: #1e1e28;
--ccg-border: rgba(255, 255, 255, 0.15);
--ccg-border2: rgba(255, 255, 255, 0.13);
--ccg-accent: #7c6cff;
--ccg-pink: #ff6c8a;
--ccg-green: #1ed98a;
--ccg-amber: #f5a84a;
--ccg-cyan: #3de8f5;
--ccg-text: #f0eeff;
--ccg-muted: #6b6987;
--ccg-label: #9896b8;
--ccg-mono: "DM Mono", "Fira Code", monospace;
--ccg-sans: "Syne", sans-serif;
}