/*!
 * Football Pool WordPress plugin
 *
 * @copyright Copyright (c) 2026 Antoine Hurkmans
 * @link https://wordpress.org/plugins/football-pool/
 * @license https://plugins.svn.wordpress.org/football-pool/trunk/LICENSE
 */

@import "variables";

//noinspection SassScssResolvedByNameOnly
table.matchinfo {
  border-spacing: 0 .25rem;
  border-collapse: separate;
  border: none;
  width: 100%;
  max-width: 700px;

  td a {
    text-decoration: none;
  }

  td a:hover {
    text-decoration: underline;
  }

  td {
    padding: 0 .2rem .1rem 0;
    border: none;
    font-size: .9rem;
  }

  .matchdate {
    color: #fff;
    background-color: #ccc;
    font-weight: bold;
    font-size: .8rem;
    line-height: 1.8rem;
    vertical-align: middle;
  }

  td.flag {
    text-align: center;
  }

  td.time {
    text-align: left;
    font-size: .7rem;
    padding-left: 1rem;
  }

  td.home {
    text-align: right;
    padding-right: .5rem;
  }

  td.away {
    text-align: left;
    padding-left: .5rem;
  }

  td.score {
    text-align: center;
    font-weight: bold;
    padding: 0 .5rem;
  }

  td.user-score {
    padding: 0 .5rem;
    min-width: 2.5rem;
  }

  .fp-joker {
    background-image: url(../images/match-table-classic/ball_over.jpg);
    background-repeat: no-repeat;
    cursor: pointer;
    min-width: 30px;
    min-height: 20px;
    display: inline-block;
  }

  .fp-nojoker {
    background-image: url(../images/match-table-classic/ball.jpg);
    background-repeat: no-repeat;
    cursor: pointer;
    min-width: 30px;
    min-height: 20px;
    display: inline-block;
  }

  .fp-joker.joker-ajax-loader, .fp-nojoker.joker-ajax-loader {
    background-image: url(../images/match-table-classic/joker-ajax-loader.gif);
    background-size: 20px 20px;
  }

  .closed .fp-joker, .matchinfo .closed .fp-nojoker, .fp-joker.readonly, .matchinfo .fp-nojoker.readonly {
    cursor: default;
  }

  td.matchstats {
    text-align: right;
    vertical-align: middle;

    a {
      -webkit-box-shadow: none;
      box-shadow: none;
      text-decoration: none;

      img {
        min-width: 36px;
        max-height: $pie-chart-icon-size;
        -webkit-box-shadow: none;
        box-shadow: none;
      }
    }
  }

  th {
    color: #fff;
    background-color: #000;
    font-weight: bold;
    font-size: .8rem;
    line-height: 1.8rem;
    vertical-align: middle;
  }

  th.username {
    max-width: 200px;
  }

  tr.linked-question td {
    padding: 5px 0 5px;

    div {
      border: none;
    }
  }

  td.match-hyphen {
    text-align: center;
  }
}

table.prediction-table-questions a, .match-table a {
  text-decoration: none;
}

table.prediction-table-questions a:hover, .match-table a:hover {
  text-decoration: underline;
}

//noinspection SassScssResolvedByNameOnly
@media ( max-width: $mobile-width ) {
  // match and prediction table
  table.matchinfo {
    border-spacing: 0 20px;
    border-collapse: separate;
    max-width: 90%;

    td.home, td.away { font-size: 125%; padding: 0 2px; }
    td.time, td.flag { display: none; }
    td.matchtype { font-size: 140%; }
  }
}
