/* Table Styles */
.listing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.listing-table th,
.listing-table td {
  padding: 8px;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.listing-table th {
  background-color: #f5f5f5;
  font-weight: bold;
  text-align: left;
}

/* Cell-specific styles */
.image-cell {
  width: 120px;
  text-align: center;
}

.image-cell a {
  display: inline-block;
  cursor: pointer;
}

.image-cell img:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.listing-image {
  max-width: 100px;
  max-height: 75px;
  object-fit: contain;
}

.device-type {
  white-space: nowrap;
  text-align: center;
}

.device-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 4px;
}

.device-link:hover {
  background-color: #f0f0f0;
  border-radius: 4px;
}

.price-cell {
  white-space: nowrap;
  text-align: right;
}

.score-cell {
  text-align: center;
  white-space: nowrap;
  min-width: 90px;
}

.price-score-cell {
  min-width: 100px;
  padding: 8px;
}

.score-wrapper {
  background: #f0f0f0;
  border-radius: 4px;
  height: 20px;
  position: relative;
  overflow: hidden;
}

.score-bar {
  background: linear-gradient(90deg, #28a745 0%, #34ce57 100%);
  height: 100%;
  transition: width 0.3s ease;
}

.score-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 0 0 2px white;
  z-index: 1;
}

.score-emoji {
  display: inline-block;
  margin-left: 4px;
}

.games-cell {
  min-width: 280px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.game-info {
  padding: 2px 0;
  border-bottom: 1px solid #eee;
}

.game-info:last-child {
  border-bottom: none;
}

.date-cell {
  white-space: nowrap;
  font-size: 13px;
}

/* Row styles */
tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Page styles */
h1 {
  margin: 20px 0;
  font-size: 24px;
}

/* Filter styles */
.filters {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-form {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-weight: bold;
  color: #555;
}

.filter-group input[type="number"] {
  width: 100px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-group select {
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 150px;
}

.filter-form button {
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.filter-form button[type="submit"] {
  background: #28a745;
  color: white;
}

.filter-form button[type="reset"] {
  background: #6c757d;
  color: white;
}

.filter-form button:hover {
  opacity: 0.9;
}

/* Status styles */
.status-cell {
  text-align: center;
  white-space: nowrap;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 13px;
}

.status-badge.active {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.status-badge.inactive {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.location-input {
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 200px;
  font-size: 14px;
}

.location-input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.price-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

table.listing-table td {
  vertical-align: middle;
}

.header {
    margin-bottom: 2rem;
    text-align: center;
}

.header a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.header a:hover {
    opacity: 0.8;
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.site-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
} 