/* 
   REPACKIT - CUSTOM BUILD CSS
   Replacing Tailwind CDN for Security & Performance
*/

/* --- RESET & BASE --- */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
  /* Transform defaults */
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: #008080; /* Fallback */
}

hr { height: 0; color: inherit; border-top-width: 1px; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
a { color: inherit; text-decoration: inherit; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
button { cursor: pointer; }

/* --- VARIABLES & CONFIG --- */
:root {
  --c-teal: #008080;
  --c-black: #1a1a1a;
  --c-yellow: #fff500;
  --c-white: #f0f0f0;
  --c-pure-black: #000000;
  --c-pure-white: #ffffff;
  
  --f-mono: "Space Mono", monospace;
  --f-display: "Archivo Black", sans-serif;
  
  --shadow-hard: 8px 8px 0px 0px #000000;
  --shadow-hard-sm: 4px 4px 0px 0px #000000;
  --shadow-hard-hover: 2px 2px 0px 0px #000000;
}

/* --- ANIMATIONS --- */
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* --- UTILITIES (Mapped from HTML) --- */

/* Layout */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }

/* Flexbox / Grid Props */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Spacing (Margins & Padding) */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.pr-8 { padding-right: 2rem; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* Sizing */
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.min-h-screen { min-height: 100vh; }

/* Typography */
.font-mono { font-family: var(--f-mono); }
.font-display { font-family: var(--f-display); }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.whitespace-nowrap { white-space: nowrap; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[0\.9\] { line-height: 0.9; }

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Colors */
.bg-brutal-teal { background-color: var(--c-teal); }
.bg-brutal-white { background-color: var(--c-white); }
.bg-brutal-yellow { background-color: var(--c-yellow); }
.bg-brutal-black { background-color: var(--c-black); }
.bg-black { background-color: var(--c-pure-black); }
.bg-white { background-color: var(--c-pure-white); }

.text-black { color: var(--c-pure-black); }
.text-white { color: var(--c-pure-white); }
.text-brutal-yellow { color: var(--c-yellow); }
.text-brutal-white { color: var(--c-white); }
.text-gray-300 { color: #d1d5db; }
.text-gray-500 { color: #6b7280; }

.selection\:bg-brutal-yellow::selection { background-color: var(--c-yellow); color: black; }
.selection\:text-black::selection { color: black; }

/* Borders */
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t-4 { border-top-width: 4px; }
.border-b-4 { border-bottom-width: 4px; }
.border-y-4 { border-top-width: 4px; border-bottom-width: 4px; }

.border-black { border-color: var(--c-pure-black); }
.border-dashed { border-style: dashed; }

/* Effects */
.shadow-hard { box-shadow: var(--shadow-hard); }
.shadow-hard-sm { box-shadow: var(--shadow-hard-sm); }

.opacity-80 { opacity: 0.8; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

.rotate-1 { --tw-rotate: 1deg; transform: rotate(1deg); }
.-rotate-1 { --tw-rotate: -1deg; transform: rotate(-1deg); }

.animate-bounce { animation: bounce 1s infinite; }
.animate-marquee { animation: marquee 20s linear infinite; }

/* Custom Text Stroke */
.text-stroke-black {
  -webkit-text-stroke: 2px black;
}

/* Custom Sticker */
.sticker-beta {
  position: absolute;
  top: -0.5rem;
  right: -1.2rem;
  background-color: var(--c-yellow);
  color: var(--c-black);
  border: 2px solid var(--c-black);
  padding: 0.1rem 0.5rem;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.75rem;
  transform: rotate(12deg);
  box-shadow: 2px 2px 0px 0px #000;
  z-index: 10;
  pointer-events: none; /* Let clicks pass through */
}

/* --- STATES (Hover / Active) --- */
.hover\:bg-white:hover { background-color: var(--c-pure-white); }
.hover\:bg-black:hover { background-color: var(--c-pure-black); }
.hover\:text-white:hover { color: var(--c-pure-white); }

.active\:shadow-none:active { box-shadow: none; }
.active\:translate-x-\[6px\]:active { transform: translateX(6px) translateY(6px); } /* Combined for the brutalist effect */
/* Note: In HTML you had active:translate-y-[6px] too, usually used together */

/* Card Hover Effect */
@media (hover: hover) {
  .card-hover:hover {
    transform: translateY(-4px) translateX(-4px) scale(1.02);
    box-shadow: 10px 10px 0px 0px #000;
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* sm (640px) */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}

/* md (768px) */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:p-8 { padding: 2rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-left { text-align: left; }
}

/* lg (1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:mt-0 { margin-top: 0; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}
