/* Core styling for OakLine */
body {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

/* Container to center content */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 15px;
}

/* Header bar */
header {
  background: #800020;  /* Oak System burgundy */
  color: #fff;
  padding: 10px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 {
  margin: 0;
  font-size: 1.5em;
}
header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
}
header nav a:first-child { margin-left: 0; }
header nav a:hover {
  text-decoration: underline;
}

/* Form elements */
form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: bold;
}
form input[type=text], form input[type=number],
form input[type=url], form input[type=password],
form textarea {
  width: 100%;
  padding: 8px;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 12px;
}
form textarea { height: 100px; }
form input[type=file] {
  margin: 4px 0 12px;
}
button {
  background: #800020;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 1em;
  border-radius: 3px;
  cursor: pointer;
}
button:hover {
  background: #5a0018;
}

/* Success and error messages */
.success-message {
  background: #e7f5e7;
  color: #2d662d;
  padding: 10px;
  border: 1px solid #2d662d;
  margin-bottom: 15px;
}
.error-messages {
  background: #fbe9e9;
  color: #8a1f1f;
  padding: 10px;
  border: 1px solid #8a1f1f;
  margin-bottom: 15px;
}
.error-messages ul { margin: 0; padding-left: 20px; }
.error-messages p { margin: 0; }

/* Leaderboard cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid #800020;
  padding: 15px;
}
.card h2 {
  margin-top: 0;
  color: #800020;
  font-size: 1.2em;
}
.card .meta {
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
}
.card .description {
  margin-bottom: 10px;
}
.card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* Filter form */
.filters {
  margin-bottom: 20px;
  font-size: 0.95em;
}
.filters select, .filters button {
  margin-right: 10px;
}
.clear-filter {
  text-decoration: none;
  color: #0066cc;
}
.clear-filter:hover {
  text-decoration: underline;
}

/* Admin entries */
.admin-entry {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
}
.admin-entry p {
  margin: 5px 0;
}
.admin-entry img {
  display: block;
  margin: 5px 0;
  border: 1px solid #ccc;
}
.admin-entry form {
  margin: 0;
}
.admin-entry button {
  /* Inherit main button styles; override if needed */
  margin-right: 5px;
  font-size: 0.9em;
  padding: 5px 10px;
}

/* Share code section on profile */
.share-code textarea {
  width: 100%;
  font-family: monospace;
  font-size: 0.9em;
  padding: 5px;
  box-sizing: border-box;
}
.share-code .note {
  font-size: 0.85em;
  color: #555;
}
