
/* SLASH HORROR — CUSTOM LISTS */

.sh-lists-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, .78);
}

.sh-lists-overlay[hidden] {
    display: none !important;
}

.sh-lists-dialog {
    width: min(420px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: #202124;
    color: #eee;
    border: 1px solid #404047;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,.7);
    padding: 18px;
    font-family: inherit;
}

.sh-lists-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #393b42;
}

.sh-lists-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.sh-lists-close {
    background: none;
    border: 0;
    color: #ddd;
    font-size: 24px;
    cursor: pointer;
}

.sh-lists-body {
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.sh-lists-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid #36383f;
    border-radius: 6px;
}

.sh-lists-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sh-lists-row input,
.sh-lists-pin input {
    accent-color: #b52b46;
}

.sh-lists-row a {
    color: #b8d5e5;
    text-decoration: none;
}

.sh-lists-row a:hover {
    text-decoration: underline;
}

.sh-lists-muted {
    color: #aab0b8;
    font-size: 12px;
}

.sh-lists-button {
    padding: 9px 12px;
    border: 1px solid #555;
    background: #282a30;
    color: #eee;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.sh-lists-button.primary {
    border-color: #913345;
    color: #f2b5c2;
}

.sh-lists-button.danger {
    color: #f39aa9;
    border-color: #7d3442;
}

.sh-lists-form {
    display: grid;
    gap: 14px;
}

.sh-lists-form > label {
    display: grid;
    gap: 6px;
    color: #ccc;
    font-size: 12px;
}

.sh-lists-form input:not([type="checkbox"]),
.sh-lists-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #464850;
    border-radius: 6px;
    background: #121316;
    color: #eee;
    font: inherit;
}

.sh-lists-form .sh-lists-pin {
    display: flex;
    align-items: center;
}

.sh-lists-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sh-lists-actions button {
    background: #34363d;
    color: #eee;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 9px 13px;
    cursor: pointer;
}

.sh-lists-actions button[type="submit"] {
    background: #84263a;
    border-color: #a0364c;
}

.sh-lists-error {
    color: #ff9aac;
    font-size: 12px;
}

.sh-lists-error[hidden] {
    display: none;
}

/* Small owner-only profile controls */

.sh-list-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-profile .sh-list-profile-action {
    background: transparent;
    color: #b8d5e5;
    border: 0;
    padding: 3px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.sh-profile .sh-list-profile-action:hover {
    color: #fff;
    text-decoration: underline;
}



/* LIST CONFIRMATION ANIMATION */

.sh-lists-toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    z-index: 200001;

    padding: 11px 18px;
    max-width: calc(100vw - 40px);

    background: #193626;
    color: #d8f4df;

    border: 1px solid #477d58;
    border-radius: 8px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .4);

    font-size: 13px;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.sh-lists-toast[hidden] {
    display: none !important;
}

.sh-lists-toast.is-showing {
    animation: sh-lists-pop .3s ease-out both;
}

@keyframes sh-lists-pop {
    from {
        opacity: 0;
        transform: translate(-50%, 12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* Recent four lists */

#profile-lists-all .sh-list-index-row[hidden] {
    display: none !important;
}

.sh-profile-list-toggle {
    display: block;
    margin: 15px auto;
    padding: 8px 14px;

    background: transparent;
    border: 1px solid #454950;
    border-radius: 6px;

    color: #b8d5e5;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.sh-profile-list-toggle:hover {
    border-color: #b8d5e5;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .sh-lists-toast.is-showing {
        animation: none;
        transform: translateX(-50%);
    }
}
