/**
 * Cricket Match Info Styles
 * REFACTORED: Extracted from tab-match-info.php
 */

.match-info-box {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    font-family: Arial, Helvetica, sans-serif;
}

/* ROW */
.match-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

/* LAST ROW NO BORDER */
.match-info-row:last-child {
    border-bottom: none;
}

/* LABEL */
.match-info-label {
    font-weight: 600;
    color: #111827;
    min-width: 160px;
}

/* VALUE */
.match-info-value {
    color: #111827;
    text-align: right;
    max-width: 70%;
    line-height: 1.4;
}


/* ===============================
   GRAPHS MAIN WRAPPER
=================================*/
.graphs-content {
    background: #f8fafc;
    padding: 20px 0 40px 0;
}
div#graphs-content-wrapper {
    margin: 2px 12px;
}

/* ===============================
   INNINGS SELECT DROPDOWN
=================================*/
#  {
    min-width: 280px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ===============================
   GRAPH TABS
=================================*/
#graph-tabs-nav {
    justify-content: flex-start;
    gap: 30px;
}

.graph-tab-button {
    font-weight: 600;
    font-size: 14px;
    padding: 12px 4px;
    transition: all 0.25s ease;
}

.graph-tab-button.active {
    color: #2563eb;
    border-color: #2563eb;
}

.graph-tab-button:hover {
    color: #111827;
}

/* ===============================
   GRAPH CARD DESIGN
=================================*/
.graph-container .bg-white {
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

/* ===============================
   SECTION HEADINGS
=================================*/
.graph-container h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #111827;
    padding: 12px;
}
#graphs-content-wrapper span.text-sm {
    font-size: 14px;
}
/* ===============================
   WAGON WHEEL HEADER SECTION
=================================*/
#wagon-wheel-container h3 {
    margin-bottom: 0;
}
.wgnwheel-margin {
    margin: 16px 8px;
}

#wagon-wheel-container label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

#batsman-selector {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

/* ===============================
   WAGON STATS (Offside / Onside)
=================================*/
#wagon-wheel-stats {
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin: 0px 12px;
}
.wgnwhel-runs {
    font-size:25px;
}

#wagon-wheel-stats span {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}
#wagon-wheel-header div {
    font-size: 16px;
    font-weight: 500;
    font-family: 'bouldsemibold';
}

/* ===============================
   MANHATTAN LAYOUT & SIZING
=================================*/
.manhattan-graph-section {
    margin-top: 24px;
}

.manhattan-card-inner {
    padding: 20px 24px 24px;
}

.manhattan-title {
    margin-bottom: 1rem;
}

.manhattan-legend {
    margin-bottom: 1rem;
}

#manhattan-chart-wrapper.manhattan-chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 560px;
    padding: 0 20px;
    box-sizing: border-box;
}

#manhattan-chart-wrapper #manhattan-chart {
    display: block;
    max-width: 100%;
}

/* ===============================
   LEGEND (MANHATTAN)
=================================*/
#manhattan-legend {
    font-size: 13px;
    font-weight: 500;
}

#manhattan-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===============================
   MANHATTAN NAV BUTTONS
=================================*/
#manhattan-prev,
#manhattan-next {
    transition: all 0.2s ease;
    text-align: center;
    outline: 0;
    cursor: pointer;
    z-index: 1;
    background: #262626;
    width: 25px;
    height: 25px;
    border-radius: 100%;
    color: #fff;
    flex-shrink: 0;
}

#manhattan-prev:hover,
#manhattan-next:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ===============================
   INNINGS COMPARISON
=================================*/
#innings-comparison-container h3 {
    margin-bottom: 20px;
}

/* ===============================
   LOADING OVERLAY
=================================*/
#manhattan-loading {
    backdrop-filter: blur(2px);
}

/* ===============================
   ERROR BOX STYLING
=================================*/
#graphs-error {
    border-radius: 10px;
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 768px) {

    #graph-tabs-nav {
        gap: 16px;
    }

    .graph-tab-button {
        font-size: 13px;
    }

    #innings-selector {
        width: 100%;
    }

    .graph-container .bg-white,
    .manhattan-card-inner {
        padding: 16px 18px 18px;
    }

    .manhattan-graph-section {
        margin-top: 16px;
    }

    #manhattan-chart-wrapper.manhattan-chart-wrapper {
        min-height: 320px;
        height: 400px;
        padding: 0 12px;
    }

    #wagon-wheel-container canvas,
    #manhattan-chart,
    #innings-comparison-chart {
        max-width: 100% !important;
    }
}

.fallofwickets :{
    font-weight: 800 !important;
    color:#333 !important;
    margin-bottom:0 !important;
    font-size: 15px !important;
    line-height:1.5 !important;
}


.fallwicketsdata : {
    font-weight:400 !important;
    color:#333 !important;
}

/* RESPONSIVE SAFETY */
@media (max-width: 640px) {
    .match-info-row {
        flex-direction: column;
        gap: 4px;
    }
    .match-info-value {
        text-align: left;
        max-width: 100%;
    }
}


