/* ==================== JUNO WEBSITE STYLES ==================== */

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

/* ==================== COLOR PALETTE ==================== */
:root {
  --bg-outer: #0d121c;
  --bg-pageoid: #0d121c;
  --text-primary: #e7ebee;
  --accent-glow: #e7ebee;
  --accent-light: #84ba64;
  --code-bg: #0d121c;
  
  /* VSCode syntax colors */
  --syntax-keyword: #647e98;
  --syntax-type: #7fa7a8;
  --syntax-string: #a2bd8d;
  --syntax-number: #b48ead;
  --syntax-comment: #66738d;
  --syntax-function: #88c0d0;
}

/* ==================== BODY & LAYOUT ==================== */
body {
  background: var(--bg-outer);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 40px 20px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==================== GITHUB CORNER ==================== */
.github-corner {
  position: fixed;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  z-index: 1000;
}

.github-corner svg {
  fill: var(--accent-glow);
  color: var(--bg-outer);
  position: absolute;
  top: 0;
  border: 0;
  right: 0;
}

.github-corner:hover svg {
  fill: var(--accent-light);
}

/* ==================== MAIN TITLE ==================== */
.main-title {
  text-align: center;
  font-size: 4em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  text-align: center;
  font-size: 1.3em;
  color: var(--accent-glow);
  margin-bottom: 50px;
  font-weight: 300;
}

/* ==================== PAGEOID CONTAINER ==================== */
.pageoid {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-pageoid);
  border-radius: 25px;
  padding: 80px;
  box-shadow: 0 0 40px rgba(132, 186, 100, 0.4);
              0 0 60px rgba(132, 186, 100, 0.4);
}

/* ==================== NAVIGATION ==================== */
.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--accent-glow);
}

.nav a {
  color: var(--accent-glow);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent-light);
}

/* ==================== FEATURE SECTIONS ==================== */
.feature {
  margin: 50px 0;
  padding-top: 30px;
  border-top: 2px solid var(--accent-glow);
}

.feature:first-of-type {
  border-top: none;
  padding-top: 0;
}

.feature-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: var(--accent-glow);
}

.feature-desc {
  font-size: 1.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ==================== SECTIONS (for docs/other pages) ==================== */
.section {
  margin: 40px 0;
  padding: 30px;
  background: var(--code-bg);
  border-radius: 15px;
  border: 1px solid var(--accent-glow);
}

.section-title {
  font-size: 1.8em;
  color: var(--accent-glow);
  margin-bottom: 15px;
}

.section-content {
  font-size: 1.1em;
  color: var(--text-primary);
  line-height: 1.8;
}

/* ==================== CODE BLOCKS ==================== */
pre {
  background: var(--code-bg);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--accent-glow);
  overflow-x: auto;
  position: relative;
}

code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.95em;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Inline code */
code:not(pre code) {
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ==================== SYNTAX HIGHLIGHTING ==================== */
.kwd { color: var(--syntax-keyword); font-weight: bold; }
.type { color: var(--syntax-type); }
.str { color: var(--syntax-string); }
.num { color: var(--syntax-number); }
.comment { color: var(--syntax-comment); font-style: italic; }
.func { color: var(--syntax-function); }

/* ==================== COPY BUTTON ==================== */
.copy-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  background: var(--accent-glow);
  color: var(--bg-pageoid);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.copy-btn:active {
  transform: translateY(0);
}

/* ==================== LINK BUTTONS ==================== */
.link-btn {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--bg-pageoid);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 15px;
}

.link-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ==================== LINKS ==================== */
a:not(.nav a):not(.link-btn):not(.github-corner) {
  color: var(--accent-glow);
  text-decoration: none;
  transition: color 0.3s;
}

a:not(.nav a):not(.link-btn):not(.github-corner):hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ==================== LISTS ==================== */
ul, ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .pageoid {
    max-width: 900px;
    padding: 60px;
  }
}

@media (max-width: 768px) {
  .pageoid {
    padding: 40px;
    border-radius: 20px;
  }
  
  .main-title {
    font-size: 2.5em;
  }
  
  .hero-subtitle {
    font-size: 1.1em;
  }
  
  .feature-title {
    font-size: 1.5em;
  }

  .nav {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .pageoid {
    padding: 30px;
  }

  body {
    padding: 20px 10px;
  }
}
