/* Match Card CSS with Dark Blue Theme */

/* Main container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: #f8fafc;
}

h1 {
    text-align: center;
    color: #f8fafc;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Match card styles */
.match-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.match-card {
    background-color: var(--accent-blue);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #334155;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.match-header {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.match-date {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
}

.match-title {
    background-color: #3b82f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* Team styles */
.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background-color: #1e293b;
    position: relative;
}

.team {
    display: flex;
    align-items: center;
    width: 45%;
}

.home-team {
    justify-content: flex-end;
    text-align: right;
}

.away-team {
    justify-content: flex-start;
    text-align: left;
}

.team-name {
    font-weight: 600;
    font-size: 18px;
    margin: 0 15px;
    color: var(--primary-medium);
}

.team-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #334155;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #3b82f6;
}

.vs {
    position: relative;
    font-weight: bold;
    font-size: 22px;
    color: #3b82f6;
    background-color: #0f172a;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

/* Odds table styles */
.odds-container {
    padding: 20px 25px;
}

.odds-container h3 {
    color: #f8fafc;
    margin-bottom: 15px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
    font-weight: 600;
}

.odds-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.odds-table th,
.odds-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.odds-table th {
    background-color: #0f172a;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.odds-table tr:hover {
    background-color: #334155;
}

.odds {
    font-weight: 600;
    color: #f8fafc;
}

.best-odds {
    color: #10b981;
    position: relative;
    font-weight: 700;
}

.best-odds::after {
    content: "Best";
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #10b981;
    color: #0f172a;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Button styles */
.view-details-btn {
    display: block;
    width: 200px;
    margin: 0 auto 20px;
    padding: 12px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-align: center;
}

.view-details-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Match details styles */
.match-details {
    padding: 0 25px 25px;
    border-top: 1px solid #334155;
    margin-top: 20px;
    /* background-color: red !important; */
}

.bookmakers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bookmaker {
    flex: 1 0 300px;
    background-color: #0f172a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #334155;
}

.bookmaker h4 {
    color: #f8fafc;
    margin-bottom: 15px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
    font-weight: 600;
}

.markets {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.market h5 {
    color: #3b82f6;
    margin-bottom: 10px;
    font-weight: 600;
}

.market table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.market th,
.market td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.market th {
    background-color: #1e293b;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Live match indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    background-color: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.live-indicator::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Score display */
.score-display {
    background-color: #334155;
    color: white;
    border-radius: 8px;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 22px;
    margin: 0 10px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #475569;
}

/* Bet button */
.place-bet-btn {
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.place-bet-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Alert styles */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-danger::before {
    content: "⚠️";
    margin-right: 10px;
    font-size: 18px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-success::before {
    content: "✅";
    margin-right: 10px;
    font-size: 18px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .teams {
        flex-direction: column;
        gap: 20px;
    }

    .team {
        width: 100%;
        justify-content: center;
    }

    .home-team,
    .away-team {
        text-align: center;
    }

    .vs {
        margin: 10px 0;
    }

    .odds-table {
        font-size: 14px;
    }

    .odds-table th,
    .odds-table td {
        padding: 10px 8px;
    }

    .bookmaker {
        flex: 1 0 100%;
    }

    .match-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .team-logo {
        width: 50px;
        height: 50px;
    }

    .team-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .match-card {
        border-radius: 10px;
    }

    .odds-table th,
    .odds-table td {
        padding: 8px 5px;
        font-size: 13px;
    }

    .view-details-btn {
        width: 100%;
    }
    .set_width_responsive{
        margin-top: -40px;
    }
}
