/* Fopoll '26 Dashboard Styles - Mobile-first design with soft pink/pastel theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffd1dc 0%, #ffb3c6 50%, #ff8fab 100%);
    min-height: 100vh;
    padding: 1rem;
    color: #5a4a52;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header Section */
.header {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(255, 143, 171, 0.2);
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 1rem;
    font-weight: 600;
}

.score-display {
    margin: 1.5rem 0;
}

.total-score {
    font-size: 4rem;
    font-weight: bold;
    color: #d81b60;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(216, 27, 96, 0.1);
}

.score-label {
    font-size: 1rem;
    color: #ad1457;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 500;
}

.last-update {
    font-size: 0.875rem;
    color: #c48b9f;
    margin-top: 1rem;
}

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #ffe4ec;
}

.nav-link {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: #d81b60;
    background: #fff0f5;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: #ffe4ec;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff8fab 0%, #ff6b9d 100%);
    color: white;
    border-color: #ff8fab;
}

/* Sections */
section {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(255, 143, 171, 0.15);
}

section h2 {
    font-size: 1.5rem;
    color: #d81b60;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffe4ec;
    font-weight: 600;
}

.no-matches {
    text-align: center;
    color: #c48b9f;
    padding: 2rem;
    font-style: italic;
}

/* Match Cards */
.match {
    background: #fff5f8;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #ffe4ec;
    position: relative;
}

.match:last-child {
    margin-bottom: 0;
}

.match.live {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-color: #ffd966;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.live-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff5252;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: blink 1.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.4);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.match.finished {
    background: linear-gradient(135deg, #e8f8f0 0%, #f0fff5 100%);
    border-color: #b2dfb2;
}

.match:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 143, 171, 0.2);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5);
    }
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stage-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #d81b60;
    background: rgba(216, 27, 96, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.match-time {
    font-size: 0.875rem;
    color: #ad1457;
    font-weight: 500;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.flag {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(216, 27, 96, 0.15);
}

.team-name {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: #5a4a52;
}

.match-score {
    font-size: 2rem;
    font-weight: bold;
    color: #5a4a52;
    min-width: 80px;
    text-align: center;
}

.match.live .match-score {
    color: #c2185b;
    background: rgba(233, 30, 99, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    animation: scorePulse 2s ease-in-out infinite;
}

@keyframes scorePulse {
    0%, 100% {
        background: rgba(233, 30, 99, 0.15);
        transform: scale(1);
    }
    50% {
        background: rgba(233, 30, 99, 0.25);
        transform: scale(1.05);
    }
}

.match.finished .match-score {
    color: #388e3c;
}

/* Projected/Predicted Score */
.projected-score,
.predicted-score {
    text-align: center;
    padding: 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.bet-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.predicted-score {
    background: linear-gradient(135deg, #ffe4ec 0%, #ffcce0 100%);
    color: #ad1457;
    font-size: 0.875rem;
    flex: 1;
}

.prospective-points {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #2e7d32;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.2);
}

.prospective-points.zero {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #c62828;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.2);
}

.projected-score.positive {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #2e7d32;
    font-size: 1.125rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.projected-score.zero {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #c62828;
    font-size: 1.125rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.points-prediction {
    font-size: 0.75rem;
    text-align: right;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* New styles for finished match info container */
.finished-points {
    flex: 1;
    padding: 0.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
}

.finished-points.positive {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #2e7d32;
}

.finished-points.zero {
    background: linear-gradient(135deg, #e9eeff 0%, #c6b3b3 100%);
    color: #544646;
}

.finished-prediction {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    background: #fff0f5;
    color: #ad1457;
    white-space: nowrap;
}


/* Previous Matches Specific Styles */
.previous-match {
    position: relative;
}

.prediction {
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 10px;
    background: #fff0f5;
    color: #ad1457;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #ffe4ec;
}

.match-points {
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.match-points.points-earned {
    background: linear-gradient(135deg, #b2dfb2 0%, #90ee90 100%);
    color: #2e7d32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.match-points.points-none {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #c62828;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}

/* Responsive adjustments */
@media (max-width: 400px) {
    body {
        padding: 0.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .total-score {
        font-size: 3rem;
    }

    .team-name {
        font-size: 0.75rem;
    }

    .match-score {
        font-size: 1.5rem;
        min-width: 60px;
    }

    .flag {
        width: 40px;
        height: 27px;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Additional styling for better visual hierarchy */
.previous-matches {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f8 100%);
}

.today-matches {
    background: linear-gradient(135deg, #ffffff 0%, #fffef9 100%);
}

.upcoming-matches {
    background: linear-gradient(135deg, #ffffff 0%, #f9fcff 100%);
}

/* Smooth transitions for all interactive elements */
a, button, .match {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

