/* HC Galeri · Bildirim silme ve Tercihlerim v1 */

.notification-item-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: stretch;
    min-width: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.notification-item-shell:last-child {
    border-bottom: 0;
}

.notification-item-shell .notification-item-form,
.notification-item-shell .notification-delete-form {
    min-width: 0;
    margin: 0;
}

.notification-item-shell .notification-item {
    height: 100%;
    border: 0 !important;
}

.notification-delete-form {
    display: grid;
    place-items: center;
    padding: 5px 7px 5px 1px;
}

.notification-delete-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition:
        color .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.notification-delete-button:hover,
.notification-delete-button:focus-visible {
    color: var(--danger);
    border-color:
        color-mix(in srgb, var(--danger) 34%, var(--border));
    background:
        color-mix(in srgb, var(--danger) 9%, var(--surface));
    outline: none;
}

.notification-delete-button .icon {
    width: 14px;
    height: 14px;
}

.notification-item-shell.is-compact {
    grid-template-columns: minmax(0, 1fr) 38px;
}

.notification-item-shell.is-compact .notification-delete-form {
    padding-right: 5px;
}

.notification-item-shell.is-compact .notification-delete-button {
    width: 28px;
    height: 28px;
}

.notification-clear-form {
    margin: 0;
}

.notification-clear-button {
    white-space: nowrap;
}

.preferences-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.preferences-card {
    max-width: 820px;
}

.preferences-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.preferences-card-head h2,
.preferences-card-head p {
    margin: 0;
}

.preferences-card-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.preferences-card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
}

.preferences-card-icon .icon {
    width: 18px;
    height: 18px;
}

.preference-switch-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    cursor: pointer;
}

.preference-switch-row > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.preference-switch-control {
    position: relative;
    display: block;
    width: 42px;
    height: 23px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    transition:
        border-color .16s ease,
        background .16s ease;
}

.preference-switch-control > span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--muted);
    transition:
        transform .16s ease,
        background .16s ease;
}

.preference-switch-row > input:checked
+ .preference-switch-control {
    border-color: var(--primary);
    background: var(--primary);
}

.preference-switch-row > input:checked
+ .preference-switch-control > span {
    background: #fff;
    transform: translateX(19px);
}

.preference-switch-row > input:focus-visible
+ .preference-switch-control {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.preference-switch-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.preference-switch-copy strong {
    font-size: 13px;
}

.preference-switch-copy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.preference-information {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
    font-size: 10px;
    line-height: 1.5;
}

.preference-information .icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.preferences-actions {
    justify-content: space-between;
}

@media (max-width: 620px) {
    .notification-item-shell {
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .notification-delete-form {
        padding-right: 4px;
    }

    .preferences-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .preferences-actions .button {
        justify-content: center;
        width: 100%;
    }
}
