﻿/*
 * ElitePortal â€” nadpisanie kolorystyki Unify3
 * Ĺadowany jako OSTATNI arkusz â€” wygrywa kaskadÄ™ nad theme.min.css
 * Primary: #a00000 (ciemnoczerwony)
 */

:root {
  --bs-primary:              #a00000;
  --bs-primary-rgb:          160, 0, 0;
  --bs-link-color:           #a00000;
  --bs-link-hover-color:     #800000;
  --bs-focus-ring-color:     rgba(160, 0, 0, .25);

  /* Unify custom vars */
  --bs-soft-primary-bg:      rgba(160, 0, 0, .1);
}

/* Przyciski */
.btn-primary {
  --bs-btn-bg:                   #a00000;
  --bs-btn-border-color:         #a00000;
  --bs-btn-hover-bg:             #800000;
  --bs-btn-hover-border-color:   #800000;
  --bs-btn-active-bg:            #5a0000;
  --bs-btn-active-border-color:  #5a0000;
  --bs-btn-disabled-bg:          #a00000;
  --bs-btn-disabled-border-color:#a00000;
  color: #fff !important;
}
.btn-outline-primary {
  --bs-btn-color:                #a00000;
  --bs-btn-border-color:         #a00000;
  --bs-btn-hover-bg:             #a00000;
  --bs-btn-hover-border-color:   #a00000;
  --bs-btn-active-bg:            #a00000;
  --bs-btn-hover-color:          #fff;
  --bs-btn-active-color:         #fff;
}

/* Reset btn flex (Unify ustawia column) */
.btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .3rem;
}

/* Checkboxy i radio */
.form-check-input:checked {
  background-color: #a00000;
  border-color:     #a00000;
}
.form-check-input:focus {
  border-color: rgba(160, 0, 0, .5);
  box-shadow:   0 0 0 .25rem rgba(160, 0, 0, .25);
}

/* Link pointer â€” strzaĹ‚ka SVG z EP czerwonym */
.link-pointer::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23a00000' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e") !important;
}
[data-theme="dark"] .link-pointer::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23f87171' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e") !important;
}

/* List checked â€” SVG z EP czerwonym (zastÄ™puje hardcoded zielony z Unify) */
.list-checked-primary .list-checked-item::before {
  background-image: url("data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.3035 4.76425C13.5718 4.44865 14.0451 4.41027 14.3607 4.67853C14.6763 4.9468 14.7147 5.42012 14.4464 5.73572L8.07144 13.2357C7.79896 13.5563 7.31616 13.5901 7.00171 13.3105L3.62671 10.3105C3.31713 10.0354 3.28924 9.5613 3.56443 9.25172C3.83962 8.94213 4.31367 8.91424 4.62326 9.18943L7.42515 11.68L13.3035 4.76425Z' fill='%23a00000'/%3e%3c/svg%3e");
}
[data-theme="dark"] .list-checked-primary .list-checked-item::before {
  background-image: url("data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.3035 4.76425C13.5718 4.44865 14.0451 4.41027 14.3607 4.67853C14.6763 4.9468 14.7147 5.42012 14.4464 5.73572L8.07144 13.2357C7.79896 13.5563 7.31616 13.5901 7.00171 13.3105L3.62671 10.3105C3.31713 10.0354 3.28924 9.5613 3.56443 9.25172C3.83962 8.94213 4.31367 8.91424 4.62326 9.18943L7.42515 11.68L13.3035 4.76425Z' fill='%23f87171'/%3e%3c/svg%3e");
}

/* Linki */
a { color: #a00000; }
a:hover { color: #800000; }

/* Wyjatki — footer i navbar */
.navbar-nav .nav-link { color: inherit; }
#ep-footer a { color: rgba(255,255,255,.6) !important; }
#ep-footer a:hover { color: #fff !important; }

/* Badge, text, bg */
.text-primary  { color: #a00000 !important; }
.bg-primary    { background-color: #a00000 !important; }
.border-primary{ border-color: #a00000 !important; }
.badge.bg-primary { background-color: #a00000 !important; }

/* Soft primary */
.bg-soft-primary  { background-color: rgba(160, 0, 0, .1) !important; }
.text-cap.text-primary { color: #a00000 !important; }

/* Link pointer (Unify) */
.link { color: #a00000; }
.link:hover { color: #800000; }

/* â”€â”€ DARK MODE â”€â”€ */
[data-theme="dark"] {
  --bs-link-color:       #f87171;
  --bs-link-hover-color: #fca5a5;
}
[data-theme="dark"] a             { color: #f87171; }
[data-theme="dark"] a:hover       { color: #fca5a5; }
[data-theme="dark"] .text-primary { color: #f87171 !important; }
[data-theme="dark"] .text-cap.text-primary { color: #f87171 !important; }
[data-theme="dark"] .link         { color: #f87171 !important; }
[data-theme="dark"] .link:hover   { color: #fca5a5 !important; }

[data-theme="dark"] .btn-primary {
  background-color: #a00000 !important;
  border-color:     #a00000 !important;
  color: #fff !important;
}
[data-theme="dark"] .btn-primary:hover {
  background-color: #a00000 !important;
  border-color:     #a00000 !important;
}
[data-theme="dark"] .btn-outline-primary {
  color:        #f87171 !important;
  border-color: #f87171 !important;
}
[data-theme="dark"] .btn-outline-primary:hover {
  background-color: #f87171 !important;
  color: #fff !important;
}

[data-theme="dark"] .list-checked-primary .list-checked-item::before {
  color: #f87171;
}
[data-theme="dark"] .form-check-input:checked {
  background-color: #a00000;
  border-color:     #a00000;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-soft-light { background-color: #1c2128 !important; }
[data-theme="dark"] .list-step-item .position-absolute { background-color: #1c2128 !important; }

[data-theme="dark"] h1,[data-theme="dark"] h2,
[data-theme="dark"] h3,[data-theme="dark"] h4,
[data-theme="dark"] h5,[data-theme="dark"] h6 { color: #c9d1d9; }
[data-theme="dark"] p     { color: #8b949e; }
[data-theme="dark"] .lead { color: #8b949e; }
[data-theme="dark"] .list-checked-item { color: #c9d1d9; }

[data-theme="dark"] .dropdown-menu {
  background-color: #161b22;
  border-color:     #30363d;
}
[data-theme="dark"] .dropdown-item       { color: #c9d1d9; }
[data-theme="dark"] .dropdown-item:hover { background-color: #1c2128; color: #fff; }
[data-theme="dark"] .dropdown-item.active{ background-color: #a00000; }

[data-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

[data-theme="dark"] #epNavbar .nav-link       { color: #c9d1d9; }
[data-theme="dark"] #epNavbar .nav-link:hover,
[data-theme="dark"] #epNavbar .nav-link.active { color: #f87171; }

[data-theme="dark"] .shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.4) !important; }

/* Footer dark mode — bg-dark jest hardcoded w Unify, nadpisujemy */
[data-theme="dark"] footer.bg-dark {
  background-color: #0d1117 !important;
}
[data-theme="dark"] footer.bg-dark .border-white-10 {
  border-color: rgba(255,255,255,.06) !important;
}

/* Sekcja why — ikony dark mode */
[data-theme="dark"] span[style*="rgba(160,0,0,.1)"] {
  background: rgba(160,0,0,.2) !important;
}

/* Karty dark mode */
[data-theme="dark"] .card {
  background-color: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .card-shadow {
  box-shadow: 0 .375rem 1.5rem rgba(0,0,0,.4) !important;
}
[data-theme="dark"] .blockquote { color: #c9d1d9; }
[data-theme="dark"] .blockquote-footer { color: #8b949e; }
[data-theme="dark"] .blockquote-footer::before { color: #8b949e; }
[data-theme="dark"] .list-timeline-item::before {
  border-color: #30363d;
  background-color: #a00000;
}

@media (max-width: 991.98px) {
  [data-theme="dark"] #epNavbar {
    background-color: #161b22;
    border-top: 1px solid #30363d;
    padding: .75rem 0;
  }
}

/* Swiper strzałki — dark mode */
[data-theme="dark"] .swiper-button-prev,
[data-theme="dark"] .swiper-button-next {
  color: #c9d1d9;
}
[data-theme="dark"] .swiper-button-prev:hover,
[data-theme="dark"] .swiper-button-next:hover {
  color: #a00000;
}
[data-theme="dark"] .swiper-static-button-prev,
[data-theme="dark"] .swiper-static-button-next {
  color: #c9d1d9;
}
[data-theme="dark"] .swiper-static-button-prev:hover,
[data-theme="dark"] .swiper-static-button-next:hover {
  color: #a00000;
}
