/* 
* ShitRust Language Website
* Main Stylesheet
*/

:root {
  --primary: #d16969;
  --primary-light: #ff9797;
  --primary-dark: #a03c3c;
  --background: #2b2b2b;
  --background-light: #3c3c3c;
  --background-dark: #1a1a1a;
  --text: #ffffff;
  --text-muted: #cccccc;
  --code-bg: #353535;
  --code-border: #444444;
  --accent: #885a38;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 2rem 0 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: 4.2rem;
  margin-top: 0;
}

h2 {
  font-size: 3.2rem;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 6rem;
  height: 3px;
  background-color: var(--primary);
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.6rem;
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background-color: var(--background-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 4rem;
  height: 4rem;
  margin-right: 1rem;
}

.logo-text {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 3rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.4rem;
}

/* Hero section */
.hero {
  padding: 10rem 0;
  background: linear-gradient(to bottom, var(--background-dark), var(--background));
  text-align: center;
}

.hero-logo {
  width: 15rem;
  height: 15rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 2.2rem;
  max-width: 70rem;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.version-tag {
  display: inline-block;
  background-color: var(--primary-dark);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  margin-bottom: 3rem;
  letter-spacing: 0.05rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 4px;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  color: var(--text);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background-color: var(--primary);
}

/* Features section */
.features {
  padding: 8rem 0;
  background-color: var(--background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.feature-card {
  background-color: var(--background);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Code section */
.code-section {
  padding: 8rem 0;
}

.code-block {
  background-color: var(--code-bg);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--code-border);
  overflow-x: auto;
  margin: 2rem 0;
  position: relative;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--code-border);
}

.code-lang {
  color: var(--text-muted);
  font-size: 1.4rem;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.copy-btn:hover {
  color: var(--primary);
}

pre {
  margin: 0;
  padding: 0;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 1.4rem;
  line-height: 1.5;
}

code {
  font-family: 'Fira Code', 'Consolas', monospace;
  color: #e6e6e6;
}

/* Tabs */
.tabs {
  margin: 4rem 0;
}

.tab-header {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--code-border);
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.6rem;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Installation section */
.installation {
  padding: 8rem 0;
  background-color: var(--background-light);
}

/* Documentation section */
.documentation {
  padding: 8rem 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.doc-card {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
}

.doc-card h3 {
  margin-top: 0;
}

/* Community section */
.community {
  padding: 8rem 0;
  background-color: var(--background-light);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background-color: var(--background);
  border-radius: 50%;
  color: var(--text);
  font-size: 2.4rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--text);
  transform: translateY(-5px);
}

/* Footer */
footer {
  background-color: var(--background-dark);
  padding: 5rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-column {
  flex: 1;
  min-width: 20rem;
}

.footer-column h3 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--background-light);
  text-align: center;
  color: var(--text-muted);
}

/* Media queries */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 7rem;
    left: 0;
    width: 100%;
    background-color: var(--background-dark);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
}

/* Documentation Content Styles */
.documentation-content {
  padding: 60px 0;
}

.documentation-header {
  text-align: center;
  margin-bottom: 40px;
}

.documentation-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.doc-nav {
  background-color: var(--bg-light);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-nav li {
  margin-right: 20px;
  margin-bottom: 10px;
}

.doc-nav a {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  padding: 5px 0;
  position: relative;
}

.doc-nav a:hover {
  color: var(--primary-color);
}

.doc-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.2s;
}

.doc-nav a:hover::after {
  width: 100%;
}

.doc-content {
  line-height: 1.6;
}

.doc-content section {
  margin-bottom: 50px;
}

.doc-content h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.doc-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin: 25px 0 15px;
}

.doc-content h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 20px 0 10px;
}

.doc-content p {
  margin-bottom: 15px;
}

.doc-content ul,
.doc-content ol {
  margin: 15px 0;
  padding-left: 20px;
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content code {
  font-family: 'Fira Code', monospace;
  background-color: var(--code-bg);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

.api-table {
  overflow-x: auto;
  margin: 20px 0;
}

.api-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.api-table th {
  background-color: var(--primary-color);
  color: white;
  text-align: left;
  padding: 12px 15px;
  font-weight: 500;
}

.api-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.api-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

.tutorial-card {
  background-color: var(--bg-light);
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.tutorial-card .btn {
  margin-top: 15px;
}

.coming-soon {
  text-align: center;
  padding: 40px 0;
  background-color: var(--bg-light);
  border-radius: 6px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .doc-nav ul {
    flex-direction: column;
  }
  
  .doc-nav li {
    margin-right: 0;
  }
  
  .documentation-header h1 {
    font-size: 2rem;
  }
  
  .doc-content h2 {
    font-size: 1.6rem;
  }
  
  .doc-content h3 {
    font-size: 1.3rem;
  }
}

/* About page styles */
.about-card {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-profile {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--code-border);
}

.profile-img {
  margin-right: 2rem;
  color: var(--primary);
}

.profile-info h3 {
  margin-top: 0;
  color: var(--primary);
}

.profile-info p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.about-content h3 {
  color: var(--primary-light);
  margin-top: 2.5rem;
}

.social-links a {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  margin-top: 0;
  color: var(--primary-light);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tag {
  background-color: var(--background-dark);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 1.2rem;
  margin-right: 0.8rem;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.skills-container {
  margin-top: 2rem;
}

.skill-category {
  margin-bottom: 2rem;
}

.skill-category h3 {
  color: var(--primary-light);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  background-color: var(--background-light);
  padding: 1rem 2rem;
  border-radius: 8px;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-link i {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--primary);
}

.contact-link:hover {
  background-color: var(--background-dark);
  transform: translateY(-3px);
  text-decoration: none;
}

@media (max-width: 768px) {
  .about-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-img {
    margin-right: 0;
    margin-bottom: 2rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    flex-direction: column;
  }
  
  .contact-link {
    width: 100%;
    margin-right: 0;
  }
}

/* Examples page specific styles */
.example-explanation {
  background-color: var(--background-dark);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  border-left: 4px solid var(--primary);
}

.example-explanation h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.example-explanation ul {
  margin-bottom: 0;
}

.example-explanation li {
  margin-bottom: 0.8rem;
}

.example-explanation code {
  background-color: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
} 