/* === WINDOWS 2000 GLOBAL === */
body {
  background: #008080; /* desktop teal */
  font-family: "Courier New", monospace;
  color: #000;
  margin: 0;
  padding: 40px 0;
}

/* === FAKE IE5 WINDOW === */
.ie-window {
  background: #d4d0c8;
  border: 2px solid #000;
  width: 850px;
  max-width: 95%;
  margin: 0 auto;
  box-shadow: 5px 5px 0 #404040;
  border-radius: 2px;
}

/* === TITLE BAR === */
.ie-titlebar {
  background: linear-gradient(to bottom, #000080 0%, #000060 100%);
  color: white;
  font-weight: bold;
  font-size: 13px;
  padding: 2px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  line-height: 18px;
  user-select: none;
}

.ie-buttons {
  display: flex;
  gap: 2px;
}

.ie-btn {
  width: 16px;
  height: 14px;
  background: #d4d0c8;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  cursor: pointer;
}
.ie-btn:active {
  border: 1px solid #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* === MENU BAR === */
.ie-menubar {
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 2px 5px;
  font-size: 12px;
  display: flex;
  gap: 10px;
  color: #000;
  user-select: none;
}
.ie-menubar span:hover {
  background: #000080;
  color: #fff;
  padding: 0 3px;
}

/* === ADDRESS BAR === */
.ie-addressbar {
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 4px 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ie-addressbar input {
  flex: 1;
  border: 2px inset #d4d0c8;
  font-family: inherit;
  padding: 1px 2px;
  background: #fff;
  color: #000;
}

/* === MAIN CONTENT === */
.wrapper {
  background: #ffffff;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 1.5rem 2rem;
}

/* === HEADER === */
header h1 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 0.3rem;
}
.tagline {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-bottom: 1.2rem;
}

/* === POSTS === */
.post {
  margin-bottom: 2rem;
}
.post h2 {
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 3px 6px;
  font-size: 1em;
}
.post p {
  background: #f8f8f8;
  border: 2px inset #d4d0c8;
  padding: 1rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* === FOOTER === */
footer {
  text-align: center;
  font-size: 0.8em;
  color: #333;
  border-top: 2px groove #d4d0c8;
  padding-top: 0.5rem;
  margin-top: 1.5rem;
}

/* === SECURITY BANNER === */
.security-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffe1;
  border: 2px groove #d4d0c8;
  color: #000;
  padding: 6px 12px;
  font-size: 0.9rem;
  display: none;
  z-index: 9999;
}
.security-banner.visible { display: block; }
.security-banner.fade-out { animation: fadeBanner 1s forwards; }
@keyframes fadeBanner {
  from { opacity: 1; }
  to { opacity: 0; display: none; }
}

/* === CREED POPUP (Windows 2000 ERROR BOX) === */
.xp-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  background: #d4d0c8;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #404040;
  font-size: 0.9rem;
  z-index: 10000;
  display: none;
  opacity: 0;
  animation: fadeInOut 2s ease forwards, shake 0.25s ease-in-out 0.2s;
}
.xp-popup-header {
  background: #000080;
  color: #fff;
  padding: 3px 6px;
  font-weight: bold;
  font-size: 0.9rem;
}
.xp-popup-body {
  padding: 12px;
  color: #000;
}
.xp-popup-body button {
  margin-top: 12px;
  float: right;
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 2px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.xp-popup-body button:active {
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
@keyframes fadeInOut {
  0% { opacity: 0; display: none; }
  10%, 70% { opacity: 1; display: block; }
  100% { opacity: 0; display: none; }
}
@keyframes shake {
  0%,100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 4px), -50%); }
  50% { transform: translate(calc(-50% + 4px), -50%); }
  75% { transform: translate(calc(-50% - 3px), -50%); }
}

/* === TERMINAL === */
.val-terminal {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 90%;
  background: #000;
  border: 2px inset #d4d0c8;
  color: #0f0;
  font-family: "Courier New", monospace;
  z-index: 10000;
  box-shadow: 3px 3px 0 #404040;
}
.val-terminal.show {
  display: block;
  animation: fadeIn 0.2s ease;
}
.terminal-header {
  background: #000080;
  color: white;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terminal-body {
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}
.terminal-input {
  background: #333;
  padding: 6px;
  display: flex;
  gap: 6px;
}
.terminal-input input {
  background: transparent;
  border: none;
  outline: none;
  color: #0f0;
  flex: 1;
}

/* === HINT === */
#terminal-hint {
  position: fixed;
  bottom: 10px;
  right: 20px;
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 3px 8px;
  font-size: 0.8rem;
  opacity: 0.9;
  animation: fadeHint 3s ease forwards;
}
@keyframes fadeHint {
  0%,70% { opacity: 0.9; }
  100% { opacity: 0; display: none; }
}
