/* =========================================================
   PixelInventor — CSS BOOST (override layer)
   Drop-in file: /website/css/boost.css
   Include AFTER base.css/style.css/blog.css/project.css/pro.css
   ========================================================= */

/* --- Design tokens (non-breaking overrides) --- */
:root{
  --content-max: 980px;
  --radius-1: 6px;
  --radius-2: 10px;
  --radius-pill: 999px;

  /* Softer shadows (still “pixel-ish”) */
  --shadow-1: 0 6px 0 rgba(0,0,0,.28);
  --shadow-2: 0 10px 0 rgba(0,0,0,.24);

  /* Accessible focus ring */
  --focus-ring: 0 0 0 4px rgba(255,204,0,.35);
  --focus-outline: 3px solid var(--pixel-yellow, #ffcc00);
}

/* --- Global polish --- */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Content width: more “portfolio” and less “full width” */
.game-container{
  max-width: var(--content-max);
  padding: clamp(16px, 3vw, 28px);
}

/* Better spacing + consistent rounding on pixel panels */
.pixel-border{
  border-radius: var(--radius-1);
  padding: clamp(14px, 2.4vw, 22px);
}

/* --- Focus states (pro + accessible) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: var(--focus-outline);
  outline-offset: 4px;
  box-shadow: var(--focus-ring);
}

/* --- Navigation buttons: more “clicky” --- */
.nav-button{
  border-radius: var(--radius-1);
  position: relative;
}

.nav-button:hover,
.nav-button.active{
  box-shadow: var(--shadow-1);
}

.nav-button:active{
  transform: translateY(1px);
}

/* --- Cards (projects/blog lists) --- */
.project-card,
.blog-card{
  border-radius: var(--radius-2);
  overflow: hidden;
  border: 2px solid rgba(124, 77, 255, 0.35);
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-1);
}

.project-card:hover,
.blog-card:hover{
  box-shadow: var(--shadow-2);
}

.project-card:focus-within,
.blog-card:focus-within{
  outline: var(--focus-outline);
  outline-offset: 4px;
  box-shadow: var(--shadow-2), var(--focus-ring);
}

/* Make card images feel consistent */
.project-image,
.blog-image{
  border-bottom: 2px solid rgba(124, 77, 255, 0.25);
  filter: saturate(1.05) contrast(1.03);
}

/* Titles a bit tighter */
.project-info h3,
.blog-content h3{
  letter-spacing: .3px;
}

/* --- Tags: nicer pills, still pixel vibe --- */
.tag{
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid rgba(124, 77, 255, 0.35);
}

/* --- Post/Project page readability (less “wide wall of text”) --- */
.post-content,
.project-description{
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

/* Featured image: consistent round + shadow */
.post-featured-image,
.project-featured-image,
.post-image,
.gallery-item{
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
}

/* --- Embed blocks (YouTube/Scratch/iframe/audio) --- */
.embed{
  margin: 24px 0;
  border-radius: var(--radius-2);
  overflow: hidden;
  border: 2px solid rgba(124, 77, 255, 0.35);
  background: rgba(0,0,0,0.2);
  box-shadow: var(--shadow-1);
}

.embed iframe,
.embed video{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Responsive 16:9 wrapper */
.embed.ratio-16x9{
  aspect-ratio: 16 / 9;
}

/* --- Filter/search UI (if present) --- */
.filter-bar{
  background: rgba(255,255,255,0.02);
  border: 2px solid rgba(124, 77, 255, 0.25);
  border-radius: var(--radius-2);
  padding: 12px;
}

.search-input{
  border-radius: var(--radius-1);
}

.chip{
  border-radius: var(--radius-pill);
  transition: transform .08s ease;
}

.chip:active{
  transform: translateY(1px);
}

/* --- Reduce motion for users who want it --- */
@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
