/* Stunning purple modern theme */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #a78bfa;
  --bg: #181028;
  --bg-light: #231942;
  --text: #f3e8ff;
  --card: #2d1856;
  --shadow: 0 4px 24px rgba(124,58,237,0.15);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

header {
  background: var(--primary-dark);
  padding: 2rem 0 1rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

header h1 {
  color: var(--accent);
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 2px;
}

nav {
  margin: 1rem 0;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

main {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
}

h2, h3 {
  color: var(--accent);
}

.card {
  background: var(--bg-light);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 2rem 0;
}

.advert {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0 0 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(124,58,237,0.18);
  letter-spacing: 1px;
}

.advert a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
  margin-left: 0.5rem;
}



pre {
  background: #1e133a;
  color: #e0c3fc;
  border-radius: 0.7rem;
  padding: 1.3rem 1.2rem 1.1rem 1.2rem;
  font-size: 1.08rem;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
  margin-bottom: 2.2rem;
  position: relative;
  box-shadow: 0 2px 16px rgba(124,58,237,0.10);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
  border: 1.5px solid #7c3aed33;
}

code {
  background: #231942;
  color: #e0c3fc;
  border-radius: 0.4rem;
  padding: 0.18em 0.5em;
  font-size: 1em;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

pre .copy-btn {
  position: absolute;
  top: 0.7rem;
  right: 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.2rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
}
pre .copy-btn:hover {
  background: var(--accent);
  opacity: 1;
}

@media (max-width: 600px) {
  main {
    padding: 1rem 0.5rem;
  }
  header h1 {
    font-size: 1.5rem;
  }
}
