/* =========================
   CSS RESET & BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1115;
  --bg-alt: #151821;
  --text: #e6e8eb;
  --muted: #a2a8b3;
  --accent: #4da3ff;
  --border: #252a36;
  --radius: 10px;
  --max-width: 960px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

/* =========================
   GLOBAL ELEMENTS
   ========================= */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* =========================
   HEADER / NAV
   ========================= */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* =========================
   HERO / LANDING
   ========================= */
.hero {
  text-align: center;
  margin-top: 2rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* =========================
   SECTION BLOCKS
   ========================= */
.section {
  margin-top: 3.5rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.section p {
  color: var(--muted);
  max-width: 720px;
}

/* =========================
   CARD GRID (PROJECTS)
   ========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   PROJECT PAGE LAYOUT
   ========================= */
.project-page {
  max-width: 720px;
  margin: 0 auto;
}

.project-page h1 {
  margin-bottom: 0.5rem;
}

.project-page section {
  margin-top: 2.5rem;
}

/* =========================
   BUTTONS
   ========================= */
.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.button {
  background: var(--accent);
  color: #000;
}

.button:hover {
  opacity: 0.85;
  text-decoration: none;
}

.button-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* =========================
   SOCIAL ICONS (SVG)
   ========================= */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.social-links a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
}

/* =========================
   BLOG LIST
   ========================= */
.blog-list {
  margin-top: 2rem;
}

.blog-post {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-post h3 {
  margin-bottom: 0.25rem;
}

.blog-post span {
  color: var(--muted);
  font-size: 0.85rem;
}

.server-status {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.status {
  margin-top: 0.75rem;
  font-weight: 500;
}

.status.loading {
  color: var(--muted);
}

.status.online {
  color: #2da44e; /* green */
}

.status.offline {
  color: #d73a49; /* red */
}

/* =========================
   FOOTER
   ========================= */
footer {
  margin-top: 5rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
/* ---- Side Projects Layout ---- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--surface);
}

.project-card h2 {
  margin-top: 0;
}

.project-card.muted {
  opacity: 0.6;
}

/* ---- Minecraft Server Preview ---- */

.server-preview {
  margin: 1rem 0;
}

.status {
  font-weight: 600;
}

.status.loading {
  color: var(--muted);
}

.status.online {
  color: #2da44e;
}

.status.offline {
  color: #d73a49;
}

.player-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.player-list li {
  padding: 0.15rem 0;
  color: var(--text);
}

.player-list.empty {
  color: var(--muted);
  font-style: italic;
}
