/**
 * lottery.css
 * Styles for lottery balls and history lists.
 */

/* Number Balls */
.lotto-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.2rem;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  background: var(--color-ball-main);
}

.ball-bonus {
  background: var(--color-ball-bonus);
}

.ball-special {
  background: var(--color-ball-special);
  color: #7f1d1d;
}

.lotto-operator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 2.5rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* History List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.history-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .history-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.history-info {
  display: flex;
  flex-direction: column;
}

.history-info strong {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.history-info span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.history-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Generator List */
.generated-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.generated-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.generated-label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.generated-balls {
  display: flex;
  flex-wrap: wrap;
}

/* Compact History Table */
.compact-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compact-history-table th,
.compact-history-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compact-history-table th {
  background-color: var(--color-bg);
  font-weight: 600;
  color: var(--color-text-muted);
}

.compact-history-table tr:last-child td {
  border-bottom: none;
}

.compact-history-table tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.back-link-container {
  margin-bottom: 2rem;
}

.jackpot-container {
  margin-bottom: 2rem;
}

.latest-jackpot {
  color: var(--color-secondary);
}

