/* Match Detail Page Specific Styles */

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #dc2626 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.5);
}

/* Match Header */
.match-header {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.95));
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.match-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #dc2626, #2563eb);
}

.match-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid #dc2626;
    border-radius: 20px;
    margin-bottom: 15px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    color: #dc2626;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.match-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.match-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.meta-value {
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.95));
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
}

.info-content h3 {
    color: #dc2626;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-content p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.5;
}

/* Score Summary */
.score-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.team-score {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.95));
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid #dc2626;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.team-score.team2 {
    border-left-color: #2563eb;
}

.team-name-large {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.score-large {
    color: #dc2626;
    font-size: 2.5rem;
    font-weight: 700;
}

.score-details {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #ccc;
}

.tab-btn.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Innings Section */
.innings-section {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.95));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.innings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.innings-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.innings-score {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Batting Table */
.batting-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.batting-table thead {
    background: rgba(220, 38, 38, 0.1);
}

.batting-table th {
    padding: 12px 10px;
    text-align: left;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.batting-table td {
    padding: 12px 10px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.batting-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.batsman-name {
    color: #ffffff;
    font-weight: 600;
}

.dismissal-info {
    color: #888;
    font-size: 13px;
    margin-top: 3px;
}

.highlight-score {
    color: #dc2626;
    font-weight: 700;
}

/* Bowling Table */
.bowling-table {
    width: 100%;
    border-collapse: collapse;
}

.bowling-table thead {
    background: rgba(37, 99, 235, 0.1);
}

.bowling-table th {
    padding: 12px 10px;
    text-align: left;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
}

.bowling-table td {
    padding: 12px 10px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bowling-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.bowler-name {
    color: #ffffff;
    font-weight: 600;
}

/* Summary Content */
.summary-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.95));
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.summary-card h3 {
    color: #dc2626;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.summary-card p {
    color: #ccc;
    line-height: 1.8;
    font-size: 15px;
}

.key-moment {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #2563eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.key-moment:last-child {
    margin-bottom: 0;
}

.moment-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 5px;
}

.moment-description {
    color: #888;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-title {
        font-size: 1.5rem;
    }

    .match-meta {
        gap: 15px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .team-score {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-large {
        font-size: 2rem;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .batting-table,
    .bowling-table {
        font-size: 13px;
    }

    .batting-table th,
    .batting-table td,
    .bowling-table th,
    .bowling-table td {
        padding: 8px 5px;
    }

    .innings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .match-header {
        padding: 20px;
    }

    .back-link {
        padding: 10px 18px;
        font-size: 14px;
    }

    .team-name-large {
        font-size: 1.2rem;
    }

    .score-large {
        font-size: 1.8rem;
    }
}