/* Stake.com-inspired match card styles - Safe version */

/* Match row styling */
.match-row {
    background-color: #1a1c25;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.match-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 227, 149, 0.2);
}

/* Add a subtle top border effect */
.match-row:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0d66e9, #1a75f5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.match-row:hover:before {
    opacity: 1;
}

/* Team elements */
.team-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-name {
    color: #ffffff;
    font-weight: 600;
    margin-left: 8px;
}

.score {
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #0d66e9, #1a75f5);
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(13, 102, 233, 0.3);
    font-size: 0.95em;
}

/* Tournament name */
.tournament-name {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Match time */
.match-time {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85em;
    font-weight: 600;
    background-color: rgba(21, 36, 51, 0.5);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Question name */
.question-name {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Special styling for LIVE matches */
.match-time.live-match {
    color: #ffffff;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Odds buttons - Stake.com style */
.odds-btn {
    background: linear-gradient(to bottom, #252733, #1e2028);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 0.95em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.odds-btn:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.2s;
}

.odds-btn:hover:after {
    opacity: 1;
}

.odds-btn:hover {
    background: linear-gradient(to bottom, #2e3040, #252733);
    transform: translateY(-1px);
    border-color: rgba(13, 102, 233, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.odds-btn strong {
    color: #0d66e9 !important;
    margin-left: 8px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Mobile card improvements - Stake.com inspired */
.card-body[style="background-color: #152433"] {
    background: linear-gradient(140deg, #1a1c25, #1e2028) !important;
    border-radius: 0 0 8px 8px;
    padding: 16px !important;
    position: relative;
    z-index: 1;
}

.card-header[style="background-color: #213642; color: white;"] {
    background: linear-gradient(90deg, #1e2028, #252733) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px 8px 0 0 !important;
    position: relative;
    overflow: hidden;
}

.card-header[style="background-color: #213642; color: white;"]:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0d66e9, #1a75f5);
}

/* Make cards more interactive on mobile */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .odds-btn {
        padding: 8px 10px;
    }

    .market-options {
        gap: 6px !important;
    }

    .team-logo {
        width: 22px;
        height: 22px;
    }
}
