/* ==========================================================================
   PanelQ Global Styles
   ========================================================================== */

/* Fonts
   ========================================================================== */
@font-face {
  font-family: 'Maven Pro';
  src: url('/static/fonts/Maven_Pro/MavenPro-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  /* Brand Colors */
  --brand: #081728;
  --brand-lighter: #1d4777;

  /* Slate palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Gray palette */
  --gray-50: #f9fafb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Stone palette */
  --stone-100: #f5f5f4;
  --stone-600: #57534e;
  --stone-800: #292524;
  --stone-900: #1c1917;

  /* Status colors */
  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-800: #991b1b;
  --green-50: #f0fdf4;
  --green-800: #166534;

  /* White with opacity */
  --white-70: rgba(255, 255, 255, 0.7);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-90: rgba(255, 255, 255, 0.9);

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-32: 8rem;

  /* Border radius */
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-colors: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  --transition-all: all 0.1s ease-in-out;

  /* Container */
  --container-max: 1600px;
  --content-max: 140ch;
  --text-max: 50ch;
}

/* Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--slate-50);
  color: var(--gray-900);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2px;
  padding-right: 2px;
}

.content-container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.text-container {
  max-width: var(--text-max);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
}

.text-brand {
  color: var(--brand);
}

.text-white {
  color: #fff;
}

.text-slate-100 {
  color: var(--slate-100);
}

.text-slate-300 {
  color: var(--slate-300);
}

.text-slate-600 {
  color: var(--slate-600);
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-gray-900 {
  color: var(--gray-900);
}

.text-stone-600 {
  color: var(--stone-600);
}

.text-stone-900 {
  color: var(--stone-900);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

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

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-pretty {
  text-wrap: pretty;
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition-all);
}

.btn:focus-visible {
  outline: 2px solid var(--slate-950);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--slate-950);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:active {
  filter: brightness(0.9);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .btn-large {
    padding: 1rem 3rem;
  }
}

@media (min-width: 1280px) {
  .btn-large {
    font-size: 1.5rem;
  }
}

/* Forms
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  line-height: 2.5;
  font-weight: 600;
  color: var(--stone-900);
}

@media (min-width: 1024px) {
  .form-label {
    font-size: 1.125rem;
  }
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background-color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition-colors);
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--slate-950);
}

.form-input::placeholder {
  color: var(--slate-600);
}

.form-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (min-width: 1024px) {
  .form-input {
    font-size: 1.25rem;
    padding: 0.75rem;
  }
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-error {
  color: var(--red-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Alert messages
   ========================================================================== */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
}

.alert-error {
  background-color: var(--red-50);
  color: var(--red-800);
}

.alert-success {
  background-color: var(--green-50);
  color: var(--green-800);
}

/* Sections
   ========================================================================== */
.section {
  padding: var(--spacing-32) var(--spacing-4);
}

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-32) var(--spacing-8);
  }
}

.section-dark {
  background-color: var(--slate-950);
  color: var(--slate-100);
  border-radius: var(--radius-3xl);
}

.section-light {
  background-color: var(--gray-50);
}

/* Header & Navigation
   ========================================================================== */
header {
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

main {
  margin-left: auto;
  margin-right: auto;
}

/* Links
   ========================================================================== */
.link {
  transition: var(--transition-colors);
}

.link:hover {
  color: #fff;
}

.link-muted {
  color: var(--stone-600);
}

.link-muted:hover {
  color: var(--stone-800);
}

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

.rounded-full {
  border-radius: var(--radius-full);
}

.rounded-3xl {
  border-radius: var(--radius-3xl);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

/* Responsive visibility
   ========================================================================== */
.hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: flex;
  }

  .show-mobile {
    display: none;
  }
}

/* Grid
   ========================================================================== */
.grid {
  display: grid;
}

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

@media (min-width: 1024px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-16 {
  gap: 4rem;
}

/* Lists
   ========================================================================== */
.list-disc {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.list-disc li {
  margin-bottom: 0.25rem;
}
