/* Boardscape Static Pages - Dark Mode Stylesheet */

/* CSS Variables - Dark Theme */
:root {
  --bg-primary: #1f2937;
  --bg-secondary: #111111;
  --bg-tertiary: #374151;
  --text-primary: #e5e7eb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  --border-color: #374151;
  --hover-bg: #4b5563;
  --card-bg: #1f2937;
  --shadow: rgba(0, 0, 0, 0.3);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.page-nav {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-brand:hover {
  color: var(--link-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--link-color);
}

/* Content Container */
.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1rem;
}

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

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

ul ul, ol ol, ul ol, ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Strong/Bold */
strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Code */
code {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: var(--bg-tertiary);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: var(--hover-bg);
}

/* Back Link */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Footer */
.page-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-contact {
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Keyboard Shortcuts Specific Styles */
.shortcuts-section {
  margin-bottom: 2rem;
}

.shortcut-category {
  margin-bottom: 2.5rem;
}

.shortcut-table {
  width: 100%;
}

.shortcut-keys {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  color: var(--link-color);
  white-space: nowrap;
}

.shortcut-description {
  color: var(--text-secondary);
}

/* Contact Info Styles */
.contact-email {
  color: var(--link-color);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-container {
    padding: 0 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1rem;
  }

  .content-container {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.5rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 1.25rem;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.4rem;
  }
}

/* Print Styles */
@media print {
  body {
    background-color: white;
    color: black;
  }

  .page-nav,
  .page-footer,
  .back-link {
    display: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  table {
    border: 1px solid black;
  }

  th, td {
    border: 1px solid black;
  }
}
