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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0d1117;
  min-height: 100vh;
  color: #e6edf3;
  text-align: left;
}

/* Header styles */
.header {
  background: #161b22;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  flex: 1;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 5px;
}

.header p {
  color: #8b949e;
  font-size: 0.95rem;
}

.about-link {
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-link:hover {
  background: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
}

/* Control navigation */
.control-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  min-width: 0;
}
.control-nav a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #121416;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.control-nav a:hover { border-color: #58a6ff; color: #58a6ff; }

/* Footer styles */
.site-footer {
  background: #161b22;
  border-top: 1px solid #30363d;
  padding: 30px 40px;
  margin-top: 50px;
  text-align: center;
  color: #8b949e;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-timestamp {
  font-size: 0.9rem;
}

.footer-disclaimer {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-disclaimer a {
  color: #58a6ff;
  text-decoration: none;
}

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

/* Common layout styles */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.content-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 25px;
}

.back-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #e6edf3;
  font-weight: 700;
  margin-bottom: 15px;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.5rem;
  margin-top: 30px;
}

h3 {
  font-size: 1.3rem;
  margin-top: 25px;
}

p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #8b949e;
}

a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

code {
  background: #21262d;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: #e6edf3;
}

pre {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 15px;
  overflow-x: auto;
  margin: 15px 0;
}

pre code {
  background: none;
  padding: 0;
}

strong {
  color: #e6edf3;
}

ul, ol {
  margin: 15px 0;
  padding-left: 25px;
  color: #8b949e;
}

li {
  margin-bottom: 8px;
  line-height: 1.6;
}

hr {
  border: none;
  border-top: 1px solid #30363d;
  margin: 30px 0;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #30363d;
}

th {
  background: #161b22;
  color: #e6edf3;
  font-weight: 700;
}

tr:nth-child(even) {
  background: #161b22;
}

tr:nth-child(odd) {
  background: #0d1117;
}

/* Responsive design */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }
  
  .content-card {
    padding: 25px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
}
