/* Orion Alliance Wins — Static Export Stylesheet */

:root {
  --primary: #0d47a1;
  --secondary: #1976d2;
  --accent: #42a5f5;
  --text: #212121;
  --text-light: #424242;
  --border: #e0e0e0;
  --bg-light: #fafafa;
  --success: #388e3c;
  --spacing: 1rem;
  --radius: 4px;
}

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

html {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

body {
  background: #fff;
  color: var(--text);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Styles */
.header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

/* Metadata */
.meta {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Content Styles */
.content {
  line-height: 1.8;
  margin-bottom: 3rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

strong {
  font-weight: 600;
  color: var(--text);
}

em {
  font-style: italic;
}

a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

/* Code & Preformatted */
pre {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.9rem;
}

code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: #d73a49;
  background: var(--bg-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

pre code {
  color: var(--text);
  background: transparent;
  padding: 0;
}

/* Lists */
li {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

tr {
  border-bottom: 1px solid var(--border);
}

td,
th {
  padding: 0.75rem;
  text-align: left;
  border-right: 1px solid var(--border);
}

td:last-child,
th:last-child {
  border-right: none;
}

th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary);
}

/* Wins Grid (Index Page) */
.wins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.win-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  transition: all 0.3s ease;
}

.win-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
  transform: translateY(-2px);
}

.win-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.win-card a {
  color: var(--secondary);
  font-weight: 500;
}

.win-card a:hover {
  color: var(--primary);
}

.win-date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.win-kpi {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.read-more:hover {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

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

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--secondary);
}

.footer a:hover {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

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

@media (prefers-color-scheme: dark) {
  html {
    background: #121212;
  }

  body {
    background: #121212;
    color: #e0e0e0;
  }

  :root {
    --text: #e0e0e0;
    --text-light: #bdbdbd;
    --bg-light: #1e1e1e;
    --border: #424242;
  }

  .win-card {
    background: #1e1e1e;
  }

  pre {
    background: #1e1e1e;
    border-color: #424242;
  }

  code {
    background: #1e1e1e;
    color: #80cbc4;
  }

  th {
    background: #1e1e1e;
  }

  a {
    color: #64b5f6;
  }

  a:hover {
    color: #90caf9;
  }
}
