/* Shared list entry styles (light, floating cards) */

:root {
    --list-entry-bg: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, rgba(96, 165, 250, 0.02) 100%);
    --list-entry-bg-hover: rgba(59, 130, 246, 0.06);
}

.list-entries {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-radius: 12px;
}

.list-entry {
    background: var(--list-entry-bg);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    padding-left: 70px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
    position: relative;
    animation: listEntryFadeSlide 0.24s ease both;
}

.list-entry:hover {
    background: var(--list-entry-bg-hover);
    transform: translateY(-1px);
}

.list-entry:hover::before {
    color: var(--primary-color);
    opacity: 0.50;
}

.list-entry:active {
    transform: translateY(0);
}

.list-entry .entry-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    list-style: 1.2;
}

.list-entry .entry-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.list-entry .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.list-entry .entry-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Optional icon background (mimics permission-card pseudo) */
.list-entry::before {
    content: attr(data-icon);
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 0.45rem;
    transform: translateY(-50%);
    font-size: 3.1rem;
    color: var(--text-muted);
    opacity: 0.07;
    pointer-events: none;
    transition: color 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.list-entry[data-icon=""]::before,
.list-entry:not([data-icon])::before {
    content: '';
}

.list-entries .list-entry:nth-child(1) { animation-delay: 0s; }
.list-entries .list-entry:nth-child(2) { animation-delay: 0.03s; }
.list-entries .list-entry:nth-child(3) { animation-delay: 0.06s; }
.list-entries .list-entry:nth-child(4) { animation-delay: 0.09s; }
.list-entries .list-entry:nth-child(5) { animation-delay: 0.12s; }
.list-entries .list-entry:nth-child(6) { animation-delay: 0.15s; }
.list-entries .list-entry:nth-child(7) { animation-delay: 0.18s; }
.list-entries .list-entry:nth-child(8) { animation-delay: 0.21s; }
.list-entries .list-entry:nth-child(9) { animation-delay: 0.24s; }
.list-entries .list-entry:nth-child(10) { animation-delay: 0.27s; }
.list-entries .list-entry:nth-child(11) { animation-delay: 0.30s; }
.list-entries .list-entry:nth-child(12) { animation-delay: 0.33s; }

@keyframes listEntryFadeSlide {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .list-entry {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-entry .entry-actions {
        width: 100%;
    }
}
