/* ========================================================================== */
/* RANKING ELO – GLOBALNE STYLE */
/* ========================================================================== */

/* ========================================================================== */
/* COMP CARD – karta rozgrywek z obramowaniem */
/* ========================================================================== */
.comp-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: #ffffff;
}

.comp-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

/* Aktywna liga – zielona */
.comp-card.comp-active {
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}
.comp-card.comp-active .comp-header {
    background: linear-gradient(135deg, #15803d, #16a34a);
}

/* Zakończona liga – szara */
.comp-card.comp-finished {
    border-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
}
.comp-card.comp-finished .comp-header {
    background: linear-gradient(135deg, #495057, #6c757d);
}

/* Turniej aktywny – pomarańczowy */
.comp-card.comp-tour-active {
    border-color: #ffb300;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.15);
}
.comp-card.comp-tour-active .comp-header {
    background: linear-gradient(135deg, #e65100, #ffb300);
}

/* Turniej zakończony – szary */
.comp-card.comp-tour-finished {
    border-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
}
.comp-card.comp-tour-finished .comp-header {
    background: linear-gradient(135deg, #343a40, #6c757d);
}

.comp-header {
    border-bottom: none;
    color: white;
    padding: 10px 14px;
}

/* ========================================================================== */
/* COMP TABS – kolorowe zakładki pills */
/* ========================================================================== */
.comp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.comp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f1f3f5;
    color: #495057;
    transition: all 0.2s ease;
    text-decoration: none;
}

.comp-tab:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
}

.comp-tab.active-my {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    border-color: #0d47a1;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

.comp-tab.active-leagues {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border-color: #15803d;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.comp-tab.active-tours {
    background: linear-gradient(135deg, #e65100, #ffb300);
    color: white;
    border-color: #e65100;
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.3);
}

.comp-tab .badge {
    font-size: 0.7rem;
    padding: 2px 7px;
}

/* ========================================================================== */
/* SECTION TITLE – baner sekcji */
/* ========================================================================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.section-title-active {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #16a34a;
}

.section-title-finished {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}


/* ========================================================================== */
/* DODATKOWE WARIANTY KOLORÓW */
/* ========================================================================== */

.comp-card.comp-blue {
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}
.comp-card.comp-blue .comp-header {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
}

.comp-card.comp-purple {
    border-color: #9c27b0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.15);
}
.comp-card.comp-purple .comp-header {
    background: linear-gradient(135deg, #4a148c, #9c27b0);
}

.comp-card.comp-red {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}
.comp-card.comp-red .comp-header {
    background: linear-gradient(135deg, #b71c1c, #dc3545);
}

.comp-card.comp-yellow {
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}
.comp-card.comp-yellow .comp-header {
    background: linear-gradient(135deg, #e65100, #ffc107);
}

/* ========================================================================== */
/* DODATKOWE KOLORY DLA COMP-TAB */
/* ========================================================================== */
.comp-tab.active-seasons {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    border-color: #0d47a1;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

.comp-tab.active-purple {
    background: linear-gradient(135deg, #9c27b0, #4a148c);
    color: white;
    border-color: #4a148c;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
}

.comp-tab.active-red {
    background: linear-gradient(135deg, #dc3545, #b71c1c);
    color: white;
    border-color: #b71c1c;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.comp-tab.active-all {
    background: linear-gradient(135deg, #9c27b0, #4a148c);
    color: white;
    border-color: #4a148c;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
}

.comp-tab.active-solo {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    border-color: #0d47a1;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

.comp-tab.active-team {
    background: linear-gradient(135deg, #e65100, #ffb300);
    color: white;
    border-color: #e65100;
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.3);
}

.comp-tab.active-league {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border-color: #15803d;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

/* ============================================= */
/* MOBILE – UKRYJ BADGE W FILTRACH */
/* ============================================= */
@media (max-width: 576px) {
    .comp-tabs .comp-tab .badge {
        display: none !important;
    }
    .comp-tabs .comp-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 4px;
    }
    .comp-tabs {
        gap: 6px;
        justify-content: center;
    }
}

/* ========================================================================== */
/* SECTION TITLE – WARIANTY */
/* ========================================================================== */

.section-title-team {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    color: #e65100;
    border-left: 4px solid #e65100;
}

.section-title-warning {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    color: #f57f17;
    border-left: 4px solid #ffb300;
}

.section-title-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    border-left: 4px solid #1a73e8;
}

.comp-card.no-hover:hover {
    transform: none;
}

.comp-card.overflow-visible {
    overflow: visible !important;
}

/* ========================================================================== */
/* SOFT WARIANTY */
/* ========================================================================== */

.comp-card.comp-blue-soft {
    border-color: #90caf9;
    box-shadow: 0 2px 8px rgba(144, 202, 249, 0.2);
}
.comp-card.comp-blue-soft .comp-header {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
}

.comp-card.comp-tour-soft {
    border-color: #ffcc80;
    box-shadow: 0 2px 8px rgba(255, 204, 128, 0.2);
}
.comp-card.comp-tour-soft .comp-header {
    background: linear-gradient(135deg, #ffb74d, #ffa726);
}

/* ========================================================================== */
/* COMP CARD – CIEMNY WARIANT */
/* ========================================================================== */
.comp-card.comp-dark {
    border-color: #343a40;
    box-shadow: 0 2px 8px rgba(52, 58, 64, 0.2);
}
.comp-card.comp-dark .comp-header {
    background: linear-gradient(135deg, #212529, #495057);
}

.match-history-table td.opponent-cell {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .match-history-table td.opponent-cell {
        max-width: 120px;
    }
    .match-history-table {
        font-size: 0.75rem;
    }
    .match-history-table th,
    .match-history-table td {
        padding: 4px 6px !important;
        white-space: nowrap;
    }
}

/* ========================================================================== */
/* SORTOWALNE TABELE – UNIWERSALNE */
/* ========================================================================== */
table.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    position: relative;
    padding-right: 26px !important;
    transition: background 0.15s ease, color 0.15s ease;
}

table.sortable-table th.sortable:hover {
    background: #dee2e6 !important;
}

table.sortable-table th.sortable .sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #adb5bd;
    transition: color 0.15s ease;
    pointer-events: none;
}

table.sortable-table th.sortable.active {
    background: #e7f1ff !important;
    color: #0d47a1;
}

table.sortable-table th.sortable.active .sort-icon {
    color: #0d6efd;
    font-weight: bold;
}

@media (max-width: 576px) {
    table.sortable-table th.sortable {
        padding-right: 18px !important;
    }
    table.sortable-table th.sortable .sort-icon {
        right: 4px;
        font-size: 0.6rem;
    }
}


/* ========================================================================== */
/* DARK MODE – PRZYGASZONY GRAFIT (v2) */
/* ========================================================================== */

:root {
    --app-card-bg: #ffffff;
    --app-subtle-bg: #e9ecef;
    --app-light-bg: #f8f9fa;
}

[data-bs-theme="dark"] {
    --app-card-bg: #25292e;
    --app-subtle-bg: #2f343a;
    --app-light-bg: #2a2e33;
    --app-bg-main: #1a1d21;
    --app-text: #c9cdd1;
    --app-text-muted: #8b9095;
    --app-border: #3a3f45;
    --app-accent-blue: #4a90e2;
}

[data-bs-theme="dark"] body.bg-light {
    background-color: var(--app-bg-main) !important;
    color: var(--app-text);
}

[data-bs-theme="dark"] [style*="background: #ffffff"],
[data-bs-theme="dark"] [style*="background:#ffffff"],
[data-bs-theme="dark"] [style*="background: #fff;"],
[data-bs-theme="dark"] [style*="background:#fff;"],
[data-bs-theme="dark"] [style*="background: white"] {
    background: var(--app-card-bg) !important;
    color: var(--app-text) !important;
}

[data-bs-theme="dark"] [style*="background: #e9ecef"],
[data-bs-theme="dark"] [style*="background:#e9ecef"] {
    background: var(--app-subtle-bg) !important;
    color: var(--app-text) !important;
}

[data-bs-theme="dark"] [style*="background: #f8f9fa"],
[data-bs-theme="dark"] [style*="background:#f8f9fa"] {
    background: var(--app-light-bg) !important;
    color: var(--app-text) !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f8f9fa, #e9ecef)"] {
    background: linear-gradient(135deg, #2a2e33, #2f343a) !important;
}

[data-bs-theme="dark"] [style*="color: #212529"],
[data-bs-theme="dark"] [style*="color:#212529"],
[data-bs-theme="dark"] [style*="color: #212529;"] {
    color: var(--app-text) !important;
}

[data-bs-theme="dark"] .comp-card {
    background: var(--app-card-bg);
}

[data-bs-theme="dark"] .comp-card .card-body {
    color: var(--app-text);
}

[data-bs-theme="dark"] .table-responsive {
    background: var(--app-card-bg) !important;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: var(--app-card-bg);
    --bs-table-color: var(--app-text);
    --bs-table-border-color: var(--app-border);
    --bs-table-hover-bg: #2f343a;
    --bs-table-hover-color: #ffffff;
    color: var(--app-text);
}

[data-bs-theme="dark"] .table thead.table-light {
    --bs-table-bg: #2a2e33;
    --bs-table-color: var(--app-text);
    background: #2a2e33;
}

[data-bs-theme="dark"] .table thead.table-light th {
    color: var(--app-text);
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .table td,
[data-bs-theme="dark"] .table th {
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: #2a2e33;
    color: var(--app-text);
}

[data-bs-theme="dark"] .table a {
    color: var(--app-accent-blue);
}

[data-bs-theme="dark"] .table a:hover {
    color: #6fb0ff;
}

[data-bs-theme="dark"] .list-group-item {
    background: var(--app-card-bg);
    color: var(--app-text);
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .list-group-item:hover {
    background: #2f343a;
}

[data-bs-theme="dark"] .list-group-item.bg-light,
[data-bs-theme="dark"] .card-body.bg-light {
    background-color: var(--app-subtle-bg) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2f343a;
    color: var(--app-text);
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2f343a;
    color: #ffffff;
    border-color: var(--app-accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: var(--app-text-muted);
}

[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[disabled] {
    background-color: #25292e !important;
    color: var(--app-text-muted) !important;
}

[data-bs-theme="dark"] .alert-light {
    background-color: #2a2e33;
    border-color: var(--app-border);
    color: var(--app-text);
}

[data-bs-theme="dark"] .alert-info {
    background-color: #1e3a4a;
    border-color: #2a5a6a;
    color: #b3e5fc;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: #4a3a1a;
    border-color: #6a5a2a;
    color: #ffe082;
}

[data-bs-theme="dark"] .alert-success {
    background-color: #1e4a2e;
    border-color: #2a6a3a;
    color: #c8e6c9;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #4a1e1e;
    border-color: #6a2a2a;
    color: #ffcdd2;
}

[data-bs-theme="dark"] .modal-content {
    background-color: var(--app-card-bg);
    color: var(--app-text);
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .btn-close-white {
    filter: none;
}

[data-bs-theme="dark"] .nav-tabs {
    border-bottom-color: var(--app-border);
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: var(--app-text-muted);
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #ffffff;
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background-color: var(--app-card-bg);
    color: #ffffff;
    border-color: var(--app-border) var(--app-border) var(--app-card-bg);
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2a2e33;
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--app-text);
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #3a3f45;
    color: #ffffff;
}

[data-bs-theme="dark"] .page-link {
    background-color: var(--app-card-bg);
    border-color: var(--app-border);
    color: var(--app-accent-blue);
}

[data-bs-theme="dark"] .page-link:hover {
    background-color: #2f343a;
    color: #ffffff;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: var(--app-accent-blue);
    border-color: var(--app-accent-blue);
    color: #ffffff;
}

[data-bs-theme="dark"] .page-item.disabled .page-link {
    background-color: #202327;
    color: #555;
}

[data-bs-theme="dark"] .badge.bg-light {
    background-color: #3a3f45 !important;
    color: var(--app-text) !important;
}

[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #4a5056 !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .badge[style*="background: #e9ecef"],
[data-bs-theme="dark"] .badge[style*="background:#e9ecef"] {
    background: #3a3f45 !important;
    color: #e0e0e0 !important;
    border: 1px solid var(--app-border) !important;
}

[data-bs-theme="dark"] .progress {
    background-color: #2a2e33;
}

[data-bs-theme="dark"] .card {
    background-color: var(--app-card-bg);
    color: var(--app-text);
}

[data-bs-theme="dark"] .card-header.bg-dark,
[data-bs-theme="dark"] .card-header {
    border-color: var(--app-border);
}

[data-bs-theme="dark"] .text-muted {
    color: var(--app-text-muted) !important;
}

[data-bs-theme="dark"] .text-start strong {
    color: #ffffff;
}

[data-bs-theme="dark"] .badge.bg-dark {
    background-color: #3a3f45 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #202327;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #444a50;
    border-radius: 5px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #555b61;
}

/* PODIUM DARK MODE */
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] a,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] h6,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] a,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] h6,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] a,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] h6 {
    color: #212529 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] .text-muted {
    color: #5a5f65 !important;
}

/* JASNE KARTY (kosmetyki) */
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] {
    color: #212529 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] *,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] *,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] *,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] *,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] *,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] *,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] *,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] * {
    color: inherit;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] .text-muted,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .small,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] .small,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] .small,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] .small,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] .small,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] .small,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] .small,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] .small {
    color: #5a5f65 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f5f5f5, #e0e0e0"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fbe9e7, #ffccbc"] strong {
    color: #212529 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .badge[style*="background: #e9ecef"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] .badge[style*="background: #e9ecef"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] .badge[style*="background: #e9ecef"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] .badge[style*="background: #e9ecef"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] .badge[style*="background: #e9ecef"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] .badge[style*="background: #e9ecef"] {
    background: #e9ecef !important;
    color: #212529 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] .badge[style*="rgba(0,0,0,0.05)"] {
    color: #212529 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .badge.bg-dark,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] .badge.bg-dark,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] .badge.bg-dark,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] .badge.bg-dark,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] .badge.bg-dark,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] .badge.bg-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
}

.info-banner-blue,
.info-banner-blue * {
    color: #0d47a1 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] {
    color: #3d3d3d !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] p,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] strong,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] em,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] span {
    color: #3d3d3d !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] h5 {
    color: #e65100 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] .text-end {
    color: #e65100 !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fef9e7, #fdebd0"] hr {
    border-color: #f4a61d;
    opacity: 0.5;
}

[data-bs-theme="dark"] .badge[style*="rgba(0,0,0,0.05)"] {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] .badge[style*="rgba(0,0,0,0.05)"],
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] .badge[style*="rgba(0,0,0,0.05)"] {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #212529 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

/* PLATFORM BADGES */
.platform-badge {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    min-width: 78px;
    text-align: center;
    flex-shrink: 0;
    text-transform: uppercase;
    border: none;
}

.platform-psn {
    background: linear-gradient(135deg, #0070D1, #003087);
    box-shadow: 0 2px 6px rgba(0, 112, 209, 0.35);
}

.platform-xbox {
    background: linear-gradient(135deg, #107C10, #0B5C0B);
    box-shadow: 0 2px 6px rgba(16, 124, 16, 0.35);
}

.platform-steam {
    background: linear-gradient(135deg, #171A21, #2A475E);
    box-shadow: 0 2px 6px rgba(102, 192, 244, 0.3);
    border: 1px solid #66C0F4 !important;
}

/* PROFIL – NICK gracza */
.profile-nickname {
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    line-height: 1.15;
    word-break: break-word;
    margin-top: 6px;
    margin-bottom: 8px;
}

.profile-nickname[data-nick-color] {
    text-shadow:
        0 0 3px currentColor,
        0 0 8px currentColor,
        0 0 16px currentColor,
        0 0 28px currentColor;
}

.profile-action-red-new {
    background: linear-gradient(135deg, #dc3545, #b71c1c, #8e0000);
    box-shadow:
        0 3px 10px rgba(220, 53, 69, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.profile-action-red-new:hover {
    box-shadow:
        0 6px 20px rgba(220, 53, 69, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.profile-nickname-rainbow {
    background: linear-gradient(
        90deg,
        #e24b4a, #f4a61d, #4caf50, #5b9bd5, #9b7dd4,
        #e24b4a
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: profileNickGradient 6s linear infinite;
    filter:
        drop-shadow(0 0 6px rgba(226, 75, 74, 0.5))
        drop-shadow(0 0 12px rgba(91, 155, 213, 0.5))
        drop-shadow(0 0 20px rgba(155, 125, 212, 0.4));
}

@keyframes profileNickGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

[data-bs-theme="dark"] .profile-nickname[data-nick-color] {
    text-shadow:
        0 0 4px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 34px currentColor;
}

[data-bs-theme="dark"] .profile-nickname-rainbow {
    filter: drop-shadow(0 0 10px rgba(155, 125, 212, 0.55));
}

@media (max-width: 576px) {
    .profile-nickname {
        font-size: 1.4rem;
    }
}

/* PROFIL – nazwa użytkownika przy platformie */
.platform-username {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    color: #212529;
    line-height: 1.2;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

[data-bs-theme="dark"] .platform-username {
    color: #e0e0e0;
}

[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fff8e1, #ffe082"] .platform-username,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e3f2fd, #90caf9"] .platform-username,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #f3e5f5, #ce93d8"] .platform-username,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e8f5e9, #a5d6a7"] .platform-username,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #fce4ec, #f48fb1"] .platform-username,
[data-bs-theme="dark"] [style*="linear-gradient(135deg, #e0f7fa, #80cbc4"] .platform-username {
    color: #212529;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .platform-username {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .platform-username:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* LEVEL BADGE – WOW EFFECT */
@keyframes lvlBadgeHolographic {
    0%   { background-position: 250% 0; }
    35%  { background-position: -150% 0; }
    100% { background-position: -150% 0; }
}

@keyframes lvlBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(255, 255, 255, 0);
        filter: brightness(1) saturate(1);
    }
    12% {
        transform: scale(1.07);
        box-shadow:
            0 0 14px rgba(255, 255, 255, 0.75),
            0 0 28px rgba(255, 255, 255, 0.35);
        filter: brightness(1.22) saturate(1.18);
    }
    24% {
        transform: scale(1);
        filter: brightness(1.05) saturate(1.05);
    }
    36% {
        transform: scale(1.04);
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 22px rgba(255, 255, 255, 0.25);
        filter: brightness(1.12) saturate(1.1);
    }
    50%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(255, 255, 255, 0);
        filter: brightness(1) saturate(1);
    }
}

.badge-lvl-wow {
    --wow-duration: 5s;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform-origin: center;
    display: inline-block;
    animation: lvlBadgePulse var(--wow-duration) ease-in-out infinite;
}

.badge-lvl-wow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.15) 42%,
        rgba(255, 210, 255, 0.75) 48%,
        rgba(210, 235, 255, 0.85) 50%,
        rgba(255, 225, 190, 0.75) 52%,
        rgba(255, 255, 255, 0.15) 58%,
        transparent 65%,
        transparent 100%
    );
    background-size: 300% 100%;
    background-position: 250% 0;
    background-repeat: no-repeat;
    animation: lvlBadgeHolographic var(--wow-duration) ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .badge-lvl-wow,
    .badge-lvl-wow::after {
        animation: none !important;
    }
}

/* W-R-P BADGE */
.wrp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px !important;
    border-radius: 8px !important;
    font-size: 0.65rem !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    min-width: 38px;
    justify-content: center;
    line-height: 1.3;
}

.wrp-badge strong {
    font-size: 0.78rem;
    font-weight: 800;
}

.wrp-win {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9) !important;
    color: #1b5e20 !important;
    border-color: #28a745 !important;
}
.wrp-draw {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0) !important;
    color: #495057 !important;
    border-color: #6c757d !important;
}
.wrp-loss {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    color: #b71c1c !important;
    border-color: #dc3545 !important;
}

[data-bs-theme="dark"] .wrp-win {
    background: linear-gradient(135deg, #1b3a1e, #143016) !important;
    color: #66bb6a !important;
    border-color: #2e5a32 !important;
}
[data-bs-theme="dark"] .wrp-draw {
    background: linear-gradient(135deg, #2a2e33, #1f2226) !important;
    color: #b0b5ba !important;
    border-color: #3a3f45 !important;
}
[data-bs-theme="dark"] .wrp-loss {
    background: linear-gradient(135deg, #3a1a1a, #2a1010) !important;
    color: #ef5350 !important;
    border-color: #5a2828 !important;
}

/* NAV BUTTONS – WOW EFFECT */
.nav-btn-wow {
    position: relative;
}

.nav-btn-wow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.20) 46%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.20) 54%,
        transparent 62%,
        transparent 100%
    );
    background-size: 300% 100%;
    background-position: 250% 0;
    background-repeat: no-repeat;
    animation: navBtnSweep 10s ease-in-out infinite;
    pointer-events: none;
    clip-path: inset(0 round 6px);
    z-index: 0;
}

@keyframes navBtnSweep {
    0%   { background-position: 250% 0; }
    28%  { background-position: -150% 0; }
    100% { background-position: -150% 0; }
}

.nav-btn-wow-1::before { animation-delay: 0s; }
.nav-btn-wow-2::before { animation-delay: 2.5s; }
.nav-btn-wow-3::before { animation-delay: 5s; }
.nav-btn-wow-4::before { animation-delay: 7.5s; }

@media (prefers-reduced-motion: reduce) {
    .nav-btn-wow::before {
        animation: none !important;
    }
}

