/* FutChances — Custom styles (extracted from inline <style> block) */

/* SVG link overlay — makes the entire area around an <object>/<img> clickable */
a.svg-link {
    position: relative;
    display: inline-block;
}

a.svg-link:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Vertical-align SVG icons in tables and navbar */
td img.team-icon,
th img.team-icon,
.navbar img.team-icon {
    vertical-align: middle;
}

/* Card hover effect */
.custom-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Fixed navbar offset for main content */
.content-wrapper {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (max-width: 575.98px) {
    .content-wrapper {
        padding-top: 60px;
        padding-bottom: 70px;
    }
}

/* ----------------------------------------------------------------
   Mobile table scaling — fit data tables on narrow screens
   without horizontal scrolling, keeping text readable.
   ---------------------------------------------------------------- */

/* Phones (portrait): compact everything */
@media (max-width: 575.98px) {
    .table-sm th,
    .table-sm td {
        font-size: 0.7rem;
        padding: 0.15rem 0.2rem;
        white-space: nowrap;
    }

    /* Hide team logos in tables on mobile */
    .table-sm .team-icon {
        display: none;
    }

    /* Tighter container on mobile */
    .container {
        padding-left: 4px;
        padding-right: 4px;
    }

    /* Reduce heading sizes */
    h1 { font-size: 1.3rem; }
    h5 { font-size: 0.95rem; }

    /* Card content compact */
    .card-body { padding: 0.5rem; }
    .card-footer { padding: 0.4rem 0.5rem; }
}

/* Small tablets / large phones (landscape) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .table-sm th,
    .table-sm td {
        font-size: 0.78rem;
        padding: 0.2rem 0.25rem;
        white-space: nowrap;
    }

    .table-sm .team-icon {
        width: 16px;
        height: 16px;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .table-sm th,
    .table-sm td {
        font-size: 0.82rem;
        padding: 0.25rem 0.3rem;
    }
}

/* Hide sort arrows on mobile to save space */
@media (max-width: 767.98px) {
    .table-sm .seta {
        display: none;
    }
}
