/* =========================================================
   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 (consistent overrides) --- */
:root{
  --content-max: 1000px;
  --radius-1: 8px;
  --radius-2: 8px;
  --radius-pill: 999px;
  --spacing-unit: 24px;

  /* Modern shadows */
  --shadow-1: 0 4px 12px rgba(0,0,0,.25);
  --shadow-2: 0 8px 24px rgba(0,0,0,.3);
  --shadow-hover: 0 12px 32px rgba(0,0,0,.35);

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

  /* Consistent transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
}

/* --- 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);
}

/* Consistent spacing on pixel panels */
.pixel-border{
  border-radius: var(--radius-1);
}

/* --- 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.3);
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover,
.blog-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.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: 5px 12px;
  font-size: 11px;
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: #c8c8ff;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(124, 77, 255, 0.25);
  border-color: rgba(124, 77, 255, 0.5);
}

/* --- Post/Project page readability --- */
.post-content,
.project-description{
  max-width: 100%;
}

/* 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.15);
  border-radius: var(--radius-2);
  padding: 18px;
}

.chip{
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  border-width: 2px;
}

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

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

.chip.active {
  background: var(--pixel-purple);
  border-color: var(--pixel-purple);
  box-shadow: 0 2px 8px rgba(94, 44, 165, 0.4);
}

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