This repository has been archived on 2026-05-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tippspiel/frontend/src/components/MatchCard.module.css
T
Ronny 0f70a1913c style: LIVE badge right-aligned, bigger live score, remove redundant tip
- LIVE: pulsing red badge with dot, right-aligned in header (replaces countdown position)
- Live score: 28px instead of 22px for better visibility
- Removed duplicate tip display under live score (tip only shown in footer)
- BEENDET status stays left in header

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 09:00:55 +02:00

543 lines
10 KiB
CSS

/* MatchCard — Stadium Elite Style */
.card {
padding: 20px 24px;
transition: box-shadow 0.2s, transform 0.15s;
cursor: default;
}
.card:hover {
transform: translateY(-1px);
box-shadow:
0 16px 36px rgba(0,0,0,0.35),
inset 0 1px 0 rgba(255,255,255,0.10),
inset 1px 0 0 rgba(255,255,255,0.05);
}
.live {
box-shadow:
0 0 0 1px rgba(248,113,113,0.25),
0 10px 30px rgba(248,113,113,0.08),
inset 0 1px 0 rgba(255,255,255,0.07) !important;
}
/* Top row */
.topRow {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 18px;
}
.status {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
}
.statusLive {
color: var(--error);
}
/* LIVE badge — right-aligned in header */
.liveBadge {
display: flex;
align-items: center;
gap: 5px;
font-size: 11px;
font-weight: 800;
color: var(--error);
text-transform: uppercase;
letter-spacing: 0.08em;
background: rgba(248, 113, 113, 0.12);
padding: 3px 10px;
border-radius: 20px;
border: 1px solid rgba(248, 113, 113, 0.25);
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.countdownBadge {
font-size: 11px;
font-weight: 700;
padding: 3px 9px;
border-radius: 20px;
background: var(--surface-high);
color: var(--text-secondary);
}
.countdownUrgent {
background: rgba(254,174,50,0.12);
color: var(--gold);
border: 1px solid rgba(254,174,50,0.2);
animation: pulse 1.5s ease-in-out infinite;
}
.group {
font-size: 11px;
font-weight: 600;
color: var(--primary);
background: var(--primary-dim);
padding: 3px 9px;
border-radius: 20px;
border: 1px solid rgba(75,183,248,0.15);
}
/* Kickoff — stadium LED segment display */
.kickoffRow {
text-align: center;
margin: 8px 0;
}
.kickoffLED {
font-family: 'DSEG7', 'Courier New', monospace;
font-size: 18px;
color: #FECC4C;
letter-spacing: 0.02em;
word-spacing: -0.1em;
text-shadow:
0 0 4px rgba(254, 174, 50, 0.9),
0 0 12px rgba(254, 174, 50, 0.6),
0 0 24px rgba(254, 174, 50, 0.3),
0 0 40px rgba(254, 174, 50, 0.15);
}
/* VS separator */
.vsSeparator {
font-size: 24px;
font-weight: 800;
color: var(--text-muted);
}
/* Match row — Teams + Score */
.matchRow {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
margin-bottom: 18px;
}
/* Teams — flag on top, name below */
.teamHome, .teamAway {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
flex: 1;
min-width: 0;
}
/* Flag box — subtle, clean */
.flagBox {
width: 52px;
height: 52px;
border-radius: 12px;
background: var(--surface-high);
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
border: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
position: relative;
}
.flagBox::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 40%;
background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
pointer-events: none;
z-index: 1;
}
.crest {
width: 36px;
height: 36px;
object-fit: contain;
position: relative;
z-index: 0;
}
.teamName {
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 600;
font-size: 13px;
color: var(--text-primary);
line-height: 1.2;
text-align: center;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Score / VS center */
.scoreBox {
display: flex;
align-items: center;
justify-content: center;
}
.score {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 22px;
font-weight: 800;
color: var(--text-primary);
letter-spacing: 4px;
}
.scoreLive {
font-size: 28px;
color: var(--text-primary);
}
.kickoffCenter {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.kickoffCenterTime {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 13px;
font-weight: 800;
color: var(--primary);
white-space: nowrap;
}
/* Tipp area */
.tipRow {
border-top: 1px solid var(--border-subtle);
padding-top: 14px;
display: flex;
align-items: center;
justify-content: center;
min-height: 44px;
}
/* Wenn tipRow zum Banner wird */
.tipRow.resultBanner {
border-top: none;
padding-top: 0;
min-height: unset;
}
.tipBtn {
width: 100%;
max-width: 260px;
padding: 11px 20px;
font-size: 14px;
letter-spacing: 0.02em;
}
/* Existing tip display — 3-column grid so center stays centered */
.tipDisplay {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
width: 100%;
gap: 8px;
}
.tipLeft { display: flex; justify-content: flex-start; align-items: center; }
.tipRight { display: flex; justify-content: flex-end; align-items: center; }
/* Banner-Variante: Icon + Label als Zeile */
.bannerLeft {
gap: 6px;
flex-direction: row;
}
.tipCenter {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.tipLabel {
font-size: 10px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.tipScore {
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 800;
font-size: 17px;
color: var(--primary);
background: var(--primary-dim);
padding: 3px 14px;
border-radius: 8px;
border: 1px solid rgba(75,183,248,0.15);
}
/* ── Ergebnis-Banner ──────────────────────────────────────────── */
.resultBanner {
margin: 0 -24px -20px !important;
padding: 10px 24px !important;
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}
.resultIcon {
display: flex;
align-items: center;
flex-shrink: 0;
}
.resultLabel {
text-transform: uppercase;
letter-spacing: 0.06em;
font-size: 12px;
font-weight: 700;
}
/* tipScore-Variante im Banner: dunkler Hintergrund statt Primary-Blau */
.tipScoreBanner {
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 800;
font-size: 17px;
padding: 3px 14px;
border-radius: 8px;
background: rgba(0,0,0,0.18);
border: 1px solid rgba(255,255,255,0.08);
}
.resultPoints {
font-size: 14px;
font-weight: 800;
letter-spacing: 0.01em;
opacity: 0.95;
}
/* Farb-Varianten Banner */
.exact {
background: linear-gradient(90deg, rgba(52,211,153,0.18) 0%, rgba(52,211,153,0.08) 100%);
color: #4ade80;
border-top: 1px solid rgba(52,211,153,0.20);
}
.tendency {
background: linear-gradient(90deg, rgba(75,183,248,0.18) 0%, rgba(75,183,248,0.08) 100%);
color: var(--primary);
border-top: 1px solid rgba(75,183,248,0.20);
}
.wrong {
background: linear-gradient(90deg, rgba(248,113,113,0.15) 0%, rgba(248,113,113,0.06) 100%);
color: var(--error);
border-top: 1px solid rgba(248,113,113,0.18);
}
/* Card-Glow je Ergebnis */
.glowExact {
box-shadow:
0 0 0 1px rgba(52,211,153,0.18),
0 10px 30px rgba(52,211,153,0.07),
inset 0 1px 0 rgba(255,255,255,0.07) !important;
}
.glowTendency {
box-shadow:
0 0 0 1px rgba(75,183,248,0.18),
0 10px 30px rgba(75,183,248,0.07),
inset 0 1px 0 rgba(255,255,255,0.07) !important;
}
.glowWrong {
box-shadow:
0 0 0 1px rgba(248,113,113,0.15),
0 10px 30px rgba(248,113,113,0.05),
inset 0 1px 0 rgba(255,255,255,0.07) !important;
}
.editBtn {
background: transparent;
border: 1px solid var(--border-subtle);
color: var(--text-muted);
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
cursor: pointer;
transition: all 0.15s;
}
.editBtn:hover { border-color: var(--primary); color: var(--primary); }
.noTip {
font-size: 12px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Tipped row — clean compact display */
.tippedRow {
display: flex;
align-items: center;
gap: 10px;
background: rgba(52, 211, 153, 0.08);
border: 1px solid rgba(52, 211, 153, 0.2);
border-radius: var(--radius-sm);
padding: 10px 14px;
cursor: pointer;
transition: background 0.2s;
}
.tippedRow:hover {
background: rgba(52, 211, 153, 0.14);
}
.tippedIcon {
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--success);
color: white;
font-size: 12px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.tippedLabel {
font-size: 12px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.04em;
font-weight: 600;
}
.tippedScore {
font-size: 16px;
font-weight: 800;
color: var(--text-primary);
margin-left: auto;
}
.tippedEdit {
font-size: 11px;
color: var(--primary);
font-weight: 600;
opacity: 0.7;
}
/* ── State-based card variants ──────────────────────────────────── */
.card_open { /* default — no extra styling needed */ }
.card_tipped {
border-left: 3px solid var(--success);
}
.card_live {
border-left: 3px solid var(--error);
}
.card_finished { /* glow classes already applied via JS */ }
.card_missed {
opacity: 0.45;
pointer-events: none;
}
/* Live pulsing dot */
.liveDot {
width: 8px;
height: 8px;
background: var(--error);
border-radius: 50%;
display: inline-block;
margin-right: 6px;
vertical-align: middle;
animation: pulse 1.5s ease-in-out infinite;
}
/* Points badge */
.pointsBadge {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 700;
}
.pointsBadge_exact {
background: linear-gradient(135deg, var(--gold), #FFD700);
color: #1a1a1a;
animation: shimmer 2s ease-in-out;
}
.pointsBadge_tendency {
background: var(--success);
color: #1a1a1a;
}
.pointsBadge_wrong {
background: var(--text-muted);
color: var(--bg-deep);
}
/* Missed label */
.missedLabel {
font-size: 0.75rem;
color: var(--text-muted);
font-style: italic;
}
/* Countdown (replaces badge when < 60 min) */
.countdown {
color: var(--error);
font-weight: 700;
font-size: 0.8rem;
}
.countdownUrgent {
animation: pulse 0.8s ease-in-out infinite;
}
/* Tipped state: checkmark + score inline */
.tipDisplay_score {
display: flex;
align-items: center;
gap: 6px;
}
/* Change button for tipped state */
.changeBtn {
background: none;
border: none;
color: var(--primary);
cursor: pointer;
font-size: 0.8rem;
text-decoration: underline;
padding: 0;
}
.changeBtn:hover {
color: var(--primary);
opacity: 0.75;
}
@keyframes shimmer {
0% { box-shadow: 0 0 0 rgba(254, 174, 50, 0); }
50% { box-shadow: 0 0 16px rgba(254, 174, 50, 0.5); }
100% { box-shadow: 0 0 0 rgba(254, 174, 50, 0); }
}