/* MIRA Learn Pages - Shared Stylesheet */

/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: #04000b;
  color: #c1d1d6;
  font-family: 'Roboto', 'Avenir Next', 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.4rem;
  color: #0ff;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
}

h2 {
  font-size: 1.6rem;
  color: #0f0;
  filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.3));
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.25rem;
  color: #ff0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.3));
  margin-top: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #0f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ff0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.5));
}

/* Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.page-intro {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-intro p {
  font-size: 1.1rem;
  opacity: 0.85;
}

section {
  margin-bottom: 3rem;
}

/* Lists */
ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #0f0;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  opacity: 0.9;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Code */
code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 0, 0.1);
  color: #ff0;
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: #c1d1d6;
  font-size: 0.85rem;
  line-height: 1.5;
}

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

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  font-weight: 400;
  color: #0ff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Cards (for overview page links) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #c0f;
  filter: drop-shadow(0 0 12px rgba(204, 0, 255, 0.2));
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Collapsible sections (for technical details) */
details {
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 400;
  color: #0f0;
  transition: all 0.2s ease;
}

summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

details > div {
  padding: 1rem 1.25rem;
}

/* Footer */
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 24px 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

footer a {
  color: #c1d1d6;
}

footer a:hover {
  color: #0f0;
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .nav-home {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  main {
    padding: 140px 16px 60px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

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

