/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background ───────────────────────────────────────────── */
/* Layer order (bottom → top):
   1. Dark gradient (on body itself)
   2. Tile image  }  both stacked in ::after using multiple backgrounds
   3. Dark overlay}                                                      */
body {
  background: linear-gradient(45deg, #05060a 10%, #0b1220 40%, #11202b 70%, #152a36 100%);
  position: relative;
  isolation: isolate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url('https://coblasteus.neocities.org/images/blueland_cbl_tiles.png') center / cover,
    rgba(0, 0, 0, 0.55);
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  opacity: 0.30;
  z-index: -1;
  pointer-events: none;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(34, 34, 34, 0.85);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  height: 60px;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.navbar-logo img {
  width: auto;
  height: 40px;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255,255,255,0.25));
  transition: filter 0.2s ease;
}

.navbar-logo img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(52,152,219,0.6));
  transform: none;
}

.navbar-links a {
  color: #fff;
  margin-left: 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

.navbar-links a:hover { color: #3498db; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2 { margin-top: 20px; text-align: center; }
p, ul  { line-height: 1.6; margin-bottom: 1rem; }

/* ── General images ───────────────────────────────────────── */
img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

img:hover { transform: scale(1.05); }

/* Inline flag / emoji images */
img.inline-flag,
img.inline-emoji {
  display: inline-block;
  margin: 0 0 0 0.35em;
  vertical-align: text-bottom;
  width: 1.6em;
  height: 1.6em;
  border-radius: 3px;
}

/* ── Links ────────────────────────────────────────────────── */
a { color: #fff; text-decoration: none; }
a:hover { color: #3498db; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background-color: rgba(34, 34, 34, 0.9);
  text-align: center;
  width: 100%;
  padding: 12px 0;
}

/* ── Linktree button ──────────────────────────────────────── */
.linktree-section { text-align: center; margin-top: 30px; }

.linktree-button {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 15px 25px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.linktree-button:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

/* ── Main 2-column layout (index) ─────────────────────────── */
.main-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: auto;
  padding: 20px;
  gap: 30px;
}

.section-left, .section-right {
  flex: 1 1 0;
  min-width: 300px;
}

/* ── Info grid ────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem 1rem;
  max-width: 500px;
  margin: 1rem auto;
  text-align: left;
}

.grid strong { color: #3498db; }

/* ── Right section (OC showcase) ─────────────────────────── */
.section-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.promo-gallery img {
  max-width: 250px;
  margin: 10px auto;
  border-radius: 12px;
  box-shadow: none; /* keep transparent-bg images clean */
}

.funny-image img {
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.image-caption {
  text-align: center;
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 20px;
  color: #ddd;
  font-size: 0.9rem;
}

/* ── 404 page ─────────────────────────────────────────────── */
body.not-found {
  display: flex;
  flex-direction: column;
  /* animated gradient overrides the static one for this page only */
  background: linear-gradient(45deg, #0a0f1c, #1b2a47, #273c58, #314a6f);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

.not-found-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.not-found-container h1 { font-size: 48px; margin: 20px 0; font-weight: 700; }
.not-found-container p  { font-size: 18px; margin-bottom: 20px; line-height: 1.6; }

.not-found-container a {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.not-found-container a:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

.meme-image img {
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-top: 25px;
}

.meme-caption {
  text-align: center;
  font-style: italic;
  margin-top: 8px;
  color: #ddd;
  font-size: 0.9rem;
}

@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-container { flex-direction: column; }
  .section-left, .section-right { max-width: 100%; }
}