/* ==========================================================================
   Argo Magic School - style nakładki na moduły Ignisa
   Wyłącznie klasy używane w widokach z themes/ams/modules/.
   ========================================================================== */

:root {
    --ams-ink: #cfcfcf;
    --ams-ink-dim: #9f9d9a;
    --ams-line: rgba(192, 192, 192, .18);
    --ams-panel: rgba(231, 231, 231, .05);
    --ams-accent: #84bde0;
}

/* ---------- separator graficzny ---------- */

.ams-divider { text-align: center; margin: 14px 0; }
.ams-divider img { max-width: 100%; height: 14px; object-fit: contain; opacity: .65; }

/* ---------- przycisk "nitro" ---------- */

.nitro-btn {
    position: relative;
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid rgba(207, 207, 207, .35);
    border-radius: 22px;
    color: var(--ams-ink);
    text-decoration: none;
    background: rgba(20, 16, 14, .6);
    transition: color .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

.nitro-btn::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 240, 240, .18), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.nitro-btn:hover { color: #f1f1f1; border-color: #cfcfcf; box-shadow: 0 0 14px rgba(207, 207, 207, .25); }
.nitro-btn:hover::before { opacity: 1; }
.nitro-btn:focus-visible { outline: 2px solid var(--ams-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .nitro-btn, .nitro-btn::before { transition: none; }
}

/* ---------- panel użytkownika ---------- */

.student-dashboard { display: flex; flex-direction: column; gap: 18px; }

.student-dashboard-topbar { display: flex; gap: 10px; flex-wrap: wrap; }
.student-tab {
    padding: 5px 14px; border: 1px solid var(--ams-line); border-radius: 16px;
    color: var(--ams-ink); text-decoration: none; font-size: .9em;
}
.student-tab--primary { border-color: rgba(207, 207, 207, .45); }
.student-tab:hover { color: #f1f1f1; }

.student-dashboard-header { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.student-dashboard-house img { width: 120px; height: auto; border-radius: 10px; }
.student-dashboard-title { margin: 0 0 8px; font-size: 1.4em; }
.student-dashboard-meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.student-dashboard-meta-list .meta-label { color: var(--ams-ink-dim); margin-right: 6px; }

.student-dashboard-announcement {
    background: var(--ams-panel); border: 1px solid var(--ams-line);
    border-radius: 10px; padding: 12px 16px;
}
.student-dashboard-announcement-title { color: var(--ams-ink-dim); font-size: .85em; text-transform: uppercase; letter-spacing: .06em; }

.student-dashboard-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; }
.student-shortcut a {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 110px; padding: 12px 8px;
    border: 1px solid var(--ams-line); border-radius: 12px;
    color: var(--ams-ink); text-decoration: none; text-align: center;
    transition: border-color .2s ease, transform .2s ease;
}
.student-shortcut a:hover { border-color: rgba(207, 207, 207, .5); transform: translateY(-2px); }
.student-shortcut-icon img { width: 44px; height: 44px; object-fit: contain; }
.student-shortcut-label { font-size: .85em; line-height: 1.25; }

.student-dashboard-section h3 { margin: 0 0 6px; }
.student-dashboard-section-links { margin: 0 0 8px; font-size: .88em; color: var(--ams-ink-dim); }

/* ---------- rejestracja (kreator w oknie) ---------- */

.reg-modal-backdrop { display: flex; justify-content: center; padding: 20px 10px; }
.reg-modal {
    position: relative; width: 100%; max-width: 640px;
    background: rgba(12, 9, 8, .92); border: 1px solid var(--ams-line);
    border-radius: 14px; padding: 26px 28px;
}
.reg-modal-close { position: absolute; top: 10px; right: 16px; font-size: 1.6em; text-decoration: none; color: var(--ams-ink-dim); }
.reg-modal-title { margin: 0 0 18px; }

.reg-steps { list-style: none; margin: 0; padding: 0; }
.reg-step { display: none; }
.reg-step.is-active { display: block; }
.reg-step h3 { margin: 0 0 12px; }

.reg-form .field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.reg-form .field label { color: var(--ams-ink-dim); font-size: .9em; }
.reg-form .field input[type="text"],
.reg-form .field input[type="email"],
.reg-form .field input[type="password"],
.reg-form .field textarea { width: 100%; }
.reg-form .opt-tag { font-size: .8em; opacity: .6; }

.reg-options { display: grid; gap: 4px; }
.reg-option { display: flex; align-items: center; gap: 8px; color: var(--ams-ink); }

.reg-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.reg-nav button { background: none; border: 1px solid var(--ams-line); border-radius: 18px; padding: 6px 16px; color: var(--ams-ink); cursor: pointer; }
.reg-nav button[disabled] { opacity: .4; cursor: default; }
.reg-progress { color: var(--ams-ink-dim); font-size: .85em; }
.reg-rules { font-size: .88em; color: var(--ams-ink-dim); }

/* wynik przydziału - tło okna w barwach domu */
.house-reveal-label { display: block; color: var(--ams-ink-dim); font-size: .9em; }
.house-reveal { display: block; font-size: 1.6em; margin-top: 4px; }

.reg-modal.house-gryffindor { box-shadow: inset 0 0 90px rgba(174, 0, 1, .35); }
.reg-modal.house-slytherin { box-shadow: inset 0 0 90px rgba(26, 71, 42, .35); }
.reg-modal.house-hufflepuff { box-shadow: inset 0 0 90px rgba(236, 185, 57, .28); }
.reg-modal.house-ravenclaw { box-shadow: inset 0 0 90px rgba(34, 47, 91, .38); }

/* ---------- powiadomienia ---------- */

.notifications-list { margin-top: 6px; }
.notification-item { padding: 8px 0 10px; }
.notification-item > h3 { margin: 0 0 4px; font-weight: 700; color: #d8d8d8; }
.notification-body { color: #c9c9c9; line-height: 1.45; }
.notification-body a { color: #c9c9c9; text-decoration: none; border-bottom: 1px dotted rgba(180, 180, 180, .35); }
.notification-body a:hover { color: #f1f1f1; border-bottom-color: #f1f1f1; }

/* ---------- pozostałe moduły ---------- */

.ams-news-switch, .ams-back { text-align: center; margin: 16px 0; }
.ams-exemption { margin: 0 auto 10px; width: 80%; }
.ams-exemption h4 { padding: 0; margin: 3px auto; }
.ams-portkey { color: #9fb9c9; }

/* kolory nicków wg domu i rangi - klasy dokłada moduł mods filtrem users.nick.class */
.nick.dom1 { color: #ae0001; }
.nick.dom2 { color: #2a623d; }
.nick.dom3 { color: #ecb939; }
.nick.dom4 { color: #222f5b; }
.nick.nick-rank-teacher { color: #0e636b; }
.nick.nick-rank-intern { color: #9c0948; }
.nick.nick-rank-staff { color: #7a6a52; }

/* ---------- wybór osób (rdzeniowy UserPicker) ---------- */

.user-picker-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.user-picker-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--ams-line); border-radius: 8px; padding: 8px; }
.user-picker-list .user-item { display: block; padding: 2px 0; }
