/* Lyric Language - Stylesheet based on MiraNova design */

/* Basic reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 5px;
  background-color: #f5f5f5;
}

.container {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
  color: #333;
  font-size: 2rem;
  text-align: center;
}

h2 {
  color: #555;
  margin-top: 30px;
  font-size: 1.5rem;
}

h3, h4, h5, h6 {
  color: #555;
  margin-top: 20px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.logo {
  max-width: 100px;
  margin: 10px auto 10px auto;
}

/* Content */
.content {
  margin-top: 20px;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
  text-align: center;
}

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

li {
  margin-bottom: 0.5rem;
}

/* Code syntax highlighting */
.keyword {
  color: #007acc;
  font-weight: bold;
}

.keyword-def {
  color: #9C27B0; /* Purple for function definitions */
  font-weight: bold;
}

.keyword-type {
  color: #FF9800; /* Orange for type declarations */
  font-weight: bold;
}

.keyword-comment {
  color: #666; /* Gray for comments */
  font-style: italic;
}

/* Code */
code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
}

pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 14px;
  border: 1px solid #e0e0e0;
}

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

/* Prism.js code block styling overrides for light gray background */
pre[class*="language-"] {
  background-color: #f5f5f5 !important;
  border: 1px solid #e0e0e0;
}

code[class*="language-"] {
  background-color: transparent !important;
}

/* Ensure inline code has light gray background */
:not(pre) > code[class*="language-"] {
  background-color: #f5f5f5 !important;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Lyric type highlighting - dark orange */
.token.type {
  color: #FF6600 !important;
  font-weight: bold;
}

/* Additional Prism.js token styling for Lyric */
.token.keyword {
  color: #0077aa;
  font-weight: bold;
}

.token.function {
  color: #9C27B0;
}

.token.comment {
  color: #708090;
  font-style: italic;
}

.token.string {
  color: #22863a;
}

.token.number {
  color: #098658;
}

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

th, td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #007acc;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

/* Horizontal rule styling */
hr {
    margin: 0;
    border: none;
    border-top: 1px solid #999;
    padding-bottom: 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background: #007acc;
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: #005a9c;
  text-decoration: none;
}

/* Links section */
.links-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.link-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link-card:hover {
  border-color: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
}

.link-card h3 {
  margin-bottom: 0.5rem;
  color: #007acc;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 3px;
  }
  
  .container {
    padding: 10px;
    border-radius: 4px;
  }
  
  h1 {
    font-size: 1.75rem;
    text-align: center;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .logo {
    max-width: 250px;
  }
  
  .links-section {
    grid-template-columns: 1fr;
  }
  
  /* Reduce code font size on mobile */
  pre[class*="language-"],
  code[class*="language-"] {
    font-size: 12px !important;
  }
}

@media (max-width: 375px) {
  body {
    padding: 1px;
  }
  
  .container {
    padding: 5px;
  }
  
  h1 {
    font-size: 1.3rem;
  }
  
  h2 {
    font-size: 1rem;
  }
  
  .logo {
    max-width: 180px;
  }
  
  /* Reduce code font size on small mobile */
  pre[class*="language-"],
  code[class*="language-"] {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1px;
  }
  
  .container {
    padding: 8px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  .logo {
    max-width: 200px;
  }
  
  /* Reduce code font size on small mobile */
  pre[class*="language-"],
  code[class*="language-"] {
    font-size: 11px !important;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 20px;
  }
  
  .container {
    padding: 40px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}