/* ==========================================
   🟢 GLOBAL DASHBOARD (538-STYLE)
   ========================================== */
.dashboard-container {
    padding: 0 10px;
}

.dashboard-intro {
    text-align: center;
    margin: -10px 0 30px 0;
    color: #888;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    /* This handles the responsiveness automatically */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* 🟢 The Card Container */
.tournament-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}



/* Card Typography */
.card-header { margin-bottom: 18px; }
.card-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ff5e2f;
    font-weight: 700;
    margin-bottom: 6px;
}
.card-title { font-size: 20px; margin: 0; font-weight: 800; color: #111; }
.card-subtitle { font-size: 12px; color: #999; margin-top: 2px; display: block; }

/* 🟢 Mini Table Styling */
.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes footer to bottom if cards have different heights */
}
.mini-table th {
    font-size: 10px;
    text-transform: uppercase;
    color: #bbb;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-weight: 700;
}

.mini-table th.txt-right {
    padding-left: 15px; /* Creates breathing room between long headers */
}

.txt-center { text-align: center !important; }

/* Also ensure the headers have decent padding if they wrap */
.mini-table th.txt-center {
    min-width: 75px;
    vertical-align: bottom;
    padding-bottom: 8px;
    line-height: 1.1;
}


.mini-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 14px;
}

.team-name { font-weight: 600; color: #333; }
.txt-right { text-align: right !important; }

/* The Probability Box */
.prob-box {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    min-width: 42px;
    text-align: center;
    font-size: 12px;
}

.card-footer {
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
}

.view-link {
    font-size: 13px;
    font-weight: 700;
    color: #0088cc;
    transition: color 0.2s;
}

/* 🟢 Only apply hover effects on devices with a mouse (fixes mobile sticky hover) */
@media (hover: hover) {
    .tournament-card:hover {
        transform: translateY(-5px);
        border-color: #ff5e2f;
        box-shadow: 0 12px 24px rgba(255, 94, 47, 0.1);
    }

    .tournament-card:hover .view-link {
        color: #ff5e2f;
    }
}

/* 🟢 Mobile Refinement */
@media screen and (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 15px;
    }

    .tournament-card {
        padding: 20px;
    }

    .card-title { font-size: 18px; }
}

/* Non-clickable panel for charts and static content */
.tournament-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}