//
// 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
//

div.ranking {
  border: 1px solid #000;
  padding: .25em;
  margin: 0 2em 2em 0;
  width: 100%;
  max-width: 300px;
  //float: left;

  h2 {
    margin: .2em 0;
    padding: 0;
  }
}

table.ranking {
  border: none;
  border-collapse: collapse;
  width: 100%;

  th {
    text-align: center;
    font-weight: normal;
    font-style: italic;
    border-bottom: 1px solid #000;
  }

  td {
    padding: .1em .5em;
    font-size: 80%;
  }

  td.plays, td.points {
    font-size: 90%;
  }
}

.group-ranking {
  th.wins, td.wins, th.draws, td.draws, th.losses, td.losses {
    background-color: #ddd;
  }

  th.plays, td.plays, th.points, td.points {
    background-color: #ccc;
  }

  th.team, td.team, th.goals, td.goals {
    background-color: #e1dfdf;
  }

  td.goals, th.goals {
    font-size: .6em;
    padding: .1em .2em;
  }

  th.team, th.points, td.points, th.plays, td.plays {
    font-weight: bolder;
  }

  td.team, th.team {
    width: 45%;
  }
}

// group ranking in a widget
li.widget div.football-pool-widget div.ranking {
  float: none;
  border: none;
  width: auto;
  padding-left: .5em;

  h2 {
    display: none;
  }

  th {
    font-size: 80%;
  }
}

// group ranking as shortcode
div.entry div.ranking.shortcode {
  float: none;
}
