/* WTF?! Customization of Pico CSS */
/* Based on WTF?! Styleguide - boomer-safe, biało-czarno-szary, desktop-first */

/* Import Pico CSS - będzie dodany przez link w HTML */
/* Customizacja przez CSS variables */

:root {
  /* Typography - zgodnie ze styleguide */
  --pico-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pico-line-height: 1.6; /* Dla boomerów - większy line-height */
  
  /* Kolory - biało-czarno-szary zgodnie ze styleguide */
  --pico-primary: #000000;
  --pico-primary-background: #000000;
  --pico-primary-foreground: #ffffff;
  --pico-primary-hover: #333333;
  --pico-primary-hover-background: #333333;
  
  --pico-secondary: #333333;
  --pico-secondary-background: #ffffff;
  --pico-secondary-foreground: #000000;
  --pico-secondary-hover: #000000;
  --pico-secondary-hover-background: #f5f5f5;
  
  /* Border i spacing - prosty, bez zaokrągleń */
  --pico-border-radius: 0; /* Proste, bez zaokrągleń - zgodnie z filozofią WTF */
  --pico-spacing: 1rem;
  --pico-form-element-spacing-vertical: 1rem;
  
  /* Border colors */
  --pico-border-color: #e0e0e0;
  --pico-border-width: 1px;
  
  /* Background colors */
  --pico-background-color: #ffffff;
  --pico-muted-background: #f5f5f5;
  
  /* Text colors */
  --pico-color: #333333;
  --pico-muted-color: #666666;
  
  /* Typography sizes - zgodnie ze styleguide */
  --pico-font-size: 1rem; /* 16px */
  --pico-line-height: 1.6;
  
  --pico-h1-font-size: 2.5rem; /* 40px */
  --pico-h2-font-size: 2rem; /* 32px */
  --pico-h3-font-size: 1.5rem; /* 24px */
  --pico-h4-font-size: 1.25rem; /* 20px */
  --pico-h5-font-size: 1rem;
  --pico-h6-font-size: 0.9rem; /* 14px */
  
  /* Form elements - duże pola dla boomerów */
  --pico-form-element-height: 3rem; /* 48px - łatwe do kliknięcia */
  --pico-form-element-padding-horizontal: 1rem;
  
  /* Buttons - duże, czytelne */
  --pico-button-padding: 0.75rem 1.5rem;
  --pico-button-font-weight: 500;
  
  /* Cards/Articles - zgodnie z filozofią WTF */
  --pico-card-padding: 2rem;
  --pico-card-background-color: #ffffff;
  --pico-card-border-color: #e0e0e0;
  
  /* Spacing - zgodnie ze styleguide */
  --pico-spacing-rem: 1rem;
  --pico-block-spacing-vertical: 3rem; /* Marginesy sekcji */
  
  /* Transitions - minimalne, bez animacji */
  --pico-transition: none; /* Brak animacji zgodnie z filozofią WTF */
}

/* Override Pico defaults dla WTF */
article,
section {
  margin-bottom: 3rem; /* Zgodnie ze styleguide */
}

/* Buttons - bez zaokrągleń, prosty wygląd */
button,
[type="submit"],
[type="button"],
[type="reset"],
a[role="button"] {
  border-radius: 0;
  transition: none; /* Brak animacji */
}

button:hover,
[type="submit"]:hover,
[type="button"]:hover,
a[role="button"]:hover {
  background-color: var(--pico-primary-hover-background);
  transition: none;
}

/* Form elements - duże, czytelne dla boomerów */
input,
select,
textarea {
  border-radius: 0;
  min-height: 3rem; /* 48px - łatwe do kliknięcia */
  font-size: 1rem;
  line-height: 1.6;
}

/* Cards - prosty wygląd */
article,
.card {
  border: 1px solid var(--pico-border-color);
  border-radius: 0;
  padding: 2rem;
  background: var(--pico-card-background-color);
}

/* Tables - prosty wygląd jak w banku */
table {
  border-collapse: collapse;
  width: 100%;
}

table th,
table td {
  border: 1px solid var(--pico-border-color);
  padding: 1rem;
  text-align: left;
}

table th {
  background: var(--pico-muted-background);
  font-weight: 600;
}

/* Navigation - prosty, bez efektów */
nav a {
  border-radius: 0;
  transition: none;
}

/* Code blocks - zgodnie z obecnym stylem */
code,
pre {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  font-family: 'Courier New', monospace;
}

/* Remove any animations/transitions */
* {
  animation: none !important;
  transition: none !important;
}

/* Mobile Responsive - poprawki dla małych ekranów */
@media (max-width: 767px) {
  :root {
    --pico-font-size: 1rem;
    --pico-h1-font-size: 2rem;
    --pico-h2-font-size: 1.75rem;
    --pico-h3-font-size: 1.25rem;
    --pico-h4-font-size: 1.1rem;
    --pico-spacing: 0.75rem;
    --pico-card-padding: 1.5rem;
    --pico-block-spacing-vertical: 2rem;
  }
  
  /* Container padding na mobile */
  .container {
    padding: 1rem;
  }
  
  /* Navigation na mobile - pionowa */
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  nav li {
    width: 100%;
  }
  
  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }
  
  /* Tables na mobile - scroll horizontalny */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-collapse: collapse;
  }
  
  table thead,
  table tbody {
    display: table;
    width: 100%;
  }
  
  table th,
  table td {
    padding: 0.75rem;
    white-space: nowrap;
  }
  
  /* Code blocks na mobile */
  pre,
  code {
    font-size: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Articles/Cards na mobile */
  article {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Form elements - zachowaj duże na mobile (dla boomerów) */
  input,
  select,
  textarea {
    min-height: 3rem; /* Zachowaj duże dla boomerów */
  }
  
  /* Buttons - pełna szerokość na mobile */
  button,
  [type="submit"],
  [type="button"],
  a[role="button"] {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Desktop-first - większe fonty na desktop */
@media (min-width: 768px) {
  :root {
    --pico-font-size: 1rem;
    --pico-h1-font-size: 2.5rem;
    --pico-h2-font-size: 2rem;
  }
  
  /* Buttons na desktop - auto width */
  button,
  [type="submit"],
  [type="button"],
  a[role="button"] {
    width: auto;
  }
}
