204 lines
3.7 KiB
CSS
204 lines
3.7 KiB
CSS
.deck-detail-page {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 0 1rem 3rem;
|
|
}
|
|
|
|
.back-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
margin-bottom: 1.5rem;
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.back-link:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.deck-article {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 2rem;
|
|
}
|
|
|
|
.deck-header {
|
|
margin-bottom: 2rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.deck-header h1 {
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
|
|
.deck-factions {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
margin-bottom: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.faction-badge {
|
|
display: inline-block;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
padding: 0.2rem 0.7rem;
|
|
border-radius: 999px;
|
|
background: var(--bg-elevated);
|
|
color: var(--accent);
|
|
border: 1px solid var(--border);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.deck-card-count {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin: 0;
|
|
}
|
|
|
|
.deck-section {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.deck-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.deck-section h2 {
|
|
font-size: 1.05rem;
|
|
font-weight: 600;
|
|
margin: 0 0 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.deck-card-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.mini-card-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
display: block;
|
|
}
|
|
|
|
.mini-card {
|
|
width: 100px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
transition: border-color var(--transition), transform var(--transition);
|
|
position: relative;
|
|
aspect-ratio: 2.5 / 3.5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mini-card:hover {
|
|
border-color: var(--accent);
|
|
z-index: 10;
|
|
}
|
|
|
|
.mini-card-img {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
background: var(--bg-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.mini-card-img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
background: #000;
|
|
}
|
|
|
|
.mini-card-name {
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
padding: 0.25rem 0.3rem;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
background: var(--bg-elevated);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.mini-card-stack {
|
|
position: relative;
|
|
width: 110px; /* Base width + some offset space */
|
|
height: 140px; /* Adjusted for aspect ratio */
|
|
}
|
|
|
|
.mini-card-stack .mini-card {
|
|
position: absolute;
|
|
top: calc(var(--stack-index) * 4px);
|
|
left: calc(var(--stack-index) * 4px);
|
|
z-index: calc(10 - var(--stack-index));
|
|
}
|
|
|
|
.mini-card-count {
|
|
position: absolute;
|
|
top: 0.25rem;
|
|
right: 0.25rem;
|
|
background: var(--accent);
|
|
color: white;
|
|
font-size: 0.65rem;
|
|
font-weight: 800;
|
|
padding: 0.1rem 0.3rem;
|
|
border-radius: 4px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
z-index: 20;
|
|
}
|
|
|
|
.mini-card-btn.is-stacked:hover .mini-card {
|
|
transform: translate(calc(var(--stack-index) * 2px), calc(var(--stack-index) * -2px));
|
|
}
|
|
|
|
.deck-description {
|
|
font-size: 0.95rem;
|
|
line-height: 1.7;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
|
|
.deck-description p {
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.deck-description p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 4rem 1rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-state i {
|
|
font-size: 3rem;
|
|
display: block;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
|