/* =========================
   Base Layout
========================= */

body {
  background: #111;
  color: #ddd;
  font-family: "Times New Roman", Times, serif;
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

a {
  color: #aaa;
  text-decoration: none;
}

a:hover {
  color: white;
}

a[target="_blank"] {
  font-size: 0.9rem;
}

/* =========================
   Navigation
========================= */

nav {
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #888;
}

nav a {
  color: #aaa;
}

nav a:hover {
  color: white;
}

/* =========================
   Typography
========================= */

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

p {
  line-height: 1.6;
}

/* =========================
   Interest Colors (Cards etc.)
========================= */

.nointerest { border-left: 4px solid #ff4d4d; }
.mild { border-left: 4px solid #e6c200; }
.slight { border-left: 4px solid #3cb371; }
.great { border-left: 4px solid #4aa3ff; }
.completed { border-left: 4px solid #b084f5; }

/* =========================
   Section Text
========================= */

.section-text {
  margin-bottom: 25px;
  color: #aaa;
}

/* =========================
   Generic Grid
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

/* =========================
   Card System
========================= */

.card {
  background: #181818;
  padding: 12px;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  border-radius: 6px;
}

.card h3 {
  margin: 8px 0 4px 0;
  font-size: 1rem;
  font-weight: normal;
}

.card p {
  font-size: 0.85rem;
  margin: 0;
  color: #aaa;
}

/* =========================
   Platform List
========================= */

.platform-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 500px;
  margin: 20px auto 0 auto;
}

.platform-list a {
  display: block;
  padding: 12px;
  background: #181818;
  border-radius: 6px;
  text-align: center;
  transition: background 0.15s ease;
}

.platform-list a:hover {
  background: #222;
}

/* =========================
   Favorites Grid (3x3)
========================= */

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 70%;
  margin: 20px auto 0 auto;
}

@media (max-width: 900px) {
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 85%;
  }
}

@media (max-width: 600px) {
  .favorites-grid {
    grid-template-columns: 1fr;
    max-width: 95%;
  }
}

.favorites-grid .card {
  overflow: hidden;
}

.favorites-grid .card img {
  transition: transform 0.3s ease;
}

.favorites-grid .card:hover img {
  transform: scale(1.05);
}

.favorites-grid .card h3 {
  font-size: 0.9rem;
  margin-top: 8px;
}

/* =========================
   External Link Button
========================= */

.external-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #181818;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.external-link:hover {
  background: #222;
}

/* =========================
   Books / Music Table
========================= */

.media-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  background: #181818;
  border: 1px solid #333;
}

.media-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: normal;
  color: #aaa;
  border: 1px solid #333;
  background: #151515;
}

.media-table td {
  padding: 12px 10px;
  border: 1px solid #333;
}

.media-table tr:hover td {
  background: #202020;
}

/* =========================
   Games Table
========================= */

.games-table {
  width: 100%;
  margin-top: 25px;
  border-collapse: collapse;
  background: #181818;
  border: 1px solid #333;
}

.games-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: normal;
  color: #aaa;
  border: 1px solid #333;
  background: #151515;
}

.games-table td {
  padding: 12px 10px;
  border: 1px solid #333;
}

.games-table tr:hover td {
  background: #202020;
}

/* Row Color Tint */

.games-table tr.completed td {
  background: rgba(176, 132, 245, 0.08);
}

.games-table tr.great td {
  background: rgba(74, 163, 255, 0.08);
}

.games-table tr.slight td {
  background: rgba(60, 179, 113, 0.08);
}

.games-table tr.mild td {
  background: rgba(230, 194, 0, 0.08);
}

.games-table tr.nointerest td {
  background: rgba(255, 77, 77, 0.08);
}

/* =========================
   Legend
========================= */

.legend {
  margin-top: 15px;
  margin-bottom: 15px;
}

.legend-item {
  display: inline-block;
  margin-right: 15px;
  font-size: 0.85rem;
  padding-left: 8px;
  border-left: 4px solid;
}

.legend-item.completed { border-color: #b084f5; }
.legend-item.great { border-color: #4aa3ff; }
.legend-item.slight { border-color: #3cb371; }
.legend-item.mild { border-color: #e6c200; }
.legend-item.nointerest { border-color: #ff4d4d; }

/* =========================
   Microblog
========================= */

.log-section {
  margin-top: 30px;
}

.log-entry {
  margin-bottom: 30px;
}

.log-date {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 6px;
}

/* =========================
   Sitemap
========================= */

.sitemap-tree {
  margin-top: 30px;
  font-family: monospace;
  line-height: 1.6;
  max-width: 800px;
}

.sitemap-tree div {
  white-space: pre;
}

.level-1 { margin-left: 20px; }
.level-2 { margin-left: 40px; }
.level-3 { margin-left: 60px; }

.sitemap-tree a {
  color: #aaa;
}

.sitemap-tree a:hover {
  color: white;
}