/* Portal engagement — story, feed, live pulse, animations */

.engage-story-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(0,240,255,0.07), rgba(0,240,255,0.03));
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 12px;
    animation: engage-fade-in 0.5s ease;
}
.engage-story-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: #e2e8f0; }
.engage-story-icon { font-size: 22px; flex-shrink: 0; }

.engage-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.engage-card {
    padding: 16px;
    background: var(--bg-card, rgba(15,23,42,0.6));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}
.engage-card h4 { margin: 0 0 10px; font-size: 13px; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.04em; }
.engage-card p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.engage-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.engage-badge.streak { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 20px; background: rgba(255,100,0,0.15); color: #ffb347; }

.engage-feed-list, .engage-highlight-list, .engage-events-list {
    list-style: none; margin: 0; padding: 0;
}
.engage-feed-list li, .engage-highlight-list li, .engage-events-list li {
    font-size: 12px; color: var(--text-muted); padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04); line-height: 1.45;
}
.engage-feed-icon { margin-right: 6px; }

.engage-smart-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 12px 16px; margin-bottom: 20px;
    background: rgba(0,0,0,0.25); border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.engage-smart-label { font-size: 12px; font-weight: 700; color: var(--accent-cyan); white-space: nowrap; }
.engage-smart-items { display: flex; flex-wrap: wrap; gap: 8px; }
.engage-smart-chip {
    font-size: 11px; padding: 6px 12px; border-radius: 20px;
    background: rgba(255,255,255,0.05); color: #e2e8f0; text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08); transition: 0.2s;
}
.engage-smart-chip:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* Live match pulse */
.match-card.match-live-pulse {
    animation: live-card-pulse 2.5s ease-in-out infinite;
    border-color: rgba(239,68,68,0.35) !important;
}
.match-live-meta {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    font-size: 11px; margin-top: 6px;
}
.match-live-badge {
    background: #ef4444; color: #fff; font-weight: 800;
    font-size: 9px; padding: 2px 6px; border-radius: 4px;
    animation: live-badge-blink 1.2s ease-in-out infinite;
}
.match-tipping-count { color: var(--accent-cyan); }

/* Oracle */
.match-oracle-hint {
    font-size: 11px; color: var(--text-muted); margin-top: 8px; padding: 8px 10px;
    background: rgba(255,255,255,0.03); border-radius: 8px; border-left: 3px solid rgba(255,255,255,0.1);
}
.match-oracle-hint.oracle-bold { border-left-color: #ff6b35; color: #ffd4c4; }

/* Bet save animation */
.match-card.bet-save-flash { animation: bet-save-flash 0.85s ease; }
.bet-input.bet-save-flash, .match-tip-input.bet-save-flash { animation: bet-input-lock 0.85s ease; }
@keyframes bet-save-flash {
    0% { box-shadow: 0 0 0 0 rgba(0,240,255,0.35); }
    40% { box-shadow: 0 0 0 5px rgba(0,240,255,0.12); background: rgba(0,240,255,0.04); }
    100% { box-shadow: none; }
}
@keyframes bet-input-lock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.98); border-color: var(--accent-cyan); }
}

/* Flying points */
.flying-pts {
    position: fixed; z-index: 9999; pointer-events: none;
    font-weight: 800; font-size: 14px; color: var(--accent-cyan);
    text-shadow: 0 0 6px rgba(0,240,255,0.35);
    animation: fly-pts 1.1s ease forwards;
}
@keyframes fly-pts {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-48px) scale(1.2); }
}

/* VS pulse on arena accept */
.vs-pulse-overlay {
    position: fixed; inset: 0; z-index: 10001; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    animation: vs-pulse-fade 0.9s ease forwards;
}
.vs-pulse-text {
    font-size: 64px; font-weight: 900; color: #ff0055;
    text-shadow: 0 0 40px rgba(255,0,85,0.6);
    animation: vs-pulse-scale 0.9s ease;
}
@keyframes vs-pulse-scale {
    0% { transform: scale(0.5); opacity: 0; }
    40% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}
@keyframes vs-pulse-fade { to { opacity: 0; } }

@keyframes live-card-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
    50% { box-shadow: 0 0 20px rgba(239,68,68,0.15); }
}
@keyframes live-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}
@keyframes engage-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* Empty state countdown */
.empty-state-countdown {
    margin-top: 12px; font-size: 13px; color: var(--accent-cyan);
}
.empty-state-countdown strong { font-size: 18px; display: block; margin-top: 4px; }

/* Profile blocks */
.engage-surprise-stats, .engage-milestones { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.engage-surprise-stats ul { list-style: none; margin: 0; padding: 0; }
.engage-surprise-stats li { font-size: 13px; padding: 6px 0; color: var(--text-muted); }
.engage-milestone-row { display: flex; flex-wrap: wrap; gap: 8px; }
.engage-milestone {
    font-size: 11px; padding: 6px 10px; border-radius: 8px;
    background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.15); color: var(--text-muted);
}
.engage-milestone.done { border-style: solid; border-color: rgba(0,240,255,0.35); color: var(--accent-cyan); background: rgba(0,240,255,0.06); }

.engage-sound-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

/* Share row on match */
.match-share-row { margin-top: 8px; }
.match-share-row .btn { font-size: 11px; padding: 4px 10px; }

/* HoF story */
.hof-winner-story { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 12px 0; padding: 12px; background: rgba(255,215,0,0.06); border-radius: 8px; }

/* Skeleton loading */
.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%; animation: skeleton-move 1.2s infinite;
    border-radius: 8px; min-height: 60px;
}
@keyframes skeleton-move { to { background-position: -200% 0; } }

/* League themes — jemné dekorácie, bez prepisovania globálnej palety (#00f0ff / #00ffaa) */
body.league-theme-wc-green .competition-header-box,
body.league-theme-wc-green .engage-story-banner {
    border-color: rgba(0, 240, 255, 0.12);
}
body.league-theme-winter-blue .competition-header-box {
    border-color: rgba(108, 182, 255, 0.15);
}

.landing-stat-weekly { color: var(--accent-cyan); font-weight: 700; }

/* Landing quote */
.landing-quote-block {
    margin: 24px 0; padding: 20px 24px; border-left: 3px solid var(--accent-cyan);
    background: rgba(0,240,255,0.05); border-radius: 0 12px 12px 0;
}
.landing-quote-block p { margin: 0; font-size: 15px; font-style: italic; color: #cbd5e1; line-height: 1.6; }
