﻿<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@500;700&display=swap" rel="stylesheet">

/* === BASE STYLES === */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #1a2a5b;
  line-height: 1.6;
}

h1 {
    text-align: center;
    color: navy;
   		/* margin-bottom: 5px; */
    margin-top: 5px;
  }

h2 {
      text-align: center;
      color: navy;
   		/* margin-bottom: 5px; */
      margin-top: 5px;
  }

/* === TABLE STYLES === */
table {
  /*  max-width: 1200px; */    /* limit it on very large screens */
  backdrop-filter: blur(3px);  /* soft blur behind it, optional but pretty */
  background-color: rgba(255, 255, 255, 0.5); /* white, 85% opacity */
  border-collapse: collapse;   /* Merges adjacent cell borders */
  border-radius: 12px;
  font-size: 1.05em;           /* slightly bigger text */
  margin: 5px auto;            /* center it */
  overflow: hidden;
  width: 100%;                 /* make the table take up most of the screen */
  border: none;		       /* just added to show no borders */	
  }

th {
  background-color: #1a2a5b;		/* #1a2a5b is very dark blue */
  color: white;
  letter-spacing: 0.05em;
  padding: 10px;
  text-transform: uppercase;
  text-align: center;
}

td {
  border-bottom: 1px solid #ccc;	/* #ccc is gray */
  color: navy;
  /* font-weight: bold; */
  padding: 10px;
  text-align: center;
  vertical-align: top; 			/* ensures content aligns to top */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Alternating rows */
table tr:nth-child(even) {
  background-color: rgba(240, 248, 255, 0.5); /* 240, 248, 255 light blue tint */
}
table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.5); /* 255, 255, 255 white */
}

/* Hover effect */
table tr:hover {
  background-color: rgba(159, 205, 245, 0.5); /* 173, 216, 230 light highlight */
  transition: background-color 0.3s ease;
}

/* === RESPONSIVE TABLE === */
@media screen and (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  tr { margin-bottom: 1rem; }
  th { display: none; }
  td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 10px;
    font-weight: bold;
    text-align: left;
  }
}

/* === CONDITIONAL ROW COLORS === */
.empate  { background-color: #FCF3CF; }
.ganado  { background-color: #5DADE2; color: white; }
.perdido { background-color: #FADBD8; }

.win  { background-color: #5DADE2; }
.draw { background-color: #FCF3CF; }
.loss { background-color: #FADBD8; }


/* === ADDITIONAL ELEMENTS === */
td img {
  max-height: 75px;
  border: none;
}

.team-name {
  /* font-weight: bold; */
  display: block;
  margin-bottom: 5px;
}

.icons img {
  width: 28px;
  margin: 4px;
}

hr {
  width: 25%;
  border: none;
  border-top: 1px solid navy;
  margin: 5px auto;
}

/* === ESCUDO FRAME === */
.escudo-frame {
  display: inline-block;
  border: 1px solid #004080;
  border-radius: 10px;
  padding: 2px;
  background-color: #f8f8f8;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* === SÍNTESIS LINK === */
a.sintesis-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #003366;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

a.sintesis-link:hover {
  background-color: #e6f0ff;
  border-color: #004080;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
  color: #001a4d;
}

.stats-container {
    max-width: 1000px;
    margin: 5px auto;
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: navy;
  }


