@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-warm: #F4F0EA;
    --text-dark: #1A1A1A;
    --accent-neo: #FF3366;
    --accent-punk: #00FF00;
    
    /* Mapped variables for index.html site nav compatibility */
    --paper: var(--bg-warm);
    --ink: var(--text-dark);
    --riso-yellow: #ffe66d;
    --border-thick: 3px;
    --font-display: 'Public Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: 'Public Sans', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.chart-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: 350px;
    max-height: 400px;
}

.neobrutal-card {
    background: white;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    transition: all 0.2s ease;
}

.neobrutal-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px #000;
}

.neobrutal-btn {
    background: #FF3366;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s;
}

.neobrutal-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000;
}

.punk-texture {
    background-image: radial-gradient(#000 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    opacity: 0.1;
}

.sticky-nav {
    backdrop-filter: blur(8px);
    background: rgba(244, 240, 234, 0.8);
}

.timeline-line {
    width: 4px;
    background: #000;
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
}

@media (max-width: 768px) {
    .chart-container { height: 300px; }
}

/* ============ INDEX SITE NAV STYLE COMPATIBILITY ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: var(--border-thick) solid var(--ink);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border: 2px solid transparent;
  transition: 0.15s;
}

.nav-links a:hover {
  border-color: var(--ink);
  background: var(--riso-yellow);
}

/* mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: var(--border-thick) solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.6rem;
    border-bottom: 2px solid var(--ink);
  }
  .nav-links a:last-child { border-bottom: none; }
}

/* ============ PUNK / CRAFT-CORE TAXONOMY CARD STYLES ============ */
.punk-card-active {
    background-color: #fffdf5 !important;
    background-image: radial-gradient(rgba(0,0,0,0.15) 15%, transparent 16%), 
                      radial-gradient(rgba(0,0,0,0.15) 15%, transparent 16%) !important;
    background-size: 8px 8px !important;
    background-position: 0 0, 4px 4px !important;
    border-width: 4px !important;
    border-color: #000 !important;
    border-style: dashed double dotted solid !important; /* Uneven borders */
    font-family: 'JetBrains Mono', monospace !important;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.15) !important;
}

.punk-badge-active {
    background: #fcf1d8 !important;
    color: #1a1a1a !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 900 !important;
    border-left: 3px dashed #a09090 !important;
    border-right: 3px dashed #a09090 !important;
    border-top: 1px solid #1a1a1a !important;
    border-bottom: 1px solid #1a1a1a !important;
    transform: rotate(-5deg) translateY(-8px) translateX(-5px) !important;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.1) !important;
}

.punk-btn-active {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    transform: rotate(2deg) !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    box-shadow: 5px 5px 0px #00FF00 !important; /* Acid green shadow */
    transition: transform 0.1s, box-shadow 0.1s !important;
}

.punk-btn-active:hover {
    background: #00FF00 !important;
    color: #000 !important;
    box-shadow: 2px 2px 0px #000 !important;
    transform: translate(2px, 2px) rotate(2deg) !important;
}

.punk-btn-active:active {
    transform: translate(5px, 5px) rotate(2deg) !important;
    box-shadow: none !important;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 28px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 3px solid var(--ink); }
::-webkit-scrollbar-thumb {
  background-image: url('images/Afro%20Lamb%20logo%20Profile%20Pic.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid var(--paper);
  background-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
