/* Import Eurostile Unicase LT W04 Rg font */
@font-face {
    font-family: "Eurostile Unicase LT W04 Rg";
    src: url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.eot");
    src: url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.svg#Eurostile Unicase LT W04 Rg") format("svg");
}

/* Global text styling and box sizing */
* {
    text-transform: uppercase;
    box-sizing: border-box;
	font-weight: normal;
}

body {
    font-family: "Eurostile Unicase LT W04 Rg", sans-serif;
    background-color: #181818;
    color: white;
    margin: 0;
    padding: 0;
}

/* Header Container */
#container {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Children take full width */
    width: 100%;
    padding: 20px;
    text-align: center;
}

/* For desktop, restrict container width */
@media screen and (min-width: 769px) {
    #container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Logo container */
#logo-container {
    text-align: center;
    margin-top: 20px;
}

#logo {
    width: 180px; /* Increased logo size by 120% */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* Headline styling */
#latest-game-headline {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 20px;
    margin-bottom: -10px;
}

/* Sub-headline styling */
.sub-headline {
    font-size: 18px;
    opacity: 50%;
    margin-bottom: 10px;
}

/* Game date styling */
#game-date {
    font-size: 12px;
    background-color: #A657E7;
    padding: 5px 10px;
    display: inline-block;
    color: #fff;
    margin-top: 5px;
    margin-bottom: 20px;
}

/* Stats grid container (Desktop) */
/* 3 columns per row for 9 stat boxes; Game Points box spans all 3 columns */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.stat-box {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 15px 10px;
    text-align: center;
}

.stat-box .stat-title {
    font-size: 10px;
    opacity: 0.5;
    margin-bottom: 5px;
}

.stat-box .stat-value {
    font-size: 16px;
    font-weight: bold;
}

/* Game Points Box: spans all 3 columns */
.game-points-box {
    grid-column: span 3;
}

/* Inner layout for Game Points Box */
.game-points-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-points-title {
    width: 50%;
    text-align: left;
    opacity: 50%;
    font-size: 10px;
    padding-left: 20px;
}

.game-points-value {
    width: 50%;
    text-align: right;
    padding-right: 20px;
}

/* Container for event tables side by side */
.event-tables-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.event-section {
    flex: 1;
}

/* Table heading styling */
.table-heading {
    font-size: 14px;
    padding-top: 30px;
    text-align: center;
}

.table-header-l{
    text-align: left !important;
}

/* Event Table styling (common for desktop and mobile) */
.event-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    margin-bottom: 20px;
    line-height: normal;
}

.event-table th:nth-child(1),
.event-table td:nth-child(1) {
    width: 60%;
}

.event-table th:nth-child(2),
.event-table td:nth-child(2) {
    width: 40%;
}

.event-table th,
.event-table td {
    padding: 16px 10px;
    text-align: left;
}

.event-table th {
    background-color: #242424;
    border-bottom: 2px solid #A657E7;
    text-align: center;
}

.event-table tr:nth-child(even) {
    background-color: #242424;
}

.event-table tr:nth-child(odd) {
    background-color: #181818;
}

/* Ensure first column (names) is left aligned; others centered */
.event-table td.name-cell {
    text-align: left;
}

.event-table td:not(.name-cell) {
    text-align: center;
}

/* Style for "no records" messages */
.no-records {
    font-size: 75%;
    opacity: 0.5;
}

/* Back to Game Details link styling */
.back-link {
    font-size: 12px;
    text-decoration: none;
    color: white;
}

/* Footer styling */
.footer {
    padding-top: 10px;
    padding-bottom: 50px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Container: 10px padding on sides only */
    #container {
        padding: 10px;
        width: 100%;
    }
    #logo {
        width: 140px;
        margin: 0 auto 20px auto;
    }
    #logo-container {
        text-align: center;
        margin: 20px auto;
    }
    /* Adjust header text sizes on mobile */
    #latest-game-headline,
    h1, h2 {
        font-size: 16px;
    }
    .sub-headline {
        font-size: 12px;
        padding-top: 5px;
    }
    /* Event tables container remains full width and side-by-side */
    .event-tables-container {
        width: 100%;
        flex-direction: row;
    }
    /* Mobile table styling: 12px font size and normal line height */
    .event-table th,
    .event-table td {
        padding: 0 10px;
        font-size: 12px;
        line-height: 40px;
    }
    .event-table th {
        background-color: #242424;
    }
    .event-table tr:nth-child(even) {
        background-color: #242424;
    }
    /* Override mobile text alignment: first column left, second column centered */
    .event-table td:first-child {
        text-align: left !important;
    }
    .event-table td:nth-child(2) {
        text-align: center !important;
    }
}



/* ── Player Profile Section ───────────────────────────────────────────────── */
.player-profile {
  font-family: "Eurostile Unicase LT W04 Rg", sans-serif;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 15px 20px 10px 20px;              /* 20px left/right padding */
  text-align: left;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Flex container for info + arrow */
.player-profile .profile-body {
  display: flex;
  justify-content: space-between;  /* alias/name on left, arrow on right */
  align-items: center;             /* vertical centering */
  gap: 20px;
}

/* Left side: two lines, flush left */
.profile-info p {
  margin: 0 0 10px;
  font-size: 16px;
  color: #fff;
  opacity: 1;
  padding-left: 10px;
}

/* Labels in small uppercase at 50% opacity */
.profile-info p > title {
  display: block;
  font-size: 10px;
  opacity: 0.5;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: normal;
}

/* Arrow link */
.profile-arrow img {
  display: block;
  width: 32px;   /* adjust as needed */
  height: auto;
  margin-right: 20px;
}

/* ── Fix 80/20 Split & Ellipsis ──────────────────────────────────────────── */
.player-profile .profile-body {
  display: flex;
  align-items: center;
  /* remove justify-content: space-between so flex-basis takes effect */
  gap: 20px;
}

/* Left info = 80%, with overflow + ellipsis on the wrapper */
.player-profile .profile-body > .profile-info {
  flex: 0 0 75%;
  overflow: hidden;
}

/* Keep paragraphs truncating */
.player-profile .profile-info p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right arrow = 20% */
.player-profile .profile-body > .profile-arrow {
  flex: 0 0 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Remove that extra right margin */
.player-profile .profile-arrow img {
  margin: 0;
  max-width: 100%;
  height: auto;
}