/* ===== Crox Base Theme ===== */
:root {
  --bg: #0f1220;
  --card: #15183a;
  --accent: #6a7cff;
  --accent-soft: #242a6b;
  --text: #e9ebff;
  --muted: #aab0ff;
  --border: #2a2f7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;

  /* page transition */
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.page-loaded {
  opacity: 1;
}

/* ===== Navbar ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  margin-right: 16px;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Page Content ===== */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(106, 124, 255, 0.15);
}

/* ===== Ad Slots (inactive placeholders) ===== */
.ad-slot {
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
  padding: 20px;
  margin: 24px 0;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  margin-top: 60px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.socials a {
  margin-right: 12px;
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ===== Consent Banner ===== */
#consent-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#consent-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#consent-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#consent-banner button:hover {
  transform: scale(1.05);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links a {
    margin-right: 10px;
    font-size: 0.95rem;
  }

  main {
    margin: 24px auto;
  }

  .card {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
