/* Sandwell Aquatics Club - Results Website */
:root {
  --primary: #180301;       /* Black  */
  --secondary: #dd180b;    /* Red*/
  --accent: #ffd600;       /* Gold/yellow accent */
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #212121;
  --text-light: #616161;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.header {
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.header img {
  height: 60px;
  width: auto;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.header p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* Main content */
.main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Filter bar */
.filter-bar {
  margin-bottom: 1.5rem;
}

.filter-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.filter-bar input:focus {
  border-color: var(--secondary);
}

.filter-bar input::placeholder {
  color: #9e9e9e;
}

/* No results message */
.no-results {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  font-size: 1rem;
}

/* Year groups (collapsible) */
.year-group {
  margin-bottom: 1.5rem;
}

.year-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-group summary::-webkit-details-marker {
  display: none;
}

.year-group summary::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--secondary);
  transition: transform 0.2s;
}

.year-group[open] summary::before {
  transform: rotate(90deg);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--secondary);
  flex: 1;
}

/* Meet cards */
.meet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.meet-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-left: 4px solid var(--secondary);
}

.meet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.meet-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.meet-card .meet-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.meet-card .meet-location {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .meet-grid {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 0 1rem;
  }
}
