/*
   Ricky Jagan - Portfolio Stylesheet
   Theme: Rust Game Console & Server CMD
   Colors: Rust Orange (#cd422b), Slate Dark (#0a0c0f), Terminal Green (#4ade80)
   No em dashes anywhere.
*/

:root {
  --rust-orange: #cd422b;
  --rust-orange-hover: #e0533c;
  --rust-dark: #0a0c0f;
  --rust-panel: #11141a;
  --rust-header: #171b22;
  --rust-border: #232936;
  
  --text-main: #e2e8f0;
  --text-muted: #8b949e;
  --text-dim: #545d68;
  
  --term-green: #4ade80;
  --term-cyan: #38bdf8;
  --term-yellow: #facc15;
  
  --font-mono: Consolas, "Courier New", "Lucida Console", Monaco, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--rust-dark);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle scanlines effect common in game consoles */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  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;
  z-index: 999;
}

.cmd-wrapper {
  max-width: 1120px;
  margin: 20px auto;
  padding: 0 16px;
}

/* Top Console Window Frame */
.console-window {
  background: var(--rust-panel);
  border: 1px solid var(--rust-border);
  border-top: 2px solid var(--rust-orange);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

/* Console Header Bar */
.console-title-bar {
  background: var(--rust-header);
  border-bottom: 1px solid var(--rust-border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.rust-logo-badge {
  background: var(--rust-orange);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}

.console-server-meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-online {
  color: var(--term-green);
}

/* Quick Command Tabs */
.quick-nav-bar {
  background: #0f1217;
  border-bottom: 1px solid var(--rust-border);
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-label {
  color: var(--text-dim);
  font-size: 11px;
  margin-right: 4px;
  text-transform: uppercase;
}

.cmd-pill {
  background: #191e28;
  color: var(--text-main);
  border: 1px solid var(--rust-border);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cmd-pill:hover, .cmd-pill.active {
  background: var(--rust-orange);
  border-color: var(--rust-orange);
  color: #ffffff;
}

.cmd-pill-alt {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--term-cyan);
}

.cmd-pill-alt:hover {
  background: var(--term-cyan);
  color: #000000;
}

/* Candidate Avatar Box - Sleek Circular Avatar */
.candidate-header-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.candidate-avatar-box {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--rust-orange);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 16px rgba(205, 66, 43, 0.35);
  flex-shrink: 0;
}

.candidate-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--term-green);
  border: 2px solid var(--rust-panel);
  border-radius: 50%;
}

.candidate-header-details {
  flex: 1;
  min-width: 280px;
}

/* Console Log & Content Area */
.console-body {
  padding: 20px 24px;
  color: var(--text-main);
  min-height: 550px;
}

.log-block {
  margin-bottom: 24px;
  border-left: 2px solid var(--rust-border);
  padding-left: 14px;
}

.log-block:hover {
  border-left-color: var(--rust-orange);
}

.prompt-line {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.prompt-user {
  color: var(--rust-orange);
}

.prompt-path {
  color: var(--term-cyan);
}

.prompt-char {
  color: #ffffff;
}

.command-text {
  color: #ffffff;
}

.content-box {
  color: var(--text-main);
}

.content-box h2 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.content-box h3 {
  font-size: 15px;
  color: var(--rust-orange-hover);
  margin-top: 14px;
  margin-bottom: 4px;
}

.content-box p {
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.6;
}

.content-box ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.content-box li {
  margin-bottom: 4px;
  color: #94a3b8;
}

.content-box li strong {
  color: #ffffff;
}

/* Terminal Tables */
.term-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.term-table th {
  text-align: left;
  background: #161b24;
  color: var(--text-muted);
  padding: 6px 10px;
  border: 1px solid var(--rust-border);
  font-weight: 700;
}

.term-table td {
  padding: 6px 10px;
  border: 1px solid var(--rust-border);
  color: #cbd5e1;
}

.term-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Code Snippet Blocks */
.term-code {
  background: #080a0d;
  border: 1px solid var(--rust-border);
  border-radius: 3px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: #a5f3fc;
  margin: 10px 0;
}

/* Status / Tags */
.status-tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid var(--rust-border);
  background: #141820;
  color: var(--text-muted);
}

.tag-orange {
  border-color: var(--rust-orange);
  color: var(--rust-orange-hover);
}

.tag-green {
  border-color: var(--term-green);
  color: var(--term-green);
}

.tag-cyan {
  border-color: var(--term-cyan);
  color: var(--term-cyan);
}

/* Command Prompt Input at the Bottom */
.console-input-bar {
  background: var(--rust-header);
  border-top: 1px solid var(--rust-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cli-prompt-label {
  color: var(--rust-orange);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.cli-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  width: 100%;
  outline: none;
}

.cli-input::placeholder {
  color: var(--text-dim);
}

.cli-help-tip {
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
}

/* Links inside terminal */
a.term-link {
  color: var(--term-cyan);
  text-decoration: underline;
}

a.term-link:hover {
  color: #ffffff;
}

/* Footer note */
.console-footer-info {
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .cmd-wrapper {
    margin: 8px auto;
    padding: 0 8px;
  }
  .console-body {
    padding: 14px;
  }
  .console-title-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .console-server-meta {
    flex-direction: column;
    gap: 4px;
  }
  .candidate-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
