/* Pokemania - podstrony (wspolny wyglad w stylu nowej strony glownej) */

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}
.page-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.95rem, 2.4vw, 1.35rem);
    line-height: 1.6;
    color: var(--pokemon-yellow);
    text-shadow: 3px 3px 0 var(--pokemon-red-dark);
}
.page-title::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 1.6em;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pokemon-red), var(--pokemon-yellow));
}
.page-narrow { max-width: 640px; margin: 0 auto; }
.page-medium { max-width: 920px; margin: 0 auto; }

.page-card {
    padding: clamp(20px, 3vw, 28px);
    border-radius: 16px;
    background: rgba(16, 16, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--pokemon-red);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    margin-bottom: 24px;
}
.page-card.accent-blue { border-top-color: var(--pokemon-blue); }
.page-card.accent-yellow { border-top-color: var(--pokemon-yellow); }
.page-card.accent-green { border-top-color: #22c55e; }
.card-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--pokemon-yellow);
    margin-bottom: 16px;
}
.muted { color: var(--text-muted); }

.btn-ghost {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 222, 0, 0.7);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover, .btn-ghost:focus { background: var(--pokemon-yellow); color: var(--pokemon-dark); transform: translateY(-2px); }

/* ---------- tabele ---------- */
.data-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.data-table { width: 100%; margin: 0; border-collapse: collapse; color: var(--text); }
.data-table th {
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pokemon-yellow);
    background: rgba(227, 53, 13, 0.25);
    border-bottom: 2px solid rgba(255, 222, 0, 0.5);
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.25); }
.data-table tbody tr:hover td { background: rgba(59, 76, 202, 0.25); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table a { color: #fff; text-decoration: none; font-weight: 700; }
.data-table a:hover { color: var(--pokemon-yellow); }
.data-table .group-row td { background: rgba(255, 222, 0, 0.1); color: var(--pokemon-yellow); font-weight: 700; }
.rank-cell { width: 3.5rem; color: var(--text-muted); }
.rank-1 .rank-cell { color: #ffd84a; font-weight: 700; }
.rank-2 .rank-cell { color: #cfd6e4; font-weight: 700; }
.rank-3 .rank-cell { color: #e0975a; font-weight: 700; }
.flag-img { width: 20px; height: 15px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }

.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-dot.on { color: #4ade80; }
.status-dot.off { color: #9ca3af; }
.quest-completed { color: #4ade80; font-weight: 700; }
.quest-active { color: var(--pokemon-yellow); font-weight: 700; }
.quest-not_started { color: #9ca3af; }
/* klasy uzyte w tekstach z plikow jezykowych (prof_quest_*) */
.pokemon-completed { color: #4ade80; font-weight: 700; }
.pokemon-in-progress { color: var(--pokemon-yellow); font-weight: 700; }
.pokemon-not-started { color: #9ca3af; }

/* ---------- filtry / paginacja ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-bar .form-select { width: auto; min-width: 160px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: #fff; border-color: var(--pokemon-yellow); }
.chip.active { background: var(--pokemon-yellow); color: var(--pokemon-dark); border-color: var(--pokemon-yellow); font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.pager a {
    min-width: 40px;
    padding: 6px 10px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.pager a:hover { border-color: var(--pokemon-yellow); }
.pager a.active { background: var(--pokemon-red); border-color: var(--pokemon-red); font-weight: 700; }

/* ---------- formularze ---------- */
select.form-dark { color: #fff; }
.form-dark option { background: #1c1c24; color: #fff; }
.form-label { font-weight: 700; color: var(--pokemon-yellow); margin-bottom: 6px; }
.error-box {
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 12px;
    color: #fecaca;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.6);
}
.error-box ul { margin: 0; padding-left: 18px; }
.notice {
    padding: 14px 18px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 222, 0, 0.1);
    border: 1px solid rgba(255, 222, 0, 0.5);
}
.notice form { display: inline; }
.rules-box {
    max-height: 320px;
    overflow-y: auto;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.rules-box p { margin-bottom: 10px; }
.rules-list { counter-reset: none; padding-left: 0; list-style: none; }
.rules-list li {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--pokemon-yellow);
}
.btn-link-inline { padding: 0; border: none; background: none; color: var(--pokemon-yellow); text-decoration: underline; }
.btn-link-inline:hover { color: #fff3a0; }

/* ---------- listy informacji (profil, download) ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.info-list li:last-child { border-bottom: none; }
.info-list .label { flex: 0 0 40%; color: var(--text-muted); }
.info-list .value { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #fff; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { padding: 3px 0; }
.check-list i { color: #4ade80; width: 1.5em; }

/* ---------- profil postaci ---------- */
.profile-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); border: 3px solid var(--pokemon-yellow); flex-shrink: 0; }
.profile-name { font-family: 'Press Start 2P', monospace; font-size: clamp(0.95rem, 2.6vw, 1.4rem); line-height: 1.6; margin: 0; color: #fff; overflow-wrap: anywhere; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 0.9rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); }
.tag-level { background: var(--pokemon-red); border-color: var(--pokemon-red); font-weight: 700; }
.bio { white-space: pre-line; padding: 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); }

/* ---------- kafelki wyboru ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.choice-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px;
    text-align: center;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 222, 0, 0.4);
    transition: transform 0.2s, background 0.2s;
}
.choice-tile i { font-size: 1.8rem; color: var(--pokemon-yellow); }
.choice-tile:hover { transform: translateY(-3px); background: rgba(255, 222, 0, 0.12); color: #fff; }

/* ---------- download ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 18px 18px 18px 64px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); }
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--pokemon-dark);
    background: var(--pokemon-yellow);
}

/* ---------- sklep ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.price-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 222, 0, 0.12), rgba(16, 16, 28, 0.9) 60%);
    border: 1px solid rgba(255, 222, 0, 0.35);
    transition: transform 0.2s, border-color 0.2s;
}
.price-tile:hover { transform: translateY(-4px); border-color: var(--pokemon-yellow); }
.price-points { font-family: 'Press Start 2P', monospace; font-size: 1.05rem; line-height: 1.5; color: var(--pokemon-yellow); }
.price-amount { font-size: 1.25rem; font-weight: 700; color: #fff; }
.price-tile form, .price-tile .btn { width: 100%; }
.price-tile .btn { margin-top: 8px; }
.modal-content.dark-modal { background: #15151f; color: var(--text); border: 2px solid var(--pokemon-yellow); }
.dark-modal .modal-header, .dark-modal .modal-footer { border-color: rgba(255, 255, 255, 0.1); }
.dark-modal h3 { font-size: 1rem; color: var(--pokemon-yellow); margin-top: 14px; }

/* ---------- wynik akcji ---------- */
.result-card { text-align: center; }
.result-icon { font-size: 3rem; margin-bottom: 14px; }
.result-icon.ok { color: #4ade80; }
.result-icon.bad { color: #f87171; }

@media (max-width: 575.98px) {
    .info-list li { flex-direction: column; gap: 2px; }
    .info-list .label { flex-basis: auto; }
    .filter-bar .form-select, .filter-bar .btn { width: 100%; }
}
