/* Caleb's section styles — assets/caleb/caleb.css
 *
 * This stylesheet loads ONLY on Caleb's pages (/caleb and /caleb/<slug>),
 * on top of the site's shared styles (assets/site.css, which Caleb's
 * branches cannot change). Caleb and his agents may put anything here on a
 * caleb/* branch: restyle his cards, add classes for new layouts built in
 * src/caleb/pages.mjs, experiment freely — a mistake here can only affect
 * Caleb's own pages, never the rest of the site.
 *
 * House style for this file: prefix new class names with `caleb-` so they
 * can never collide with the shared site styles.
 */

/* Red theme for Caleb's section (this file only loads on his pages) */
.gradient-text {
  background: linear-gradient(135deg, #ff4d6d, #c41e3a, #8b0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge {
  background: #c41e3a;
  color: #fff;
}

.button.primary {
  background: #c41e3a;
  border-color: #8b0000;
}

.button.primary:hover {
  background: #8b0000;
}

.card {
  border-color: rgba(196, 30, 58, 0.35);
}

.section.elevated {
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.08), transparent);
}

/* Notice box */
.caleb-notice {
  background: linear-gradient(135deg, #c41e3a, #8b0000);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
  border: 2px solid #ff4d6d;
}

.caleb-notice-line {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.caleb-notice a {
  color: #fff;
  text-decoration: underline;
}

/* Project logo (top of a project page; only projects with a logo record) */
.caleb-project-logo {
  margin: 0;
  padding: 2rem 1rem 0.5rem;
  text-align: center;
}
.caleb-project-logo img {
  display: block;
  width: min(320px, 78vw);
  height: auto;
  margin: 0 auto;
}

/* Codes list (project pages whose record carries codes) */
.caleb-codes code {
  background: rgba(196, 30, 58, 0.15);
  border: 1px solid rgba(196, 30, 58, 0.45);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---- Arcade section: retro neon / dark / pixel-ish ---- */

.caleb-arcade {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 0, 128, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 255, 200, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #0a0a12 0%, #12121c 40%, #0d0d14 100%);
  color: #e8e0f0;
  border-top: 1px solid rgba(0, 255, 200, 0.25);
  border-bottom: 1px solid rgba(255, 0, 128, 0.2);
  position: relative;
  overflow: hidden;
}

.caleb-arcade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  pointer-events: none;
  z-index: 0;
}

.caleb-arcade .wrap {
  position: relative;
  z-index: 1;
}

.caleb-arcade-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.caleb-arcade-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #00ffc8;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.6);
}

.caleb-arcade-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  background: linear-gradient(90deg, #ff2d95, #00ffc8, #a855f7, #ff2d95);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: caleb-neon-shift 6s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255, 45, 149, 0.4));
}

@keyframes caleb-neon-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.caleb-arcade-sub {
  color: #a89bb8;
  margin: 0;
  font-size: 1.05rem;
}

.caleb-arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.caleb-arcade-card {
  background: rgba(18, 16, 28, 0.9);
  border: 1px solid rgba(0, 255, 200, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 45, 149, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.caleb-arcade-card:hover {
  border-color: rgba(0, 255, 200, 0.45);
  box-shadow:
    0 0 24px rgba(0, 255, 200, 0.15),
    0 0 48px rgba(255, 45, 149, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.caleb-arcade-card .badge {
  background: rgba(0, 255, 200, 0.15);
  color: #00ffc8;
  border: 1px solid rgba(0, 255, 200, 0.35);
  letter-spacing: 0.06em;
}

.caleb-arcade-card .badge.muted {
  background: rgba(168, 155, 184, 0.12);
  color: #a89bb8;
  border-color: rgba(168, 155, 184, 0.25);
}

.caleb-arcade-kind {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff2d95;
  margin: 0.6rem 0 0.25rem;
  text-shadow: 0 0 8px rgba(255, 45, 149, 0.5);
}

.caleb-arcade-card h2 {
  color: #f0e8ff;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.caleb-arcade-card p {
  color: #b8aec8;
}

.caleb-arcade-card .text-link {
  color: #00ffc8;
}

.caleb-arcade-card .text-link:hover {
  color: #7dffd9;
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
}

.caleb-arcade-play {
  margin-top: 1rem;
}

.caleb-arcade-card .button.primary {
  background: linear-gradient(135deg, #ff2d95, #a855f7);
  border: none;
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.35);
  color: #fff;
}

.caleb-arcade-card .button.primary:hover {
  box-shadow: 0 0 28px rgba(0, 255, 200, 0.4);
}

.caleb-arcade-soon {
  border-style: dashed;
  opacity: 0.85;
}

/* Slight scanline feel on cards without hurting readability */
.caleb-arcade-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  border-radius: inherit;
}

.caleb-arcade-card {
  position: relative;
}
