/* Neobrutalism Design System - Extracted from Datarious */
/* Based on neobrutalism.dev aesthetic */


/* CSS Custom Properties (Design Tokens) */
:root {
  /* Base Colors */
  --background: 0 0% 100%;              /* White #FFFFFF */
  --foreground: 0 0% 0%;                /* Black #000000 */
  --border: 0 0% 0%;                    /* Black borders */

  /* Brand Colors */
  --main: 60 100% 50%;                  /* Yellow #FFFF00 */
  --main-foreground: 0 0% 0%;           /* Black text on yellow */
  --secondary-background: 195 100% 50%; /* Blue #00BFFF */

  /* Semantic Colors */
  --muted-foreground: 0 0% 50%;         /* Gray #808080 */
  --destructive: 0 100% 50%;            /* Red #FF0000 */
  --success: 120 60% 50%;               /* Green for success messages */

  /* Layout & Spacing */
  --radius: 0.5rem;                     /* 8px border radius */

  /* Neobrutalist Shadows */
  --shadow-brutal: 4px 4px 0px 0px hsl(var(--border));
  --shadow-brutal-lg: 8px 8px 0px 0px hsl(var(--border));
  --shadow-brutal-xl: 12px 12px 0px 0px hsl(var(--border));

  /* Focus Ring */
  --ring: 0 0% 0%;                      /* Black focus rings */
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Darker Grotesque', 'Courier New', 'Courier', monospace;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Darker Grotesque','Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 {
  font-size: 4rem!important;        /* 48px */
}

h2 {
  font-size: 2rem!important;        /* 32px */
}

h3 {
  font-size: 1.5rem!important;      /* 24px */
}

p {
  margin-bottom: 1rem;
  font-size: 1.5rem!important;
  line-height: 1.6;
}

/* Bold text styling - Yellow highlight */
b, strong {
  font-weight: 900;
  color: hsl(var(--foreground));
  background: hsl(var(--main));
  padding: 0.1em 0.3em;
  border: 2px solid hsl(var(--border));
  box-shadow: 2px 2px 0px hsl(var(--border));
  display: inline-block;
  line-height: 1;
}

/* Button Base Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Darker Grotesque', 'Arial Black', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: hsl(var(--main-foreground));
  background: hsl(var(--main));
  border: 4px solid hsl(var(--border));
  border-radius: 0;
  box-shadow: var(--shadow-brutal);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px hsl(var(--border));
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn:focus {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: hsl(var(--main));
  color: hsl(var(--main-foreground));
}

.btn-secondary {
  background: hsl(var(--secondary-background));
  color: hsl(var(--foreground));
}

/* Input & Textarea Base Styles */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 4px solid hsl(var(--border));
  border-radius: 0;
  box-shadow: var(--shadow-brutal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: hsl(var(--main));
  box-shadow: var(--shadow-brutal-lg);
}

input[type="text"].is-invalid,
input[type="email"].is-invalid,
textarea.is-invalid {
  border-color: hsl(var(--destructive));
}

label{
  font-family: 'Darker Grotesque', 'Arial Black', 'Arial', sans-serif!important;
  font-weight: 900!important;
  font-size: 1rem!important;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox Styles */
input[type="checkbox"] {
  width: 24px;
  height: 24px;
  border: 3px solid hsl(var(--border));
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: hsl(var(--background));
  position: relative;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background: hsl(var(--main));
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 900;
  color: hsl(var(--foreground));
}

input[type="checkbox"]:focus {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Card Container */
.card {
  padding: 2rem;
  background: hsl(var(--background));
  border: 4px solid hsl(var(--border));
  border-radius: 0;
  box-shadow: var(--shadow-brutal-xl);
}

/* Success/Error States */
.success-message {
  padding: 2rem;
  text-align: center;
  background: hsl(120 100% 95%);
  border: 4px solid hsl(var(--success));
  box-shadow: var(--shadow-brutal-lg);
}

.error-message {
  padding: 1rem;
  color: hsl(var(--destructive));
  background: hsl(0 100% 95%);
  border: 3px solid hsl(var(--destructive));
  border-radius: 0;
  font-weight: 700;
  margin-top: 1rem;
}

/* Success Icon */
.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: hsl(var(--background));
  border: 4px solid hsl(var(--border));
  box-shadow: var(--shadow-brutal-xl);
  padding: 2rem;
  z-index: 1001;
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.modal-content p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-content .btn {
  width: 100%;
}

/* Modal Animation */
.modal.modal-show {
  animation: modalFadeIn 0.2s ease;
}

.modal.modal-hide {
  animation: modalFadeOut 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem!important; }  /* 36px */
  h2 { font-size: 1.75rem!important; }  /* 28px */
  h3 { font-size: 1.25rem!important; }  /* 20px */

  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem!important; }     /* 32px */
  h2 { font-size: 1.5rem!important; }   /* 24px */

  /* Reduce shadow sizes on mobile */
  .btn { box-shadow: 2px 2px 0px 0px hsl(var(--border)); }
  .card { box-shadow: 4px 4px 0px 0px hsl(var(--border)); }
  input, textarea { box-shadow: 2px 2px 0px 0px hsl(var(--border)); }

  .modal-content {
    padding: 1rem;
  }

  .modal {
    padding: 0.5rem;
  }
}
