/* Terminal-specific styles for Nimbus Code Website */

.terminal-container {
  width: 90%;
  max-width: 1000px;
  height: 90vh;
  max-height: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  display: flex;
  flex-direction: column;
  background-color: var(--terminal-bg);
  border: 2px solid var(--terminal-border);
}

.terminal-header {
  background-color: var(--terminal-header);
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-title {
  font-weight: bold;
  text-transform: uppercase;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.control.minimize {
  background-color: #ffbd44;
}

.control.maximize {
  background-color: #00ca56;
}

.control.close {
  background-color: #ff605c;
}

.terminal-screen {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: var(--terminal-bg);
  font-size: 14px;
}

.terminal-content {
  padding-bottom: 20px;
}

.terminal-line {
  margin-bottom: 5px;
}

.prompt {
  color: #ffcc00;
  margin-right: 10px;
}

.command {
  color: white;
}

.output {
  color: var(--terminal-text);
}

.welcome-message {
  margin: 20px 0;
  text-align: center;
}

.ascii-art {
  color: var(--terminal-text);
  font-family: monospace;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 20px;
}

.blinking-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  font-weight: bold;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.main-nav {
  margin: 25px 0;
}

.main-nav ul {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.terminal-link {
  position: relative;
  padding: 2px 5px;
  color: var(--terminal-link);
  font-weight: bold;
}

.terminal-link:hover {
  text-decoration: none;
  color: var(--terminal-link-hover);
}

.terminal-link:before {
  content: '>';
  position: relative;
  left: -5px;
  opacity: 0;
  transition: opacity 0.3s, left 0.3s;
}

.terminal-link:hover:before {
  opacity: 1;
  left: -3px;
}

.terminal-section {
  margin: 30px 0;
  border-top: 1px dashed var(--terminal-border);
  padding-top: 20px;
}

.section-header {
  margin-bottom: 10px;
  font-weight: bold;
}

.section-content {
  padding-left: 15px;
  margin-top: 10px;
}

.directory-list {
  margin: 10px 0;
}

.directory-list li {
  margin-bottom: 5px;
}

.directory:before {
  content: "📁 ";
}

.file:before {
  content: "📄 ";
}

.tech-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.tech-category {
  flex: 1;
  min-width: 200px;
}

.tech-list li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

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

.tech-link {
  color: var(--terminal-text);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  display: inline-block;
  position: relative;
  padding-right: 15px;
}

.tech-link:after {
  content: "_";
  position: absolute;
  right: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.tech-link:hover {
  color: var(--terminal-link-hover);
  text-shadow: 0 0 5px rgba(255, 204, 0, 0.4);
}

.tech-link:hover:after {
  opacity: 1;
  animation: blink 1s step-end infinite;
}

.terminal-button {
  display: inline-block;
  margin-top: 15px;
  background-color: var(--terminal-button, #0f0);
  color: var(--terminal-text, #222);
  border: 1px solid var(--terminal-border, #0a0);
  padding: 8px 15px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.terminal-button.secondary {
  background-color: var(--terminal-bg, #222);
  color: var(--terminal, #0f0);
  border: 1px solid var(--terminal-border, #0a0);
}

.terminal-button:hover {
  background-color: var(--terminal-button-hover, #afa);
  color: var(--terminal-text-hover, #000);
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 255, 0, 0.2);
}

.terminal-button.secondary:hover {
  background-color: var(--terminal-bg-hover, #333);
  color: var(--terminal-text, #afa);
  box-shadow: 0 2px 5px rgba(0, 255, 0, 0.2);
}

.terminal-form {
  margin-top: 15px;
}

.terminal-input {
  width: 100%;
  background-color: var(--terminal-input);
  border: 1px solid var(--terminal-border);
  color: var(--terminal-text);
  padding: 8px;
  font-family: 'Courier New', monospace;
  margin-top: 5px;
}

.terminal-textarea {
  height: 120px;
  resize: vertical;
}

.terminal-footer {
  background-color: var(--terminal-bg);
  padding: 12px 15px;
  border-top: 1px solid var(--terminal-border);
  font-size: 12px;
  color: var(--terminal-text);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info {
  text-align: center;
  position: relative;
  padding-left: 15px;
}

.footer-info:before {
  content: "$";
  position: absolute;
  left: 0;
  color: #ffcc00;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 8px 0;
}

.footer-link {
  color: var(--terminal-link);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
  position: relative;
  padding-left: 12px;
}

.footer-link:before {
  content: ">";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s, left 0.2s;
}

.footer-link:hover:before {
  opacity: 1;
  left: 2px;
}

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

.footer-tech {
  text-align: center;
  font-size: 10px;
  font-family: 'Courier New', monospace;
  border-top: 1px dashed var(--terminal-border);
  padding-top: 8px;
  margin-top: 5px;
  color: #777;
}

/* Custom scrollbar */
.terminal-screen::-webkit-scrollbar {
  width: 8px;
}

.terminal-screen::-webkit-scrollbar-track {
  background: #111;
}

.terminal-screen::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.terminal-screen::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Add scan lines effect */
.terminal-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

/* CRT effect */
@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 0.9; }
  10% { opacity: 0.97; }
  15% { opacity: 1; }
  20% { opacity: 0.9; }
  25% { opacity: 0.95; }
  30% { opacity: 1; }
  35% { opacity: 0.95; }
  40% { opacity: 0.98; }
  45% { opacity: 0.95; }
  50% { opacity: 1; }
  55% { opacity: 0.98; }
  60% { opacity: 0.95; }
  65% { opacity: 1; }
  70% { opacity: 0.98; }
  75% { opacity: 0.95; }
  80% { opacity: 1; }
  85% { opacity: 0.9; }
  90% { opacity: 0.98; }
  95% { opacity: 0.95; }
  100% { opacity: 1; }
}

.terminal-container {
  animation: flicker 10s infinite;
}

/* Mentor Profile Styles */
.mentor-profile {
  margin: 25px 0;
  padding: 15px;
  border: 1px solid var(--terminal-border);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.mentor-header {
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--terminal-border);
}

.mentor-details h3 {
  color: #ffcc00;
  font-size: 1.3em;
  margin-bottom: 5px;
}

.mentor-title {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 15px;
}

.mentor-bio {
  margin-bottom: 20px;
}

.mentor-bio p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.mentor-specialties h4 {
  color: var(--terminal-link);
  margin-bottom: 10px;
}

.mentor-specialties .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.mentor-specialties .tech-list li {
  min-width: 120px;
}

/* Pathway Focus Styles */
.pathway-focus {
  margin: 25px 0;
  padding: 15px;
  border: 1px solid var(--terminal-border);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.pathway-header {
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--terminal-border);
}

.pathway-content h3 {
  color: #ffcc00;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.pathway-description {
  margin-bottom: 20px;
  line-height: 1.5;
}

.pathway-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.module {
  flex: 1;
  min-width: 200px;
  background-color: rgba(10, 10, 10, 0.5);
  padding: 15px;
  border-radius: 3px;
  border-left: 3px solid var(--terminal-link);
}

.module h4 {
  color: var(--terminal-link);
  margin-bottom: 10px;
  font-size: 1.1em;
}

.module-topics {
  list-style-type: none;
}

.module-topics li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

.module-topics li:before {
  content: ">";
  position: absolute;
  left: 0;
  color: #ffcc00;
}

.pathway-cta {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(50, 50, 50, 0.3);
  border-radius: 3px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pathway-cta:hover {
  background-color: rgba(70, 70, 70, 0.5);
}

.terminal-inline {
  display: inline;
}

/* Mentors Navigation Styles */
.mentors-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
}

.mentor-card {
  flex: 1;
  min-width: 280px;
  padding: 15px;
  border: 1px solid var(--terminal-border);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.mentor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.mentor-card-header {
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--terminal-border);
}

.mentor-card-content h3 {
  color: #ffcc00;
  font-size: 1.3em;
  margin-bottom: 5px;
}

.mentor-specialties-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.specialty-tag {
  background-color: rgba(51, 51, 51, 0.7);
  color: var(--terminal-text);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.9em;
  border: 1px solid var(--terminal-border);
}

.mentor-card-join {
  border-color: var(--terminal-link);
}

.mentor-nav-link {
  margin-top: 15px;
  padding: 10px 0;
}

.mentor-nav-link a {
  font-weight: bold;
}

.mentor-nav-link a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .pathway-modules {
    flex-direction: column;
  }
  
  .module {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .mentors-navigation {
    flex-direction: column;
  }
  
  .mentor-card {
    width: 100%;
    margin-bottom: 15px;
  }
}
