/* results.css */

/* General page styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f8;
  margin: 0;
  padding: 0;
  color: #333;
}

header, footer {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 15px 20px;
  text-align: center;
}

header h1, footer p {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

nav .nav-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav .nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav .nav-links li a:hover,
nav .nav-links li a.active {
  color: #ffd700;
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

#status {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #444;
}

/* Category block styles */
.category-block {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease;
}

.category-block:hover {
  transform: translateY(-3px);
}

.category-block h2 {
  margin-top: 0;
  color: #2a5298;
  font-size: 1.3rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table th, table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.95rem;
}

table th {
  background: #f0f2f5;
  font-weight: 600;
  color: #333;
}

table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Top 3 highlighting */
tr.first-place td {
  background-color: #ffd700;
  font-weight: bold;
}

tr.second-place td {
  background-color: #c0c0c0;
  font-weight: bold;
}

tr.third-place td {
  background-color: #cd7f32;
  font-weight: bold;
  color: #fff;
}
