/* ===================================== */
/* RESET / BASELINE FIXES                */
/* ===================================== */

/* This makes sizing more predictable */
* {
  box-sizing: border-box;
}

/* Remove default browser spacing */
body {
  margin: 0;
  padding: 0;
}

/* ===================================== */
/* SITE-WIDE VARIABLES (EASY THEMING)    */
/* Change these to restyle the whole site */
/* ===================================== */

:root {
  --bg-color: #5C8A60;
  --text-color: #eaeaea;
  --accent-color: #8fd3ff;
  --muted-color: #999;
  --border-color: #333;

  --font-main: "Arial", sans-serif;
  --font-mono: "Courier New", monospace;
  --panel-bg: rgba(20, 40, 25, 0.75);   /* semi-transparent green */
  --panel-border: rgba(120, 255, 170, 0.35);
  --panel-glow: rgba(120, 255, 170, 0.45);
}

/* ===================================== */
/* GLOBAL TEXT + BACKGROUND              */
/* ===================================== */

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* ===================================== */
/* LINKS                                 */
/* ===================================== */

a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Hover effects = dopamine */
a:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

/* ===================================== */
/* HEADER                                */
/* ===================================== */

header {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(
    to bottom,
    #151515,
    #0e0e0e
  );
}

header h1 {
  margin: 0;
  letter-spacing: 2px;
  font-size: 2rem;
}

header p {
  color: var(--muted-color);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ===================================== */
/* MAIN CONTENT AREA                     */
/* ===================================== */

main {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
}

/* ===================================== */
/* CONTENT BOXES / PANELS                */
/* ===================================== */

.box {
  background-color: #151515;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 2rem;

  /* Soft shadow for depth */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* Box titles */
.box h2 {
  margin-top: 0;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

/* ===================================== */
/* LISTS (NAV, LINKS, ETC.)              */
/* ===================================== */

ul {
  list-style-type: "✦ ";
  padding-left: 1.5rem;
}

li {
  margin: 0.5rem 0;
}

/* ===================================== */
/* FOOTER                                */
/* ===================================== */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted-color);
  border-top: 2px solid var(--border-color);
  background: #111;
}

/* ===================================== */
/* SMALL SCREENS (PHONES)                */
/* ===================================== */

@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 1.5rem 1rem;
  }
}

/* ===================================== */
/* FUN OPTIONAL EXTRAS                   */
/* Uncomment to enable                  */
/* ===================================== */

/*
.glow {
  text-shadow:
    0 0 5px var(--accent-color),
    0 0 10px var(--accent-color);
}
*/

/*
.pixel {
  font-family: var(--font-mono);
}
*/
/* ===================================== */
/* LAYOUT WRAPPER                        */
/* Holds sidebar + main content          */
/* ===================================== */

.layout {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
  gap: 2rem; /* space between sidebar and content */
}

/* ===================================== */
/* SIDEBAR                               */
/* ===================================== */

.sidebar {
  width: 220px;
  min-width: 200px;
  background-color: #151515;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  height: fit-content;

  /* subtle depth */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

/* Sidebar list reset */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.sidebar li {
  margin-bottom: 0.75rem;
}

/* Sidebar links */
.sidebar a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  color: var(--text-color);
  transition: background 0.2s ease;
}

.sidebar a:hover {
  background-color: rgba(143, 211, 255, 0.1);
  text-decoration: none;
}

/* ===================================== */
/* MAIN CONTENT AREA (WITH SIDEBAR)      */
/* ===================================== */

.content {
  flex: 1; /* take remaining space */
}

/* ===================================== */
/* MOBILE FRIENDLY FALLBACK              */
/* Sidebar moves on top                  */
/* ===================================== */

@media (max-width: 800px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

/* ===================================== */
/* SHARED PANEL STYLE                    */
/* Semi-opaque, rounded, sparkly blocks  */
/* ===================================== */

.panel {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 1.5rem;

  /* soft glow */
  box-shadow:
    0 0 12px var(--panel-glow),
    inset 0 0 20px rgba(255, 255, 255, 0.04);

  /* subtle glass feel */
  backdrop-filter: blur(4px);
}
