/* 
 * Technology Pages Specific Styles
 * Terminal-inspired styling for technology documentation pages
 */

/* Tech Header */
.tech-header {
  margin: 30px 0;
  text-align: center;
  border-bottom: 1px dashed var(--terminal-border);
  padding-bottom: 15px;
}

.tech-header h1 {
  color: var(--terminal-text);
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.tech-logo {
  max-width: 80px;
  max-height: 80px;
  margin: 0 auto 15px auto;
  display: block;
}

.tech-type {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--terminal-link);
  margin-bottom: 10px;
}

/* Tech Sections */
.tech-section {
  margin: 30px 0;
  position: relative;
}

.tech-section h2 {
  color: #ffcc00;
  margin-bottom: 15px;
  border-left: 3px solid var(--terminal-link);
  padding-left: 10px;
}

.tech-section h3 {
  color: var(--terminal-link);
  margin: 20px 0 10px 0;
  font-size: 1.1rem;
}

.tech-content {
  padding-left: 15px;
  line-height: 1.6;
}

.tech-content p {
  margin-bottom: 15px;
}

/* Code Examples */
.code-example {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--terminal-border);
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
  overflow-x: auto;
  position: relative;
}

.code-example pre {
  font-family: 'Courier New', monospace;
  color: #f8f8f8;
  line-height: 1.4;
  tab-size: 2;
}

.code-example-title {
  position: absolute;
  top: -10px;
  left: 10px;
  background-color: var(--terminal-bg);
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--terminal-link);
}

.comment {
  color: #75715e;
}

.keyword {
  color: #f92672;
}

.string {
  color: #a6e22e;
}

.function {
  color: #66d9ef;
}

.number {
  color: #ae81ff;
}

/* Pros and Cons */
.pros-cons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.pros, .cons {
  flex: 1;
  min-width: 200px;
  padding: 15px;
  border-radius: 4px;
}

.pros {
  background-color: rgba(0, 100, 0, 0.2);
  border-left: 3px solid #00cc66;
}

.cons {
  background-color: rgba(100, 0, 0, 0.2);
  border-left: 3px solid #cc6666;
}

.pros h4, .cons h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.pros h4 {
  color: #00cc66;
}

.cons h4 {
  color: #cc6666;
}

/* Lists */
.tech-list, .pros-list, .cons-list {
  list-style-type: none;
  margin: 15px 0;
  padding-left: 20px;
}

.tech-list li, .pros-list li, .cons-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.tech-list li:before, .pros-list li:before, .cons-list li:before {
  position: absolute;
  left: 0;
}

.tech-list li:before {
  content: ">";
  color: #ffcc00;
}

.pros-list li:before {
  content: "+";
  color: #00cc66;
}

.cons-list li:before {
  content: "-";
  color: #cc6666;
}

/* Resources */
.resources-list {
  list-style-type: none;
  margin: 15px 0;
}

.resources-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.resources-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--terminal-link);
}

.resource-link {
  color: var(--terminal-link);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px dotted var(--terminal-border);
}

.resource-link:hover {
  color: var(--terminal-link-hover);
}

/* Related Technologies */
.related-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.related-tech-item {
  background-color: rgba(50, 50, 50, 0.3);
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.9rem;
  display: inline-block;
  color: var(--terminal-link);
  text-decoration: none;
  transition: background-color 0.2s;
}

.related-tech-item:hover {
  background-color: rgba(70, 70, 70, 0.5);
  color: var(--terminal-link-hover);
}

/* Return Home Link */
.return-tech {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--terminal-border);
}

.return-tech a {
  color: var(--terminal-link);
  text-decoration: none;
  transition: color 0.3s;
}

.return-tech a:hover {
  color: var(--terminal-link-hover);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tech-content {
    padding-left: 5px;
  }
  
  .tech-section h2 {
    font-size: 1.2rem;
  }
  
  .tech-header h1 {
    font-size: 1.5rem;
  }
  
  .pros-cons {
    flex-direction: column;
  }
}
