/* Groovy Dark Theme with Neon Accents */

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-code: #252525;
  
  --accent-pink: #ff69b4;
  --accent-teal: #00d4aa;
  --accent-purple: #b347e6;
  --accent-cyan: #00d9ff;
  --accent-orange: #ff8c42;
  
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  --border-color: #3d3d3d;
  --link-hover-bg: rgba(255, 105, 180, 0.1);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #1f1f1f 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent-pink), var(--accent-teal), var(--accent-purple)) 1;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 1.8rem;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-teal), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.02em;
}

nav {
  margin-top: 0.75rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-teal));
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

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

h1 {
  font-size: 2.5rem;
  color: var(--accent-pink);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--accent-teal);
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-teal), var(--accent-purple));
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--accent-purple);
}

h4 {
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

/* Links */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

/* Lists */
ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

ul li::marker {
  color: var(--accent-teal);
}

ol li::marker {
  color: var(--accent-purple);
}

/* Code */
code {
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
  background-color: var(--bg-code);
  color: var(--accent-orange);
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

a code {
  background-color: #1a3a5c;
  color: #7dd3fc;
}

a:hover code {
  background-color: #3d1a2d;
  color: var(--accent-pink);
  text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

pre {
  background-color: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-teal), var(--accent-purple));
  border-radius: 8px 8px 0 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent-pink);
  background: linear-gradient(90deg, rgba(255, 105, 180, 0.1) 0%, transparent 100%);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontal Rule */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), var(--accent-purple), transparent);
  margin: 2.5rem 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-code);
  color: var(--accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

tr:hover {
  background-color: rgba(255, 105, 180, 0.05);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin: 1.5rem 0;
}

/* Strong and Emphasis */
strong {
  color: var(--accent-orange);
  font-weight: 600;
}

em {
  color: var(--accent-purple);
}

/* Selection */
::selection {
  background-color: rgba(255, 105, 180, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-purple));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-teal), var(--accent-cyan));
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 1.4rem;
  }
  
  nav a {
    margin-right: 1rem;
    font-size: 0.9rem;
  }
  
  main {
    padding: 2rem 1rem;
  }
  
  h1 {
    font-size: 1.9rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  pre {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  header {
    background: white;
    border-bottom: 2px solid #333;
  }
  
  a {
    color: #0066cc;
  }
  
  pre, code {
    background: #f4f4f4;
    border: 1px solid #ddd;
  }
}
