/* SP7 Quick Grid Color WCAG v1.0.0
   Kolorowe kafle szybkiego dostępu zgodne z WCAG 2.2 AA.
   Plik ładować po app.css. */

.quickdock {
  background: #fff;
}

.container.quick-grid {
  gap: 12px;
  padding-block: 14px;
}

.container.quick-grid > a {
  --quick-bg: #edf5ff;
  --quick-hover: #dcecff;
  --quick-accent: #245a8d;
  --quick-ring: rgba(36, 90, 141, .28);
  min-width: 0;
  min-height: 112px;
  padding: 20px 18px;
  border: 1px solid color-mix(in srgb, var(--quick-accent) 30%, #ffffff);
  border-radius: 16px;
  background: var(--quick-bg);
  color: #17231d;
  box-shadow: 0 4px 14px rgba(23, 35, 29, .05);
  transform: translateY(0);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.container.quick-grid > a:nth-child(1) {
  --quick-bg: #edf5ff;
  --quick-hover: #dcecff;
  --quick-accent: #245a8d;
  --quick-ring: rgba(36, 90, 141, .28);
}

.container.quick-grid > a:nth-child(2) {
  --quick-bg: #e8f5f0;
  --quick-hover: #d7ede5;
  --quick-accent: #276650;
  --quick-ring: rgba(39, 102, 80, .28);
}

.container.quick-grid > a:nth-child(3) {
  --quick-bg: #fff4d8;
  --quick-hover: #f7e8bd;
  --quick-accent: #7a5a00;
  --quick-ring: rgba(122, 90, 0, .25);
}

.container.quick-grid > a:nth-child(4) {
  --quick-bg: #fbeaec;
  --quick-hover: #f4d9dd;
  --quick-accent: #8a3b48;
  --quick-ring: rgba(138, 59, 72, .25);
}

.container.quick-grid > a:nth-child(5) {
  --quick-bg: #f1ecfa;
  --quick-hover: #e5dcf4;
  --quick-accent: #5c447a;
  --quick-ring: rgba(92, 68, 122, .25);
}

.container.quick-grid > a:nth-child(6) {
  --quick-bg: #eaf4e5;
  --quick-hover: #dcebd5;
  --quick-accent: #3f6b35;
  --quick-ring: rgba(63, 107, 53, .26);
}

.container.quick-grid > a > span:first-child {
  width: 2.1rem;
  min-height: 2.1rem;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--quick-accent);
  color: #fff;
  font-size: .73rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .03em;
}

.container.quick-grid > a strong {
  color: #17231d;
  font-size: 1.02rem;
  line-height: 1.25;
}

.container.quick-grid > a small {
  color: #3f4d46;
  line-height: 1.45;
}

/* Zachowanie akcji hover/focus – cała karta reaguje, ale tekst pozostaje czytelny. */
.container.quick-grid > a:hover,
.container.quick-grid > a:focus-visible {
  background: var(--quick-hover);
  border-color: var(--quick-accent);
  color: #17231d;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px var(--quick-ring);
  text-decoration: none;
}

.container.quick-grid > a:hover strong,
.container.quick-grid > a:focus-visible strong {
  color: var(--quick-accent);
}

.container.quick-grid > a:hover > span:first-child,
.container.quick-grid > a:focus-visible > span:first-child {
  transform: scale(1.06);
}

.container.quick-grid > a:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.container.quick-grid > a:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px var(--quick-ring);
}

/* Wyłączamy zieloną linię ze starego quickdock – kolor kafla sam daje informację wizualną. */
.container.quick-grid > a::after {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .container.quick-grid > a,
  .container.quick-grid > a > span:first-child {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 820px) {
  .container.quick-grid {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .container.quick-grid > a {
    min-height: 0;
  }
}
