/* styles.css */

/* Color palette */
:root {
  --black:   #000000;
  --dark:    #111111;
  --gray:    #1a1a1a;
  --orange:  #ff6600;
  --white:   #ffffff;
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--dark);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 2px solid var(--orange);
}
.navbar .brand {
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: bold;
  margin-right: auto;
  text-decoration: none;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.navbar a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem;
  transition: background 0.2s;
}
.navbar a:hover,
.navbar a.active {
  background: var(--orange);
  color: var(--black);
  border-radius: 4px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Page title */
h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Table styling */
.table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--gray);
  color: var(--white);
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--dark);
}
th {
  background: var(--orange);
  color: var(--black);
  text-transform: uppercase;
  font-size: 0.9rem;
}
tr:nth-child(even) {
  background: var(--dark);
}
tr:hover {
  background: #2a2a2a;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: var(--black);
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.button:hover {
  opacity: 0.85;
}

/* Embedded video */
.video-wrapper {
  text-align: center;
  margin: 2rem 0;
}
.video-wrapper iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: none;
  border-radius: 4px;
}

/* Code snippet + copy button */
.code-block {
  position: relative;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 4px;
  font-family: Menlo, Monaco, Consolas, monospace;
  margin-bottom: 1rem;
}
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--orange);
  color: var(--black);
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.copy-btn:hover {
  opacity: 0.85;
}

/* Footer */
footer {
  background: var(--orange);
  color: var(--black);
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
footer a {
  color: var(--black);
  text-decoration: underline;
}

/* Utility helpers */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
