/* Custom styles for resources and script pages */

/* Full width container for better content display */
.main-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  margin-top: 40px !important;
  padding: 40px 120px 20px 120px !important;
}

/* Code container styling */
.code-container {
  margin: 30px 0;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #333;
}

.code-container h2 {
  margin-top: 0;
  color: #5F3E8E;
  text-align: left !important;
}

.code-container pre {
  margin: 0;
  padding: 20px;
  background: #0d1117;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.code-container code {
  color: #c9d1d9;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Script page specific styling */
.script-intro {
  margin-bottom: 40px;
}

.script-intro h2 {
  color: #5F3E8E;
  text-align: left !important;
  margin-bottom: 15px;
}

.script-intro ul {
  list-style-type: disc;
  padding-left: 20px;
}

.script-intro li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.script-notes {
  margin: 30px 0;
  background: rgba(95, 62, 142, 0.1);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #5F3E8E;
}

.script-notes h2 {
  margin-top: 0;
  color: #5F3E8E;
  text-align: left !important;
}

.script-notes ul {
  list-style-type: disc;
  padding-left: 20px;
}

.script-notes li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Navigation links styling */
.navigation-links {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #333;
}

/* Override center alignment for headings in these pages */
.main-container h1 {
  text-align: left !important;
  margin-bottom: 30px !important;
}

.main-container h2 {
  text-align: left !important;
  margin-bottom: 20px !important;
}

/* Responsive adjustments */
@media screen and (max-width: 884px) {
  .main-container {
    max-width: 100% !important;
    padding: 120px 20px 20px 20px !important;
    margin-top: 0 !important;
  }

  .code-container pre {
    font-size: 12px;
    padding: 15px;
  }
}

/* Syntax highlighting improvements */
.token.comment { color: #6a737d; }
.token.string { color: #032f62; }
.token.keyword { color: #d73a49; }
.token.function { color: #6f42c1; }
.token.operator { color: #d73a49; }
.token.variable { color: #e36209; }
.token.parameter { color: #24292e; }

/* PowerShell specific syntax highlighting */
.language-powershell .token.comment { color: #6a9955; }
.language-powershell .token.string { color: #ce9178; }
.language-powershell .token.keyword { color: #569cd6; }
.language-powershell .token.function { color: #dcdcaa; }
.language-powershell .token.operator { color: #d4d4d4; }
.language-powershell .token.variable { color: #9cdcfe; }

/* Services grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.service-item {
  background: rgba(95, 62, 142, 0.1);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #5F3E8E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(95, 62, 142, 0.3);
}

.service-item h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #5F3E8E;
}

.service-item h3 a {
  text-decoration: none;
  color: #5F3E8E;
}

.service-item h3 a:hover {
  color: lightseagreen;
}

.service-item p {
  margin-bottom: 0;
  line-height: 1.6;
}

.service-cta {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: rgba(95, 62, 142, 0.1);
  border-radius: 8px;
  border: 2px solid #5F3E8E;
}

.service-cta h2 {
  margin-top: 0;
  color: #5F3E8E;
}

.service-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* Responsive adjustments for services grid */
@media screen and (max-width: 884px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-item {
    padding: 20px;
  }
  
  .service-cta {
    padding: 30px 20px;
  }
}