/* Project overrides — keeps the theme submodule untouched */

/* Accent color → blue */
:root {
  --maincolor: blue;
  --darkMaincolor: #4da3ff;
  /* Dotted divider (footer border-top + hr) was rebeccapurple; track the accent. */
  --bordercl: var(--maincolor);
}

/* About page — fake terminal block */
.terminal {
  margin: 2rem 0;
  border: 1px solid var(--bordercl, #333);
  border-radius: 8px; /* Slightly rounder corners for modern GNOME */
  background: #1e1e1e;
  color: #d4d4d4;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Classic GNOME drop shadow */
}

/* GNOME Adwaita Header Bar */
.terminal-bar {
  position: relative;
  display: flex;
  justify-content: flex-end; /* Push controls to the right */
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #303030; /* Dark grey header */
  border-bottom: 1px solid #1a1a1a;
  font-family: system-ui, -apple-system, sans-serif; /* System font for header */
}

/* Centered Header Title */
.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 0.9rem;
  color: #e2e2e2;
}

/* Window Controls Container */
.terminal-controls {
  display: flex;
  gap: 0.3rem;
}

/* Base button styling */
.terminal-controls span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* GNOME grey hover effect */
.terminal-controls span:hover {
  background: #4a4a4a;
}

/* Red hover state specifically for the Close button */
.terminal-controls .close:hover {
  background: #d33c44;
}

/* Drawing the Minimize icon (-) */
.terminal-controls .min::after {
  content: "";
  width: 10px;
  height: 1.5px;
  background: #fff;
}

/* Drawing the Maximize icon (square) */
.terminal-controls .max::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid #fff;
  border-radius: 1px;
}

/* Drawing the Close icon (X) */
.terminal-controls .close::before,
.terminal-controls .close::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.5px;
  background: #fff;
}
.terminal-controls .close::before {
  transform: rotate(45deg);
}
.terminal-controls .close::after {
  transform: rotate(-45deg);
}

/* Terminal Body */
.terminal-body {
  padding: 1rem 1.2rem;
  font-family: 'Courier New', Courier, monospace; /* Force terminal font */
}
.terminal-body p { margin: 0 0 0.3rem; }
.term-host { color: var(--darkMaincolor); font-weight: bold; }
.term-cmd { color: #fff; font-weight: bold; }
.term-out { color: #b5b5b5; padding-left: 1.5rem; margin-bottom: 1rem; }
.term-out a { color: var(--darkMaincolor); text-decoration: none; }
.term-out a:hover { text-decoration: underline; }

/* 404 page — big accent number, theme's "#" h1 prefix kept on-brand. */
.notfound h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.notfound-home {
  display: inline-block;
  margin-top: 1rem;
}

/* Text selection → accent */
@media (prefers-color-scheme: dark) {
  ::selection,
  ::-moz-selection {
    background: var(--darkMaincolor);
    color: #fff;
  }
  /* dark.css doesn't re-color the footer divider, so override --bordercl here too. */
  :root {
    --bordercl: var(--darkMaincolor);
  }
}

/* Social footer icons */
.soc {
  padding: 0 1rem;
  margin-right: 0;
}
.soc:first-child {
  padding-left: 0; /* keep the row flush-left with the content above */
}
.soc:last-child {
  margin-right: 1rem; /* gap before the © text — footer-info has no padding */
}

/* Code-block language badge. */
pre code[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0;
  right: 1rem;
  background: black;
  color: white;
  font-size: 12px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  border-radius: 0 0 0.25rem 0.25rem;
  text-transform: uppercase;
}