/* styles.css for wee.lat — Privacy-first, zero external dependencies */

:root {
  --bg: #f0f8ff;
  --card: #ffffff;
  --accent: #007bff;
  --muted: #6b7280;
  --maxw: 900px;
  --radius: 10px;
  --gap: 16px;
  color-scheme: light;
}

/* Use only system fonts — no external font requests */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: #0f1724;
  padding: 48px 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--maxw);
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 24px;
}

.site-title {
  color: var(--accent);
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--muted);
}

/* Search Section */
.search-section {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

#search-heading {
  margin: 0 0 12px;
  font-size: 20px;
  text-align: center;
}

.search-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid #e6eef9;
  border-radius: 8px;
  font-size: 16px;
  background: white;
}

.search-form button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.search-form button:hover {
  background: #0069d9;
}

.note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Sports Grid */
.thumbs {
  margin-top: 18px;
}

#sports-heading {
  margin: 0 0 12px;
  font-size: 20px;
}

.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
}

.grid li {
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grid li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.08);
}

.thumb {
  margin-bottom: 8px;
}

.grid strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 16px;
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* No results message */
#no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* Privacy Section */
.privacy {
  margin-top: 18px;
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.04);
}

#privacy-heading {
  margin: 0 0 10px;
  font-size: 20px;
}

.privacy-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-list li {
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 20px 12px;
  }

  .site-title {
    font-size: 22px;
  }

  .lead {
    font-size: 16px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input[type="search"] {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}