/* ===========================================================
   Gamecenter Schedule — Borderless Modern Look
   =========================================================== */
.gamecenter-schedule table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1em 0;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Header */
.gamecenter-schedule th {
    background: #003366;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 8px;
    text-align: center;
}

/* Table cells */
.gamecenter-schedule td {
    border: none;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

/* Row dividers */
.gamecenter-schedule tr {
    border-bottom: 1px solid #f0f2f5;
    line-height: 1.3;
    transition: background-color 0.2s ease;
}

.gamecenter-schedule tr:last-child {
    border-bottom: none;
}

/* Alternate row shading */
.gamecenter-schedule tr:nth-child(even) {
    background-color: #f9fbfd;
}

/* Team name layout */
.gamecenter-schedule .team-name {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

/* Show full name by default, hide logo */
.gamecenter-schedule .team-fullname {
    display: inline;
}
.gamecenter-schedule .team-short {
    display: none;
}
.gamecenter-schedule .team-logo {
    display: none;
}

/* Tournament row styling */
.gamecenter-schedule .tournament-cell {
    text-align: left;
    font-style: italic;
    color: #333;
    background: none;
}

/* Highlight ERC Ingolstadt — light blue */
.gamecenter-schedule .team-name[data-shortname*="ERC Ingolstadt"],
.gamecenter-schedule tr.highlight-team {
    background-color: #e6f2ff !important;
    font-weight: 600;
}

/* Last updated */
.gamecenter-schedule .last-update {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
    margin-top: 5px;
    text-align: right;
}

/* Disable hover effects */
.gamecenter-schedule tbody tr:hover {
    background: none;
}

/* ===========================================================
   Responsive (Mobile)
   =========================================================== */
@media (max-width: 768px) {
  .gamecenter-schedule table {
    font-size: 0.85rem;
  }

  .gamecenter-schedule td,
  .gamecenter-schedule th,
  .gamecenter-schedule .team-name {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Hide full names on mobile */
  .gamecenter-schedule .team-fullname {
    display: none !important;
  }

  /* Show short names */
  .gamecenter-schedule .team-short {
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    color: #333;
  }

  /* Tooltip for full name */
  .gamecenter-schedule .team-short::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    font-size: 0.8em;
    z-index: 10;
  }

  .gamecenter-schedule .team-short:hover::after,
  .gamecenter-schedule .team-short:active::after {
    opacity: 1;
  }

  /* Compact padding */
  .gamecenter-schedule th,
  .gamecenter-schedule td {
    padding: 6px 5px;
  }
}
