Files
Portfolio/styles/ArticleCard.module.css
2025-05-13 12:12:47 +02:00

119 lines
2.0 KiB
CSS

.container {
display: flex;
flex-direction: column;
background: var(--article-bg);
border-radius: 16px;
overflow: hidden;
text-decoration: none;
color: white;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
height: 100%;
position: relative;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.imageWrapper {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
}
.image {
object-fit: cover;
transition: transform 0.5s ease;
}
.container:hover .image {
transform: scale(1.08);
}
.viewsBadge {
position: absolute;
top: 12px;
right: 12px;
background: rgba(0, 0, 0, 0.6);
color: white;
padding: 4px 10px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 5px;
backdrop-filter: blur(4px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
z-index: 10;
}
.content {
padding: 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.title {
color: var(--accent-color);
font-size: 1rem;
line-height: 1.4;
font-weight: 700;
margin: 0;
}
.description {
font-size: 0.85rem;
line-height: 1.6;
opacity: 0.85;
margin: 0;
flex: 1;
}
.footer {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.stats {
display: flex;
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.75);
gap: 1.25rem;
}
.stat {
display: flex;
align-items: center;
font-weight: 500;
gap: 0.35rem;
}
.icon {
color: var(--accent-color);
height: 18px;
width: 18px;
}
.readMore {
font-size: 0.75rem;
font-weight: 600;
color: var(--accent-color);
padding: 6px 12px;
border: 1px solid currentColor;
border-radius: 20px;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.container:hover .readMore {
background-color: var(--accent-color);
color: var(--article-bg);
}